I have a basic parameter query that asks the user to enter a social security number. Currently, if no record is found, the system shows a blank record. I need the system to prompt the user that "No Records Found" via msgbox.
You cannot alter the output of the query in this way.
You need to run the query from a button on a form that has a textbox into which the user enters the ssn.
When the button is clicked, you can then run some code to count the records (using Dcount()). If there are none, you can display a messagebox otherwise you can run the query (which would use the texbox on the form for its ssn value)>
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.