I have just checked a DB that had been going fine until a new user installed it with a hiccup and I went looking for the cause
Private Sub LogIn_GotFocus()
If Me.PUName = "1" Then
Me.btnPrivateUser.Enabled = True
Else
Me.btnUserLogIn.Enabled = True
End If
End Sub
PUName is Unbound Control with a row source UserID, NameExpr, strUserPass, if the User selects Private User and has the pass code the Private User Button is enabled UserID is 1 for the name PrivateUser.
So my question is both of the following work (in fact even the "1" has been working so far ?) but the two below work on the new users machine, which of the following would be preferable
If Me.PUName = 1 Then
If Me.PUName.Value = 1 Then
Thanks