Multiple criteria in dcount calculation

K

Ken Smith

I am not getting the results expected.

Anybody see an error in this statement? Can I use two criteria in the
expression?

DCount("[ProIdent] ","tblSR4Data","[ProIdent] =" & [Forms]![Project
Maintenance Menu]![Proj2Get] And "[LGBRDate] =" & [Forms]![Project
Maintenance Menu]![LGBRDate])>1
 
D

Douglas J. Steele

The keyword And needs to be inside the quotes (and you're missing an
ampersand):

DCount("[ProIdent] ","tblSR4Data","[ProIdent] =" & [Forms]![Project
Maintenance Menu]![Proj2Get] & " And [LGBRDate] =" & [Forms]![Project
Maintenance Menu]![LGBRDate])>1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top