• querying ACtive Directory Win 03

    Author
    Topic
    #423293

    Good evening loungers

    Could someone please point in the correct direction to get to the starters box.

    I wish to use vba to access user details in the AD.

    The goal is to automatically populate docvariables in some Word templates.
    Currently I use an access database but it is redundant if I can hit the AD.

    Server 2003, Office 03

    Regards
    Geof

    Viewing 0 reply threads
    Author
    Replies
    • #968136

      I think we’ve had a couple threads on this. Here’s an article I ran across in the past 10 minutes on using ADO: Searching the AD.

      • #968350

        Hi Jefferson
        I am off to a rasonable start with this.

        The following works fine ..
        objCommand.CommandText = “SELECT AdsPath,cn FROM ‘LDAP://DC = ara,DC=local’ WHERE Name = ‘geof richardson'”

        I now want to pass the the contents of a text box through to that select statement
        something like userform1.tbName.

        I am getting all the problems associated with the quoting …

        Any help would be appreciated

        Regards
        Geof

        • #968366

          Hi folks

          I got it

          objCommand.CommandText = “SELECT AdsPath,cn FROM ‘LDAP://DC = ara,DC=local’ WHERE Name = ‘ ” & strName & “‘”

          cheers
          Geof

    Viewing 0 reply threads
    Reply To: querying ACtive Directory Win 03

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: