-----Original Message-----
Hi Martin
Put the following in the code that executes when your database opens:
If CurrentUser = "Admin" then
Application.MenuBar = "Name of Admin Menu"
Else
Application.MenuBar = "Name of User Menu"
End If
****However****
If you have secured your database correctly, you should not be logging in as
Admin, because Admin should have no permissions to any objects. Admin is
the same in every workgroup file, so a user needs only to open your database
with a copy of the default SYSTEM.MDW and s/he will have the same
permissions without username/password that you have logging in as Admin.
You should create a new user in the Admins group, then while logged in as
that user, create a new database, then import everything from the old
database (so that Admin no longer owns the database and its objects), and
finally, remove Admin from the Admins group, and remove all permissions for
all objects from Admin and Admins.
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
I want a specific menu to launch ONLY when Admin Logs
in. I want everyone else to get the default menu, which
I have stripped down. How do I do this?
.