login form (1 Viewer)

mujib ur rahman

Registered User.
Local time
Today, 06:58
Joined
Mar 27, 2012
Messages
20
how to create code for login form when user select a administrator the separat form will be opene and when user select a operator the different form will be opende,,,,,,,,,,,,, plz any one help me its my last steps for completing database,,,,,,,,,,,,,,,
 

Trevor G

Registered User.
Local time
Today, 03:58
Joined
Oct 1, 2009
Messages
2,341
Attached find a sample database which has a staff table in it and based on the security level id (a number based on 1, 2, 3) when the database opens it will select the relevant form, it has a module sheet which has a case statement and also a autoexec macro which runs the code.

See if this will help you.
 

Attachments

  • security Sample.zip
    23.8 KB · Views: 100

MStef

Registered User.
Local time
Today, 03:58
Joined
Oct 28, 2004
Messages
2,251
Look at "DemoLoginFormA2000.mdb" (attachment, zip).
Open Form1Login and see.
 

Attachments

  • DemoLoginFormA2000.zip
    15.9 KB · Views: 86

mujib ur rahman

Registered User.
Local time
Today, 06:58
Joined
Mar 27, 2012
Messages
20
sorry i dont know your suggestion i told u that i have two form one is booking and 2nd is adminform so from login if user are admin then open it adminform and if user are operator then opene it booking form,,,,,,,,, its my problem so plllllllz help me
 

mujib ur rahman

Registered User.
Local time
Today, 06:58
Joined
Mar 27, 2012
Messages
20
thanks alots to solve my problems but if easy method u know then plz help me,,,,,,
 

smig

Registered User.
Local time
Today, 05:58
Joined
Nov 25, 2009
Messages
2,209
Code:
if me.LoginName = "admin" than
docmd.OpenForm "AdminForm"
else
docmd.OpenForm "OtherForm"
end if
 
docmd.Close acForm, "LogInForm"



no need to shout BTW
 

Users who are viewing this thread

Top Bottom