Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Security / May 2007

Tip: Looking for answers? Try searching our database.

Use of Passwords

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger Bell - 29 May 2007 10:43 GMT
I have a control on a Menu with an 'On click' Event Procedure as follows:
Is there any way that the Password can be typed and appear as xxxxxx etc as
typed to prevent unauthorised users from seeing the actual password typed?

Private Sub ENTER_PG_Click()
On Error GoTo Err_ENTER_PG_Click

   Dim stDocName As String
   Dim stLinkCriteria As String

   stDocName = "ENTER PLANNED GIVING"
If InputBox("Please Enter Password") = "1" Then
   DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
   MsgBox "Sorry, Incorrect Password"
End If
Exit_ENTER_PG_Click:
   Exit Sub

Err_ENTER_PG_Click:
   MsgBox Err.Description
   Resume Exit_ENTER_PG_Click
   
End Sub

Thanks for any help
Scott McDaniel - 29 May 2007 11:04 GMT
>I have a control on a Menu with an 'On click' Event Procedure as follows:
>Is there any way that the Password can be typed and appear as xxxxxx etc as
>typed to prevent unauthorised users from seeing the actual password typed?

Not using the Inputbox method. You can build a small form that mimics the INputbox, add a textbox and set the InputMask
to "PASSWORD".

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
Roger Bell - 29 May 2007 12:04 GMT
Thanks for that Scott.  As I am not sure how to go about that, can you assist?

> >I have a control on a Menu with an 'On click' Event Procedure as follows:
> >Is there any way that the Password can be typed and appear as xxxxxx etc as
[quoted text clipped - 6 lines]
> scott@takemeout_infotrakker.com
> www.infotrakker.com
Scott McDaniel - 29 May 2007 13:33 GMT
>Thanks for that Scott.  As I am not sure how to go about that, can you assist?

Build a form (frmPassword)  with a Textbox (txtPassword) and commandbutton (cmdVerify). In your sub below, call
frmPassword, using the Tag property:

Private Sub ENTER_PG_Click()

    '/call frmPassword, and pass the name of the form you want to open in the last argument
    '/which is the OpenArgs argument
    DoCmd.OpenForm "frmPassword", , , , , , "Enter Planned Giving"

End Sub

Now, on frmPassword, add this code to the cmdVerify:

Sub cmdVerify_Click()

If Me.txtPassword = "1" Then
    '/If the password matches, then open the form passed in via
    '/the OpenArgs argument  
    DoCmd.OpenForm Me.OpenArgs
End If

End Sub

>> >I have a control on a Menu with an 'On click' Event Procedure as follows:
>> >Is there any way that the Password can be typed and appear as xxxxxx etc as
[quoted text clipped - 6 lines]
>> scott@takemeout_infotrakker.com
>> www.infotrakker.com

Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.