Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Protect a Form 1

Status
Not open for further replies.

kshadden

IS-IT--Management
Jun 18, 2003
19
US
i need to have a form that only certain people can access to view and enter data. Is there a way to password protect a form?
 
Try adding this to the open event of your form.

Dim strinput As String
strinput = InputBox("Please Enter Password")
If strinput = "password" Then
DoCmd.OpenForm "yourformname", acNormal
Else
MsgBox "Incorrect Password"
DoCmd.Close acForm, "yourformname"

Exit Sub
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top