Trap security error

J

JEM

Hello. I have an Access 2003 - SQL Server 2000 database. I have set
up windows authentication security, defined roles, their permissions
and assigned users to those roles. I would like to able to change the
error message that the user receives when they try to update data in a
form that they are not allowed to. For now, they get the standard
"UPDATE permissions denied on object...." and then it brings them back
to the form. I have been trying to trap this message in order to give
them a more user friendly message but haven't figured out on what
event to do this. Any help would be much appreciated!

Jenn
 
T

Tom van Stiphout

Set a breakpoint there, make the error happen, and the DataErr value
will be the error number.
You can even temporarily put in a messagebox:
Msgbox "Tell Jenn that the error is " & DataErr

-Tom.
 
J

JEM

Set a breakpoint there, make the error happen, and the DataErr value
will be the error number.
You can even temporarily put in a messagebox:
Msgbox "Tell Jenn that the error is " & DataErr

-Tom.





- Show quoted text -

Got it. Thanks!
 

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

Top