PHV, Do you mean instead of:
=DCount("Key",[Forms].[Form4].RecordSource,"Key<=" & [txtKey])
I would use:
=DCount('Key',[Forms].[Form4].RecordSource,'Key<=' & [txtKey])
?
That didn't seem to work. I am still getting #Error? in my txtKey control. Thank you though.
CautionMP: your method worked great for me in a test, but I can't get it to work with my application.
It seems that the difference is that my "key" field is type:text instead of a type:number.
It is a unique field in the query. Any thoughts?
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.