Hi:
I have a control on my Access application switchboard that will export certain tables in my DB using the ExportXML method. It works fine. However, according to MS, the SchemaTarget, Datatarget, and DataSource have to be strings. I want to popup a typical MS file save window, let the user specify filename and location (tried to use CommonDialog.ShowSave but didnt work), and then pass the file name and location to ExportXML. Can anybody show me the code to do this?
Thanks
J
The example of Exportxml that works, is below.
---------------------------
Application.ExportXML ObjectType:=acExportTable, DataSource:="system_INSTANCE", _
SchemaTarget:="c:\SystemInstanceExportTest.xsd", _
DataTarget:="c:\SystemInstanceExportTest.xml", AdditionalData:=objSystemInfo
I have a control on my Access application switchboard that will export certain tables in my DB using the ExportXML method. It works fine. However, according to MS, the SchemaTarget, Datatarget, and DataSource have to be strings. I want to popup a typical MS file save window, let the user specify filename and location (tried to use CommonDialog.ShowSave but didnt work), and then pass the file name and location to ExportXML. Can anybody show me the code to do this?
Thanks
J
The example of Exportxml that works, is below.
---------------------------
Application.ExportXML ObjectType:=acExportTable, DataSource:="system_INSTANCE", _
SchemaTarget:="c:\SystemInstanceExportTest.xsd", _
DataTarget:="c:\SystemInstanceExportTest.xml", AdditionalData:=objSystemInfo