I want to run a query from VBA code and detect if it returns a record. So all i want to know is Yes it does return a record or No it doesnt return a record.
Dim reccnt as integer
RecCnt = DCount("KeyField",Queryname)
If RecCnt > 0 then
'you got records
Else
'you don't
End If Maq B-)
<insert witty signature here>
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.