I have an application that searches a database based on parameters input by th e user. They click a button to open a form that is tied to a query. It displays the results of the search.
Sometimes when a search is made there are no matches and I'd like to have Access pop up a custom message saying "Sorry your search parameters failed to match any records in the database. Please review your data and try again."
I'd like this to be presented rather than just an empty form.
Does anyone know of an If-then statement that would run prior to opening the form that would look at the query (Q1), and if records = null , open the message box, else open the form?
Thanks,
Scott
Sometimes when a search is made there are no matches and I'd like to have Access pop up a custom message saying "Sorry your search parameters failed to match any records in the database. Please review your data and try again."
I'd like this to be presented rather than just an empty form.
Does anyone know of an If-then statement that would run prior to opening the form that would look at the query (Q1), and if records = null , open the message box, else open the form?
Thanks,
Scott