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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password protecting a report 1

Status
Not open for further replies.

NeilPattison

IS-IT--Management
Aug 24, 2005
52
GB
I have set up an input box for a password that opens a report using the following code:

Private Sub Report_Open(Cancel As Integer)

Dim PW As String

PW = InputBox("Please enter the password")
If PW = "THECORRECTPASSWORD" Then
Else
MsgBox "The password you entered is not correct"
Cancel = True
Exit Sub
End If

End Sub

I'd like this to be disguised using the password input mask but don't know how to do this. Any help would be greatly appreciated.
 
One way is to create a small popup form with a textbox having "Password" as InputMask.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top