The clue is in the message statement: Object variable or With block variable not set.
When you declare an object variable, you must use the SET statement to tell Access to put that object in the memory space you've allocated with the Dim statement.
Set xmlDoc = "C:\users\stand\documents\contactlist.xml"
Then you can perform actions on it.
Last edited by Micron; 05-01-2016 at 08:23 AM.
Reason: grammar
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.