Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting as XML

Status
Not open for further replies.

flaviooooo

Programmer
Feb 24, 2003
496
FR
Hey,

I'm trying to export a query to XML format, but don't know how to do it properlY...

I'm using the following at the moment:

Dim stDocName As String
stDocName = "Q_STOCK_LABEL_RM"

DoCmd.OutputTo acOutputQuery, stDocName, acFormatXML, "C:\test.xml", False, ""

But this only pops up the 'Output To'-screen, where I need to manually select XML again.

Is there a way to bypass this part?

Kind regards
F


 
Which version of access admits acFormatXML ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hey, I don't think it's actually a supported code but I use Access 2003.

It doesn't work the way it's supposed to however...
 
look for "ExportXML Method" in the help

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top