I've searched the forum but can't find a solution to my problem.
I have many forms that have many controls attached.
I have also set up a group called READONLY, and assigned them permission only to open the forms and nothing else.
I have noted down the errors I want to trap so I can make a more User Friendly message to pop up. Ie, "You do not have the authority to run this command"
As there are many commands on various forms, I am having trouble finding the correct area to place some code along the lines of,
If err.number = 2603 then
msgbox "You do not have the authority.....etc"
end if
I don't want to repeat this code what could be 70/80 times.
I've attemped to place it in the "on Current" Event trigger to no avail.
I want the code to encompass the whole front end if possible.
Is this possible or am I going about this in the wrong way?
Any help would be great.
Thanks
Kempes
I have many forms that have many controls attached.
I have also set up a group called READONLY, and assigned them permission only to open the forms and nothing else.
I have noted down the errors I want to trap so I can make a more User Friendly message to pop up. Ie, "You do not have the authority to run this command"
As there are many commands on various forms, I am having trouble finding the correct area to place some code along the lines of,
If err.number = 2603 then
msgbox "You do not have the authority.....etc"
end if
I don't want to repeat this code what could be 70/80 times.
I've attemped to place it in the "on Current" Event trigger to no avail.
I want the code to encompass the whole front end if possible.
Is this possible or am I going about this in the wrong way?
Any help would be great.
Thanks
Kempes