"Craig" <(E-Mail Removed)> wrote in message
news:A5E4F0E9-A95B-45DC-8791-(E-Mail Removed)...
> Hello,
>
> I'm using Access 2003 to develop a database with user-level security. I
> have the ULS set up and everything is working well.
>
> When a user attempts to open a form they don't have sufficient privileges
> to
> open, they get the standard message: "You don't have permission to open
> 'frmForm'."
>
> Is there any way (any property/setting/method/etc.) for me to customize
> that
> message to provide a little more context?
You could use the CurrentUser function.
If CurrentUser = "Whatever" Then
MsgBox "Access dennied"
Docmd.Close Form, Me.Name
End If
You'd have to grant them permissions to open the form though.
Keith.
www.keithwilby.com