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
 
Back
Top