Hello there I am having the above error and need assistance promptly please, I am trying to create an activity log table which logs the activities of users within my database, it seems to be working but having an issue of cannot populating the user details in the log table saying the above error mentioned.
Here is my current script below, I know that it is a minor error but cant seem to get around it :(
Private Sub ok_Click()
txtUsername.Set Focus
If txtUsername = "user" And txtPassword = "Testing123 " Then
MsgBox "Access Granted", vbInformation, "Test"
DoCmd.Close
DoCmd.openform "Main Menu"
Else
MsgBox "ERROR: Please check your login details and try again."
End If
TempVars("UserN ame").Value = Me.txtUsername. Value
Here is my current script below, I know that it is a minor error but cant seem to get around it :(
Private Sub ok_Click()
txtUsername.Set Focus
If txtUsername = "user" And txtPassword = "Testing123 " Then
MsgBox "Access Granted", vbInformation, "Test"
DoCmd.Close
DoCmd.openform "Main Menu"
Else
MsgBox "ERROR: Please check your login details and try again."
End If
TempVars("UserN ame").Value = Me.txtUsername. Value
Comment