How are you running the query? You can check if there are any records returned by this as the criteria to display the message box instead of opening the query.
this query filters for a certain city and prompts the user to enter a last name. I would like a msg box to prompt the user saying no data found if their is no records found with that last name. Thanks for any help would be appreciated.
I need to know how the user will be running the query. You can open a query using a macro or a module that you run directly or use an event on a form (e.g. clicking a button or selecting from a list of queries).
You can't have the message display if the user is running the query from the Query tab of the database window.
The user runs the query from a switchboard which points to form that the queries information finds. Basically I would call a search for last name inside a switchboard which then would call up the form search for last name, which is based upon a query. What I would like is that it comes back with a message if no records found is this possible. This form is just one deep nothing special.. Thanks
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.