I have created a form and having combo box on it.
This combo box is used to make selection from table and it chooses name of the customer from customer table.
Then text box for password.
After selection password verification code runs and generate error.
If Me.txtPassword.Value = DLookup("[Password]", "Customers", "[C_Id]=" & Me.cbxCName.Value) Then
MsgBox "Password Verified. Welcome."
Else
MsgBox "Password Invalid. Please Try Again", vbOKOnly, _
"Invalid Entry!"
Me.txtPassword.SetFocus
Exit Sub
End If
.............
I have pasted the same code in some other assignment, there its working fine.
Please Help.
This combo box is used to make selection from table and it chooses name of the customer from customer table.
Then text box for password.
After selection password verification code runs and generate error.
If Me.txtPassword.Value = DLookup("[Password]", "Customers", "[C_Id]=" & Me.cbxCName.Value) Then
MsgBox "Password Verified. Welcome."
Else
MsgBox "Password Invalid. Please Try Again", vbOKOnly, _
"Invalid Entry!"
Me.txtPassword.SetFocus
Exit Sub
End If
.............
I have pasted the same code in some other assignment, there its working fine.
Please Help.