dalanaaccess
New member
- Local time
- , 17:07
- Joined
- Feb 13, 2018
- Messages
- 7
Hi All,
I am trying to export only one record out of table to XML file.
Of coursee I have qry ready and running qry only out of code works great.
When I am using following code it is not showing anything, but it also not creating file.
Application.ExportXML ObjectType:=acExportQuery, _
DataSource:="qryNW", _
DataTarget:="C:\DB\Customer.XML", _
WhereCondition:="[OrderNumber] = " & txtOrderNumber.Value
If I remove WhereCondition it is creating file, but includes all records from table that qry is running on.
Please help. :banghead:
I am trying to export only one record out of table to XML file.
Of coursee I have qry ready and running qry only out of code works great.
When I am using following code it is not showing anything, but it also not creating file.
Application.ExportXML ObjectType:=acExportQuery, _
DataSource:="qryNW", _
DataTarget:="C:\DB\Customer.XML", _
WhereCondition:="[OrderNumber] = " & txtOrderNumber.Value
If I remove WhereCondition it is creating file, but includes all records from table that qry is running on.
Please help. :banghead: