LOGIN with designated branch!

  • Thread starter Thread starter Downie
  • Start date Start date
D

Downie

The below code is working:

Existing TABLE:
id
Login
Passowrd

If Not IsNull(DLookup("[Login]", "users", "[Login] = '" & Me.Login & "'
AND [Password] = '" & Me.Password & "'")) Then
DoCmd.Close
DoCmd.OpenForm

Else
MsgBox "InValid Login"

End If

End Sub

However, I added a new column to the users table called start form.
The need for this column is so that we can direct different users to
different FORMS on login.

New TABLE
id
Login
Passowrd
start_form (new column)

Any suggestions on how to incorporate this functionality???
 
off-the-cuff; add an If Then for the open doc command that is dependent upon
the value in that new column.....
 

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

Similar Threads

Open Form Code 1
Passing parameter in forms 3
2 users - 1 login - 2 forms 1
login form help required 6
Password for Open Form 3
Login Code to Open BRANCHES FORM 4
Login Form Help Needed 5
Users log 4

Back
Top