Multiple criteria in dcount calculation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Back
Top