You've confused me. You've implemented security and you have an Admins
Group and a DataEntry group.
I understood that you wanted a button on your main form to only show for the
Admins Group.
Paste the function from the security FAQ into a standard module.
In the Open event for your switchboard form you would put
If faq_IsUserInGroup("Admins", CurrentUser()) then
me!YourButton.visible = true
Else
me!YourButton.visible = false
End if
--
Joan Wild
Microsoft Access MVP
troy said:
I have built the switchboard from scratch and set the button property. Why
would the code have anything to do with the security for which I am trying
to accomplish? Sorry it is late and I am tired.