Results 1 to 12 of 12
  1. #1
    bnar is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    12

    Login Form

    Good day dears,
    i have a database with many form and reports .... i created a LoginForm that you can enter UserName and Passord then if match it opens tha MainForm,my problem is when you open the database all other objects are clickable in another word the user may just ignore the LoginForm and click on any object to view it.by the i use access2010.Any help please

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    Hide the navigation pane, disable ribbon, disable shortcut menus with startup options:

    http://www.addintools.com/documents/...s-startup.html
    http://office.microsoft.com/en-us/ac...010226996.aspx
    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
    bnar is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    12
    Thanks For reply...i did what you mentioned,but i want Objects accessible after entering user name and password

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    The navigation pane isn't completely unavailable. F11 will expand it. Review http://www.access-programmers.co.uk/...d.php?t=176195
    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.

  5. #5
    bnar is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    12

    Login Form

    would you please take a look of attached..my question may get much clearer,when you open the database a login form opens first,,they you may enter user name an password(also you may just ignore it and do whatever yo want in the database)i want to force users to enter username and password to see the database objects.
    Thanks
    Attached Files Attached Files

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,895
    I understand the issue. Did you review any of the links I referenced? From what I read it is not simple to programmatically control the navigation pane. Code can expand but apparently not collapse it.
    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.

  7. #7
    bnar is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    12
    Yes, i did review all links that you referenced,unfortunately did not get what i need,anyway Thanks very much for your time

  8. #8
    Siuxia is offline Novice
    Windows XP Access 2003
    Join Date
    May 2012
    Posts
    6
    I have recently made a User level log on system for a DB I have been developing, User would enter Name and password on the initial start up form, which opens a custom switchboard. Selections there are dependant on a AuthType set for each user which is verified by the Username and Password on the initial login form.
    Standard security measures used as well are disabling all tool bars etc on start up, and a bypass key disabled.
    I can't open the file you uploaded here, but will check later to see if anything can be done similarly.

  9. #9
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    I have made a couple of changes to your login form. hope it helps. If your main form acts as a switchboard then I suggest you to hide the ribbon completely.

  10. #10
    bnar is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    12
    Hey Amrut,thanks for the reply i checked attached zip,when i enter user name and password it opens the main form but but can not acces them as the Login Form wont go away and when i try to close it,it closes the database application,tried to remove application.quite on the Vb code of Login form but then it lets you to close the form without even entering User name and password!
    Thanks

  11. #11
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Ok, this one works perfectly. further, you should close the recordset after your code.
    Attached Files Attached Files
    Last edited by amrut; 07-21-2012 at 02:36 AM.

  12. #12
    bnar is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Posts
    12
    Thanks Amrut..it works good,i did hide navigation bar,all menus and disabled right click..thanks again for your time

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

Similar Threads

  1. Replies: 1
    Last Post: 12-11-2011, 11:48 AM
  2. Login form with nt login
    By hitesh_asrani_j in forum Forms
    Replies: 6
    Last Post: 09-22-2011, 11:43 AM
  3. Login to a form?
    By tandkb in forum Forms
    Replies: 0
    Last Post: 04-25-2011, 06:05 PM
  4. Login Form
    By Kookai in forum Access
    Replies: 3
    Last Post: 10-18-2010, 04:23 PM
  5. Access login form help
    By Tempuser in forum Forms
    Replies: 8
    Last Post: 09-10-2009, 06:55 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