C
Cameron
I have a popup form that opens when the user has successfully logged into the
form. The main form verifies that the password is correct and then the popup
form runs. This all worked great up until a day ago and now it will not
popup. I am totally baffled on why the form will not appear.
Private Sub enter_password_AfterUpdate()
If Me!password = Me![enter password] Then
Me![admin] = DLookup("administrator", "employees", "name=forms!main!name")
'MsgBox ("Welcome!")
DoCmd.OpenForm "count popup", , , , , acHidden
DoCmd.OpenForm "answer popup"
DoCmd.Close acForm, "count popup"
' Triggers hidden items that only Admins can see
' If Me![admin] = -1 Then
' Me.Command3.Visible = True
' Refresh
' End If
Else
MsgBox ("Sorry, wrong password, please try again")
Exit Sub
End If
End Sub
form. The main form verifies that the password is correct and then the popup
form runs. This all worked great up until a day ago and now it will not
popup. I am totally baffled on why the form will not appear.
Private Sub enter_password_AfterUpdate()
If Me!password = Me![enter password] Then
Me![admin] = DLookup("administrator", "employees", "name=forms!main!name")
'MsgBox ("Welcome!")
DoCmd.OpenForm "count popup", , , , , acHidden
DoCmd.OpenForm "answer popup"
DoCmd.Close acForm, "count popup"
' Triggers hidden items that only Admins can see
' If Me![admin] = -1 Then
' Me.Command3.Visible = True
' Refresh
' End If
Else
MsgBox ("Sorry, wrong password, please try again")
Exit Sub
End If
End Sub