Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run form based on CurrentUser() 1

Status
Not open for further replies.

KLewisBPM

Technical User
Jan 11, 2002
294
GB
When the switchboard opens I would like to it to check the CurrentUser() and if matches the criteria e.g. Admin then I want the switchboard to close and another form to open.

Kind Regards

Kelley Lewis
 
Code:
If CurrentUser() = "admin" Then
    DoCmd.Close acForm, "formname", acSaveNo
End If

EasyIT

"Do you think that’s air you're breathing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top