Results 1 to 3 of 3
  1. #1
    ajh19742000 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    5

    Form query regarding password

    Hi,


    Can you add a button on a form which when pressed asks you for a password to open the table containing the data? If so how do you go about it please?
    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Users should not interact directly with tables and queries - just forms and reports.

    Yes, what you want is possible but useless if you do not go to more rigorous measures to restrict access to Navigation pane.

    Protecting database is a common topic. Have you done a search?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    Code:
    vRet= inputbox("Enter password","secure area")
    if vRet ="" then exit sub
    if vRet="Password" then
      Docmd.openReport "rMyReport"
    endif

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

Similar Threads

  1. Query password change form on load
    By enginerdUNH in forum Programming
    Replies: 12
    Last Post: 04-02-2018, 05:26 PM
  2. Replies: 4
    Last Post: 03-28-2017, 03:10 PM
  3. Replies: 1
    Last Post: 06-03-2016, 03:58 AM
  4. Replies: 2
    Last Post: 12-24-2012, 10:15 PM
  5. Replies: 1
    Last Post: 06-22-2012, 08:05 AM

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