Hello all,
I have a "main" form with a search button on it and when a user click on the search button, it will perform a search and open up a "search results" form and display all the records matching the criteria entered in the "main" form. THe "search results" form is a continuous form. When a user enters a criteria that doesn't match with any of the existing records, access will just open "search results" with a blank row on the form. How can I code it so that when there is no results to return, it will pop up a message box saying "NO MATCH FOUND" with an OK button for the user to click and it will take the user back to the "main" page?
I am using A97 and sql to query the database for matching criteria.
Thanks in advance!
-Lory
I have a "main" form with a search button on it and when a user click on the search button, it will perform a search and open up a "search results" form and display all the records matching the criteria entered in the "main" form. THe "search results" form is a continuous form. When a user enters a criteria that doesn't match with any of the existing records, access will just open "search results" with a blank row on the form. How can I code it so that when there is no results to return, it will pop up a message box saying "NO MATCH FOUND" with an OK button for the user to click and it will take the user back to the "main" page?
I am using A97 and sql to query the database for matching criteria.
Thanks in advance!
-Lory
