V
vandy
Hi All,
I have created a database in access2003 and given selective restrictive
access to users using the security wizard.
I have a user who is not on the network and thus not able to access the
workgoup and secruity mdw files which i have created.
I have created a user login form which checks for user name and password.
Private Sub btnlogin_Click()
If IsNull(Me.quserid) Then
MsgBox ("You Must Enter a Valid User ID !!")
Exit Sub
Else
If IsNull(Me.qpwd) Then
MsgBox ("You Must Enter a Password!!")
Exit Sub
End If
End If
If Me.qpwd.Value = DLookup("PWD", "Authorized", "UserID ='" &
Me.quserid.Value & "'") Then
DoCmd.OpenForm "MainMenu", acNormal
Else
MsgBox ("Invalid Password!Try Again!")
End If
End Sub
Question: How to modify this to enable read only acess to all forms and
screens to a selective user x who is not on the windows network.
Right now i want the user to login in using the login form and when he types
in his username and pwd all the screens and forms should be read only.
can this be done. Thanks in advance.
I have created a database in access2003 and given selective restrictive
access to users using the security wizard.
I have a user who is not on the network and thus not able to access the
workgoup and secruity mdw files which i have created.
I have created a user login form which checks for user name and password.
Private Sub btnlogin_Click()
If IsNull(Me.quserid) Then
MsgBox ("You Must Enter a Valid User ID !!")
Exit Sub
Else
If IsNull(Me.qpwd) Then
MsgBox ("You Must Enter a Password!!")
Exit Sub
End If
End If
If Me.qpwd.Value = DLookup("PWD", "Authorized", "UserID ='" &
Me.quserid.Value & "'") Then
DoCmd.OpenForm "MainMenu", acNormal
Else
MsgBox ("Invalid Password!Try Again!")
End If
End Sub
Question: How to modify this to enable read only acess to all forms and
screens to a selective user x who is not on the windows network.
Right now i want the user to login in using the login form and when he types
in his username and pwd all the screens and forms should be read only.
can this be done. Thanks in advance.