Not clear what your situation is. If there's a chance you can enter a
"wrong parameter" for a query, consider a different approach.
You could create a form (unbound), create a combo box (which lists only
correct values), and create a command button which runs the query. You'd
have to modify the query to use the value selected in the combobox as its
parameter, rather than an entered value.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.