Here is a quick sample from a command button that launches a data entry form... Remember the only way to learn is to experiment...
htwh...
Private Sub Command1_Click()
On Error GoTo Err_Command1_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Form1"
Dim strInput As String
Dim strMsg As String
strMsg = "Enter your password:"
strInput = InputBox(Prompt:=strMsg, Title:="Password Entry", XPos:=2000, YPos:=2000)
MsgBox (strInput) 'Just to see if it is working...
If strInput = "super" Then
MsgBox ("You Entered the correct password"

'Remove later
'DoCmd.OpenForm stDocName, , , stLinkCriteria 'Uncomment later
Else
MsgBox ("You Entered the WRONG password!"

Exit Sub
End If
Exit_Command1_Click:
Exit Sub
Err_Command1_Click:
MsgBox Err.Description
Resume Exit_Command1_Click
End Sub
Steve Medvid
"IT Consultant & Web Master"