show/hide forms or tabs based on user login info

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have used the security wizard to setup user logins & p/w for my database, and am thinking about showing/hiding specific forms or tabs on forms based on the user login

i essentially want some named users to see a specific tab or form, and others not

is this something that can be done

would appreciate some guidance on this!
 
If you've assigned permissions to groups (rather than to users), you can use
the function in the security FAQ to see if the current user is a member of a
group.

Use the last function in section 22 of
http://support.microsoft.com/?id=207793
faq_IsUserInGroup

In the Open event for your form

If faq_IsUserInGroup("Production", CurrentUser()) then
me!Tab.visible = false
Else
me!Tab.visible = true
End if

--
Joan Wild
Microsoft Access MVP

Stevie C said:
i have used the security wizard to setup user logins & p/w for my
database, and am thinking about showing/hiding specific forms or tabs on
forms based on the user login.
 

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

Back
Top