suppress error messages (2)

itazev

Registered User.
Local time
Today, 08:03
Joined
Jan 28, 2007
Messages
18
Hey guys!

I set some permissions to the forms and reports. But I'd like to suppress "error" messages when the user try to access unauthorized objects.

I used the forum search and i found the topic below which mention

DoCmd.SetWarnings False
suppress error messages

But, in this case will I have to spread this code all around my VBA code?
I mean, isn't a better way to do that? if I save the MBD as MDE it still poping up the message.

Thanks !
 
warnings are mainly for editing tables. you're going to need an error handler.

search for "error handler" or "on error goto" for example code.
 

Users who are viewing this thread

Back
Top Bottom