Dcount is always 0

Blkblts

Registered User.
Local time
Yesterday, 21:36
Joined
Jan 21, 2000
Messages
61
I have the code"
strCount = Forms![frmcallhis]![mbrid]
intCount = Dcount("[mbrid]","tblcall","[mbrid] = 'strCount'")
intcount = intcount + 1

intcount is always 0 even if there are several calls for mbrid

I'm just trying to get the count from tblcall based on a mbrid and up by 1.

Thanks
 
...or

intCount = Dcount("[mbrid]","tblcall","[mbrid] = '" & strCount) & "'")

Mike
 
Thanks it works.... by the way my mbrid was a string value.

Much appreciation

kim
 

Users who are viewing this thread

Back
Top Bottom