msgbox when no match to search

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a search box on a form. In the event no match is found for the search
criteria, I'd like to show a msgbox that lists possible causes/solutions.
How would I go about that?
 
Just for the sake of anyone else facing the same problem, I did resolve it
and thought I'd post the solution. It was a simple one that popped into my
head in the middle of the night.
I set a condition on the macro to display a msgbox if the field being
searched([txtLast]) did not equal the search criteria ([txtSearch]).
The condition reads:
[txtLast]<>[txtSearch]
and the message box text was set under the msgbox action.
 

Ask a Question

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.

Ask a Question

Back
Top