open specific form after login

manojsikar1

Registered User.
Local time
Today, 08:51
Joined
Nov 11, 2012
Messages
15
Hello....

I have set a login form whose command are as follow

If Me.qpwd.Value = DLookup("PWD", "AUTHORIZED", "USERID='" & Me.quserid.Value & "'") Then
DoCmd.Close
DoCmd.OpenForm "form1", acNormal
Else
MsgBox "Invalid Password"
end if


I want a help from you all...

Say if user logins with "admin", then the form name "form1" opens and if the user logins with "bob" then form name "edit marks" opens....

what changes should i do so that user control is there....plz help
 
do you have any sample db...if possible plz send the attachment...
 
Here is a small sample I put up.. use the Login Paul and password = "pwd123".. Hope this helps..
 

Attachments

Users who are viewing this thread

Back
Top Bottom