Hi All,
I am creating a user form in Access 2007. I am receiving a Compile Error within my VBA coding. Please take a look at the code below and see if you can help.
Compile Error: Expected: End of statment
Recived on line:
Within the VBA code:
I am creating a user form in Access 2007. I am receiving a Compile Error within my VBA coding. Please take a look at the code below and see if you can help.
Compile Error: Expected: End of statment
Recived on line:
Code:
DoCmd.OpenForm “frmPasswordChange”, , , “[UserID]" = ” & Me.cboUser
Within the VBA code:
Code:
Private Sub txtPassword_AfterUpdate()If IsNull(Me.cboUser) Then
MsgBox "Please Enter your SSO to login to the database.", vbInformation, "SSO Required"
Me.cboUser.SetFocus
Else
If Me.txtPassword = Me.cboUser.Column(2) Then
If Me.cboUser.Column(4) Then
DoCmd.OpenForm “frmPasswordChange”, , , “[UserID]" = ” & Me.cboUser
End If
DoCmd.OpenForm “frmMainMenu”
Me.Visible = False
Else
MsgBox "Password does not match, please re-enter.", vboOkOnly + vbExclamation, "Password Required"
Me.txtPassword = Null
Me.txtPassword.SetFocus
End If
End If
End Sub
End Sub