Hi,
I have been hitting my head against the wall the last few days because I can't get the export of access tables to XML to work.
I have 3 tables total.
Table1 is the main table and can have many records of Table2. Table2 can have many records of Table3.
When I export via Application.ExportXML the last table (Table3) ends outside the tag of Table1. Really it should have ended up inside the tag for Table2.
Here's the strange thing, if I use the export feature from the File menu, it works perfect! So I can't say that the relationship model is messed up or not.
Anybody have experience export Access tables with so many levels?
Thanks
I have been hitting my head against the wall the last few days because I can't get the export of access tables to XML to work.
I have 3 tables total.
Table1 is the main table and can have many records of Table2. Table2 can have many records of Table3.
When I export via Application.ExportXML the last table (Table3) ends outside the tag of Table1. Really it should have ended up inside the tag for Table2.
Here's the strange thing, if I use the export feature from the File menu, it works perfect! So I can't say that the relationship model is messed up or not.
Code:
Dim adOtherTables As AdditionalData
Set adOtherTables = Application.CreateAdditionalData
adOtherTables.Add "User_Org"
adOtherTables.Add "Location_Privilege"
Application.ExportXML acExportTable, "System_User", _
"c:\test.xml", , , , , , , adOtherTables
Anybody have experience export Access tables with so many levels?
Thanks