G
Greg
I am trying to protect a form from the command button that opens it. This
is what I am using
Dim sPassword As String
Const sAccess = "PASSWORD"
sPassword = InputBox("PLEASE ENTER THE PASSWORD", "PASSWORD")
If sPassword <> sAccess Then
Cancel = True
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmAdmin"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If
This works through the enter password and then it just returns back to the
origional form.
Greg
The Oft Access Confused
is what I am using
Dim sPassword As String
Const sAccess = "PASSWORD"
sPassword = InputBox("PLEASE ENTER THE PASSWORD", "PASSWORD")
If sPassword <> sAccess Then
Cancel = True
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmAdmin"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If
This works through the enter password and then it just returns back to the
origional form.
Greg
The Oft Access Confused