Automating XML Import to Access 2002 with VBA

Hi,

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?

Cheers.
JoHarrisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alan WarrenApplications DeveloperCommented:
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
http://www.vbxml.com/xml/guides/developers/ado_persist_xml.asp


Alan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JoHarrisAuthor Commented:
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.
0
JoHarrisAuthor Commented:
That did the trick - thanks heaps!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.