Automating XML Import to Access 2002 with VBA

Posted on 2004-11-10
Last Modified: 2010-08-05

I have five xml files which I'm wanting to import automatically through VBA into an access 2002 database.

Is there a nice easy snippet of VBA code that I could use, that would also be easily transportable if I decide at a later date to make this into a proper VB app?

Question by:JoHarris
    LVL 26

    Accepted Solution

    How were  the xml files created?

    if you created them by persisting an ADO.Recordset as  XML, it's relatively easy to open the XML as an ADO.Recorcordset and parse the  fields into a table.

    Check this site:
    Persisting an ADO Recordset to XML


    Author Comment

    They were created by a third party application but are easily imported through Access' file menu.  I'll go and have a look at the ado link, that sounds as though it should do the trick.

    Author Comment

    That did the trick - thanks heaps!

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
    Creating and Managing Databases with phpMyAdmin in cPanel.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now