Login

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

Downie

I currently have 2 text boxes and a submit button on a Form.

TB_Login
TB_Password

"Command4 as login button

How can I get the below code to Open my BRANCHES form?

Private Sub Command4_Click()
If TB_Login = CDC And TB_Password = 44 Then
"OPEN FORM"
End Sub
 
Private Sub Command4_Click()
If TB_Login = CDC And TB_Password = 44 Then
DoCmd.OpenForm "FormName"
End If
End Sub
 

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

Back
Top