ExportXML help - how to allow user to specify target??

jjh

Registered User.
Local time
Today, 15:01
Joined
Jun 7, 2006
Messages
32
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
 

Users who are viewing this thread

Back
Top Bottom