Michael515
Board Regular
- Joined
- Jul 10, 2014
- Messages
- 136
Hi,
I am trying to create a simple login button and have cross referenced my code across a couple web pages and it all seems to check yet I still get a Compile error: method or data member not found. Any thoughts?
I am trying to create a simple login button and have cross referenced my code across a couple web pages and it all seems to check yet I still get a Compile error: method or data member not found. Any thoughts?
Code:
Private Sub LoginButton_Click()
If Me.Username.Value = "Admin" Then
If Me.Password.Value = "1234" Then
LoginFlag = True
Unload Me
Exit Sub
End If
End If
MsgBox "Sorry, you are not an authorized user"
End Sub
Private Sub Worksheet_Activate()
If LoginFlag = False Then
Worksheet(1).Activate
Login.Show
End If
End Sub