I am typing the following code in vba access 2013:
If (IsNull(DLookup("Username", "tblUser", "Username ='" & Me.txtUsername.Value & "'"))) Or
(IsNull(DLookup("Password", "tblUser", "Password ='" & Me.txtPassword.Value & "'"))) Then
MsgBox "Username or Password is Incorrect"
But it is not taking it, however this statement works perfectly in access 2010. It appears that it is not taking "Or" as an operator. What can I do?