CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2001
    Posts
    1

    DAO multiple user security

    After setting different users and passwords through Ms Access to a database ( secured database ) ; How can I open that database with a specific user name through DAO 's opendatabase method in VB ? I know how to open a password protected database file ; here I wants to open with the privilages of a specific user. ie; I wants to provide user level security. Thankz


  2. #2
    Join Date
    Aug 2000
    Location
    Namibia
    Posts
    139

    Re: DAO multiple user security

    We're going back sometime here, but I'll try give you some pointers.
    First set the the path to the system.mdw (workgroup security settings file). This path is a property of the DBEngine, probably something like systemdb(?).
    Once you have that property set you should create a workspace with the appropriate User Name and Password (for this you can create a logon form). If the procedure fails (i.e. workspace could not be created) then the username or password was invalid.
    HTH


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured