I use this code below to open my form if the right password is enter.
I need somebody help me write a code with computer date which I have
to change the password every 30 days. Like this code " gasim" is
password.
Private Sub Form_Open(Cancel As Integer)
Dim sResponse As String, iResp As Integer
sResponse = InputBox("Enter your your password", "MC - 12"
If sResponse = ("gasim" Then
DoCmd.OpenForm "my form name"
Else
DoCmd.Quit
Cancel = fulse
End If
End Sub
I need somebody help me write a code with computer date which I have
to change the password every 30 days. Like this code " gasim" is
password.
Private Sub Form_Open(Cancel As Integer)
Dim sResponse As String, iResp As Integer
sResponse = InputBox("Enter your your password", "MC - 12"
If sResponse = ("gasim" Then
DoCmd.OpenForm "my form name"
Else
DoCmd.Quit
Cancel = fulse
End If
End Sub