Link to home
Start Free TrialLog in
Avatar of Joar
Joar

asked on

Exporting NULL values from MS Access 2007 with the command Application.ExportXML

When I use the command Application.ExportXML to export a query in MS Access (2007), the NULL value fields are not exported.
Not even as blank tags (<nullvaluetag></nullvaluetag>

Am I not able to specify or do something to get tags generated also for fields with NULL values?
I am exporting database changes to another system. Hence changes from a existing value to a NULL value is not exported!!
Avatar of clarkscott
clarkscott
Flag of United States of America image

You will probably have to build a query that include an alternative to a null.

iif(not isnull([YourField]), [YourField],"")     if text
iif(not isnull([YourField]), [YourField],0)     if number

Every possible field would have to include this function.
You can access an Access Query just like an Access table from the 'outside' world.
Scott C
ASKER CERTIFIED SOLUTION
Avatar of Joar
Joar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Create a query that opens your first query and change the names back again.
Scott C
Avatar of Joar
Joar

ASKER

That was what I did....
sorry.. I see that in your previous comment..
Scott C
Avatar of Joar

ASKER

It did function, but I was hoping of a more nice way of handling the problem