form_activate problem

polina

Registered User.
Local time
Today, 23:08
Joined
Aug 21, 2002
Messages
100
On the form_activate i have an error trapping routine

What i want to do is if the certain error occurs, I want the form to stop activating ( in other words, form wouldn't open)

Please suggest a solution.

Thanks
 
You need to put the error trapping in the OnOpen event of the form, and then set Cancel=1 if you get a certain error.

Or from your OnActivate event, if you hit the certain error,
DoCmd.close
 

Users who are viewing this thread

Back
Top Bottom