In the interest of not wasting typed characters, the variable isn't actually needed.
Code:
Private Sub btBILLING_Click()
If InputBox("Please enter the password: ") = "Password" Then
DoCmd.OpenForm "BILLING", , , "[JOB NUMBER] =" & Me.JobID
Else
MsgBox("The password you entered was incorrect")
End If
End Sub
We all know that there is a finite number of characters left in the world, so let's start saving them, OK?
OK, the real reason for chiming in is that lately I seem to be on a Me! kick. If your code compiles and runs now, try this:
change Me!JobID to Me!JibID and compile again and see what happens. Then change Me!JibID to Me.JibID and try compiling again.
If your code doesn't compile now, then don't bother - you have other problems to worry about.