DCount Syntax

D

DS

I'm having a rough time getting this syntax right. EmployeeID is a number
field. Any help is appreciated.
Thanks
DS

Me.TxtVoids = Nz(DCount("CDCheckID", "tblVoidDetails", "CDBizDay BETWEEN
Forms!frmReportDates!TxtStart AND Forms!frmReportDates!TxtEnd And CDVoidMan
= Me.EmployeeID"), 0)
 
D

Dennis

Me.TxtVoids = Nz(DCount("CDCheckID", "tblVoidDetails", "CDBizDay BETWEEN #" &
Forms!frmReportDates!TxtStart & "# AND #" & Forms!frmReportDates!TxtEnd & "#
And CDVoidMan = " & Me.EmployeeID), 0)
 

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

Syntax Error 4
Are Nulls Covered? 2
Not returning a value 7
DCount In Otherdb 27
Criteria Mismatch 4
ISAM Error 2
DCount Error 6
From External Database 5

Top