Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131

    Access 2007 & Domains


    I use to build Access 2000 and > with Workgroup authority on what users could and could not see and View, Edit and Delete in the database. Microsoft does not have Workgroup authority any longer unless I dumb the database down to an MDB (as far as I can tell). I would like to use the Network domain and domain groups to allow users to View, Modify and Delete information in Access 2007 and I have not found much information on the web about this.
    Can anyone point me in the correct direction?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    My friend Tom has code and a sample db here that might help:

    http://www.accesssecurityblog.com/
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131

    Thanks.

    Thank you, this looks exactly what I am looking for. I appreciate it and I will let you know my status on the project.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem, I hope it helps.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131

    Code Reference

    I am starting to write the code to make the Access database Security based on AD and I have a quick question. I am not an expert coder and in a blog I found the following that I am not sure how to accomplish, it is;

    Code Reference

    To start using the sample code in the attached project, copy these modules to your application: modAPI, modSecurity, and modUtilities. Also set a reference (code window > Tools > References) to "Active DS Type Library" (activeds.tlb). Choose Debug > Compile to make sure the code compiles.
    modSecurity has several public functions that are used to apply security. The first one we already briefly saw in action above:

    Any help would be appreciated

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Paul must still be sleeping but maybe I can help. What part of what you just described do you not understand?

  7. #7
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131
    Thanks.

    How do I get the references into the database? Where do I get them?

    To start using the sample code in the attached project, copy these modules to your application: modAPI, modSecurity, and modUtilities. Also set a reference (code window > Tools > References) to "Active DS Type Library" (activeds.tlb). Choose Debug > Compile to make sure the code compiles.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Did you import the modules into your application? While viewing the code did you then go to Tools>References and scroll down and see if Active DS Type Library was there and check it?

  9. #9
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131
    I'm sorry, is it on the web page? I do not see it.

  10. #10
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131
    Thanks Rg. I noticed the downloadable zip file in the post, downoaded it, found the mods and imported them into my database and went into VB and found the refernces.

    Thanks again.

  11. #11
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131

    fOsUserName

    I am compiling the database and I am attempting to put in an audit trail that tells the database who updated a table. It works fine in my form, but when I compile the code I get an on

    Private Sub Form_AfterUpdate()
    Me.Updatedby = fOSUserName
    End Sub

    It states Ambiguous name detected: fOUsername

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    fOUsername is not an Access intrinsic function. It would need to be created in a standard module.

  13. #13
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    If it's saying ambiguous name, make sure the module isn't named the same as the function.

    I was definitely sleeping earlier!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  14. #14
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Quote Originally Posted by pbaldy View Post
    If it's saying ambiguous name, make sure the module isn't named the same as the function.

    I was definitely sleeping earlier!
    You hit the nailn the head Paul and good morning sunshine!

  15. #15
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    <insert yawn here>

    <insert stretch here>

    Ah, do I have to get up already?!?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Users on Different Domains
    By bhj83 in forum Security
    Replies: 1
    Last Post: 01-05-2011, 09:33 PM
  2. code changes from access 2003 to access 2007
    By daversb in forum Programming
    Replies: 1
    Last Post: 11-30-2010, 05:32 PM
  3. Replies: 6
    Last Post: 12-01-2009, 11:59 AM
  4. Replies: 0
    Last Post: 11-17-2009, 02:35 PM
  5. Replies: 32
    Last Post: 09-16-2009, 10:06 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