Here is my code behind a command button:
------------------------------
Private Sub Command96_Click()
Dim X As Variant
X = InputBox("Please enter password to open this form:", "PASSWORD Prompt")
If X = "5491632" Then
DoCmd.OpenModule Module1.Appaoo
Else
MsgBox ("Sorry, you cannot update this database.")
End If
End Sub
------------------------------
It runs everything in the module fine & finishes updating my database,
but I get a run-time error 2520, "The action or method requires a Module or Procedure Name argument"
Thanks for your help!
jlig
------------------------------
Private Sub Command96_Click()
Dim X As Variant
X = InputBox("Please enter password to open this form:", "PASSWORD Prompt")
If X = "5491632" Then
DoCmd.OpenModule Module1.Appaoo
Else
MsgBox ("Sorry, you cannot update this database.")
End If
End Sub
------------------------------
It runs everything in the module fine & finishes updating my database,
but I get a run-time error 2520, "The action or method requires a Module or Procedure Name argument"
Thanks for your help!
jlig