T
TK
I have a form with an "Add Record" and "Delete Record" button on it. I have
attached the following code to the "Add Record" button, and if your enter
ther wrong password you get the Message Box correctly. BUT if you enter the
corred password it does not add a new record. Can someone tell me what I ad
doing wrong?
Many thanks,
TK
Private Sub Command55_Click()
If InputBox("Enter Password") = "xyz" Then
DoCmd.GoToRecord , , acNewRec
Else
' the entered password was incorrect
MsgBox "Sorry, the password you have " & "entered is incorrect."
End If
End Sub
attached the following code to the "Add Record" button, and if your enter
ther wrong password you get the Message Box correctly. BUT if you enter the
corred password it does not add a new record. Can someone tell me what I ad
doing wrong?
Many thanks,
TK
Private Sub Command55_Click()
If InputBox("Enter Password") = "xyz" Then
DoCmd.GoToRecord , , acNewRec
Else
' the entered password was incorrect
MsgBox "Sorry, the password you have " & "entered is incorrect."
End If
End Sub