Cracked it!!!!!!!!!
myresult = dcount("[myfield]","mytable","[myfield]=" & mysearch)
just a little ampersand makes all the difference B-)
Jim
Hhhmmmm ....
Run-time error '3464':
Data type mismatch in criteria expression
This seems to say that mysearch and myfield are not compatible ... checked the table and the filed property is set to integer???
Any other ideas?
Jim
Hi!
This works ...
dim myresult as integer
myresult = dcount("[myfield]","mytable","[myfield]=12345")
This doesn't!
dim myresult as integer, mysearch as integer
mysearch = 12345
myresult =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.