I have multiple Microsoft Access tables that I want exported into a single XML file. How do I manipulate the order and hierarchy of the tables into the XML structure that I
here is the solution via VBA:
http://msdn.microsoft.com/en-us/library/ff193212.aspx
create a from and put a button on it. right click on the button and choose "build event" and past the following code:
Dim objOtherTbls As AdditionalData
Set objOtherTbls = Application.CreateAdditionalData
'Identify the tables or querys to export
objOtherTbls.Add "internet"
objOtherTbls.Add "mokaleme"
'Here is where the export takes place
Application.ExportXML ObjectType:=acExportTable, _
DataSource:="internet", _
DataTarget:="C:\myxml.xml", _
AdditionalData:=objOtherTbls
MsgBox "Export operation completed successfully."
you have to type the name of your tables here and between quotations:
objOtherTbls.Add "internet"
objOtherTbls.Add "mokaleme"
DataSource:="internet"