Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub cmdOpenForm_Click()
If Me.txtPassword = "YourPassword" Then
DoCmd.OpenForm "YourFormName"
Else
MsgBox "Wrong password"
End If
End Sub
Private Sub Form_Open(Cancel As Integer)
Dim strInput As String, strMsg As String
strMsg = "Enter your password."
strInput = InputBox(Prompt:=strMsg, _
Title:="Form Protected by password", XPos:=2000, YPos:=2000)
If strInput <> "YourPassword" Then
Cancel = True
End If
End Sub
Private Sub Form_Open(Cancel As Integer)
Dim strInput As String, strMsg As String
strMsg = "Enter your password."
strInput = InputBox(Prompt:=strMsg, _
Title:="Form Protected by password", XPos:=2000, YPos:=2000)
If strInput <> "YourPassword" Then
Cancel = True
[b] DoCmd.OpenForm "YourAnotherFormName"[/b]
End If
End Sub
Private Sub cmdOpenForm_Click()
If Me.txtPassword = "YourPassword" Then
DoCmd.OpenForm "YourFormName"
Else
[b] DoCmd.OpenForm "YourAnotherFormName"[/b]
End If
End Sub