• Access and CSVDE (Access 2003)

    Author
    Topic
    #413462

    I want to build in VBA the ability to use CSVDE to pull my Users and permissions into a table to establish a baseline and then from then on I want to pull the AD information and compare it to my baseline data and show exceptions in a list box.

    Has anyone got something like this already going or any ideas I currently am using excel for pulling the data by exporting it into a csv file then importing it into Excel. I think it would be much easier to manage in Access and to see if I have any unauthorized accounts if I had a baseline to compare the AD dump to.

    Anyone have anything??

    Dan

    Viewing 1 reply thread
    Author
    Replies
    • #912490

      I don’t know anything about CSVDE or AD.

      You can import or link .csv files in Access directly. If you import interactively through Files | Get External Data | Import…, you can store an import specification that you can use when importing/linking the data in VBA. The method used for this is DoCmd.TransferText. Type this in the Visual Basic Editor and press F1 to get help on TransferText.

      • #912496

        Thanks Hans. I will get right on that. Do you have any suggestions in comparing the imported info against the baseline data? I was going to create a temp table for the newly imported data and compare it against the baseline table…but how do I do the comparison and get a list of the fields that arent in the baseline table??

        Dan

        • #912502

          Please clarify. Are you trying to compare fields, that is, table structure, or are you trying to compare data?

          • #912524

            Sorry for the confusion ,

            What I want to do is compare the name field in the imported table against the name field in the baseline table and have any differences show in a list box on the form.

            Hope that is a bit clearer.

            Dan

            • #912553

              It sounds like you could use the Find Unmatched Query Wizard to create the query you need.

          • #912525

            Sorry for the confusion ,

            What I want to do is compare the name field in the imported table against the name field in the baseline table and have any differences show in a list box on the form.

            Hope that is a bit clearer.

            Dan

        • #912503

          Please clarify. Are you trying to compare fields, that is, table structure, or are you trying to compare data?

      • #912497

        Thanks Hans. I will get right on that. Do you have any suggestions in comparing the imported info against the baseline data? I was going to create a temp table for the newly imported data and compare it against the baseline table…but how do I do the comparison and get a list of the fields that arent in the baseline table??

        Dan

    • #912491

      I don’t know anything about CSVDE or AD.

      You can import or link .csv files in Access directly. If you import interactively through Files | Get External Data | Import…, you can store an import specification that you can use when importing/linking the data in VBA. The method used for this is DoCmd.TransferText. Type this in the Visual Basic Editor and press F1 to get help on TransferText.

    Viewing 1 reply thread
    Reply To: Access and CSVDE (Access 2003)

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

    Your information: