Need help trapping for error

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

Guest

I created a search form. If there are results another form shows witht he result set. When I search and the result set is zero then I have a message box returning saying there are no records produced. The user hits ok. Then a Access produced message box pops up saying 'The OpenForm action was canceled' Is there a way to trap for that so the user doesn't see the message.

Thanks
 
brian said:
I created a search form. If there are results another
form shows witht he result set. When I search and
the result set is zero then I have a message box
returning saying there are no records produced.
The user hits ok. Then a Access produced message
box pops up saying 'The OpenForm action was
canceled' Is there a way to trap for that so the user
doesn't see the message.

Use error trapping in the search form to catch error 2501.
 
Back
Top