Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i not show a query that has no results?

Status
Not open for further replies.

gr8R

Technical User
Nov 10, 2001
6
GB
I have a query that checks something everytime the database is run. I only want it to show itself or alert the user somehow if it finds something.

So, How do I not show this query if it doesn't find any records?

 
You could use the DLookup or DCount function using the criteria that the query uses to see if it returns a Null value. If null, exit sub, else show query.

Without more detail, it would be hard to say.

ljprodev@yahoo.com
ProDev, MS Access Applications B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top