Nothing query

  • Thread starter Thread starter Jarod
  • Start date Start date
J

Jarod

Is there a way in VBA to tell if a query produces no
records? Thanks for the help.
 
You might open a recordset based on the query and test if both BOF and EOF
are True.
 
Try:

DCount("*", "YourQuery")

It should give the number of rows returned by your Select Query, including 0
for no rows returned.
 

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

Back
Top