PC Review


Reply
Thread Tools Rate Thread

How to customize "access denied" message?

 
 
david
Guest
Posts: n/a
 
      4th Apr 2008
It's been a long time since I looked at a switchboard form, but
it probably has code like this:

On Error GoTo Err_Command0_Click

.....

Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click


If it does not have "On Error", then you will need to add it.

The MsgBox is what displays the error message. In this example
it is displaying the Description as you described.

If you do not already have "On Error" and "MsgBox" in your switchboard
code, Access is using the default code for "On Error" and "MsgBox". The
default can be replaced as shown. Instead of using the control name in
each function, I normally just use

On Error Goto Catch
and
Catch:

(david)

"Craig" <(E-Mail Removed)> wrote in message
news2777F6F-4B8B-4AF7-B7B8-(E-Mail Removed)...
> "david" wrote:
>
>> How are they opening the form? You have more control if you give
>> them a button to push instead of letting them select forms from the
>> database window.
>>
>> (david)

>
> David,
>
> When the database opens, a "main menu" switchboard form appears.
>
> From that form they can click one of four buttons to open additional
> forms.
> Depending on the user's role, he or she might have access to one, two,
> three,
> or all four forms.
>
> I've set up the security correctly and the generic system "access denied"
> message appears at the correct moments --- I'd just like to customize that
> message. Not a showstopper, just a nice-to-have.
>
> Thanks,
> Craig



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Receive "Access is denied" error message multiple times =?Utf-8?B?c2N3aWxzb243Mg==?= Windows XP Help 2 21st Nov 2007 02:27 AM
"Access Denied" or "Permission Denied" Scripting Error Messages =?Utf-8?B?S2lyYW4gTWVuZG9u?= Windows XP Internet Explorer 2 4th Feb 2005 05:43 PM
ERROR MESSAGE "Access is denied" to install Service Pack 4 geno Microsoft Windows 2000 Setup 0 12th Mar 2004 08:05 PM
"Access Denied" or "Permission Denied" Scripting Error Messages If Automatic Configuration Customizes Zone Settings =?Utf-8?B?VkFOSUxMQQ==?= Windows XP Internet Explorer 0 3rd Mar 2004 11:11 AM
"Access Denied" or "Permission Denied" Scripting Error Messages If Automatic Configuration Customizes Zone Settings =?Utf-8?B?VkFOSUxMQQ==?= Windows XP Internet Explorer 0 3rd Mar 2004 11:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:11 AM.