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
 
Top