Dear All,
Thanks for a great forum.
My problem is as such.
I have a form MainScreen
It has a fields, txtPath which contains the path to where it should save the document, sFullPath which is the ListCP and txtPath combined.
I am trying to export the query chosen in the list (ListCP) to XML format
I have only succeeded in exporting the query to xls format, as below.
What do I need to change in order to export in to XML?
Thank you in advance for your help!
Thank you,
Kind regards
Triacona
Thanks for a great forum.
My problem is as such.
I have a form MainScreen
It has a fields, txtPath which contains the path to where it should save the document, sFullPath which is the ListCP and txtPath combined.
I am trying to export the query chosen in the list (ListCP) to XML format
I have only succeeded in exporting the query to xls format, as below.
Code:
Private Sub CpOutputQueryToXML_Click()
Dim stDocName As String
Dim FullPath As String
stDocName = ListCP
sFullPath = txtPath & ListCP & ".xls"
DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, sFullPath, True
End Sub
What do I need to change in order to export in to XML?
Thank you in advance for your help!
Thank you,
Kind regards
Triacona