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!!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
JoarAuthor Commented:
I have already solved it with a nz(fieldname).
But this forced me to change the output field name and hence had to go trough another query to come back to the correct field name (the output field names could not change):

Query 1: XMLFieldX: nz(XMLField)
Query 2: XMLField: XMLFieldX

Heavy when you have a lot of fields...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Create a query that opens your first query and change the names back again.
Scott C
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

JoarAuthor Commented:
That was what I did....
sorry.. I see that in your previous comment..
Scott C
JoarAuthor Commented:
It did function, but I was hoping of a more nice way of handling the problem
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.