Access Permission

danny123

Registered User.
Local time
Today, 09:57
Joined
Jul 21, 2006
Messages
100
Hi there

Can i set permission on a single button in a access database form for specific number of users. And rest of the database is available for everybody ?

Thanks
Danny
 
Last edited:
You can apply a password to the buttons OnClick event

Code:
If InputBox("What is password?", "Password Protected") = "scooby" Then
    DoCmd.OpenQuery "Nameofyourquesry", acViewNormal
Else
    MsgBox("Incorrect password", vbOKOnly, "Invalid password") = vbOK
End If
 

Users who are viewing this thread

Back
Top Bottom