I am trying to place a password on a command button. the command button is on my main switchboard. Although, I only have one switchboard, each command button opens up the sub switchboards. Under my forms, there is only one switchboard. What should I input after the doCmd.openForm "......"?
This is what I have.
............
If InputBox("Enter Password?", "") = "myPass" Then
doCmd.openForm "Evaluations"
Else
msgbox "Incorrect Password!"
End If
................
"Evaluations" is a switchboard page. It has options that shows records.
This is the error that I get.
..............
Microsoft Visual Basic
Run-time error '2102':
The form name 'Evaluations' is misspelled or refers to a form that doesn't exist.
...................
Can anyone help...?
This is what I have.
............
If InputBox("Enter Password?", "") = "myPass" Then
doCmd.openForm "Evaluations"
Else
msgbox "Incorrect Password!"
End If
................
"Evaluations" is a switchboard page. It has options that shows records.
This is the error that I get.
..............
Microsoft Visual Basic
Run-time error '2102':
The form name 'Evaluations' is misspelled or refers to a form that doesn't exist.
...................
Can anyone help...?