Results 1 to 2 of 2
  1. #1
    aeiou137 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    3

    Is there visual basic code which can on file open ask for password and maintain value

    I am looking for a method when opening a database file which on the load of the opening form will ask for a password. I know how to make the inputbox and messagebox to check for correct or incorrect passwords. Also know how to use if then and else to control what occurs next.

    Problem I am trying to fix is having to enter the password more than one time during the file open period.



    I would like to be able to open the file enter the password and pass the parameter value between forms to control visibility of certain command buttons, acNormal, acReadOnly ... settings

    I am using Access 2010.

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    I have done something similar to this by hiding a text field on the main form (which is always open) and writing the password variable in to the text field. Then the other forms can look at the hidden textbox to decide their formatting.

    If you do not have a form that is always open then you could save the password as a public variable or database property or even to a table.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using Access Instead of Visual Basic
    By dinz in forum Programming
    Replies: 2
    Last Post: 12-19-2019, 10:33 AM
  2. Button that open Visual Basic Editor?
    By 95DSM in forum Programming
    Replies: 5
    Last Post: 12-20-2010, 10:40 AM
  3. Can't see visual basic code
    By Michele Keck in forum Forms
    Replies: 5
    Last Post: 09-29-2010, 11:31 AM
  4. Query in visual basic
    By Lucas83 in forum Programming
    Replies: 1
    Last Post: 06-10-2010, 11:00 AM
  5. Record Value in Visual Basic
    By chrismec in forum Programming
    Replies: 3
    Last Post: 12-09-2009, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums