J
Jim/Chris
Another way of protecting forms is to restrict access by
username. Here is what I have used. Watchout for the
wordwrap.
If CurrentUser = "userid1" Or CurrentUser = "userid2" Or
CurrentUser = "Admin" Or CurrentUser = "userid3" _
Or CurrentUser = "userid4" Then
stDocName = "name of form"
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
Baduser = "Sorry ... you're not authorized to access that
item."
MsgBox Baduser
End If
Jim/Chris
username. Here is what I have used. Watchout for the
wordwrap.
If CurrentUser = "userid1" Or CurrentUser = "userid2" Or
CurrentUser = "Admin" Or CurrentUser = "userid3" _
Or CurrentUser = "userid4" Then
stDocName = "name of form"
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
Baduser = "Sorry ... you're not authorized to access that
item."
MsgBox Baduser
End If
Jim/Chris