|
|
Question : IMPORT XML Data To Access 2003
|
|
Hi there!
I want to "append the XML data to an existing table" and it is easy to do it "manually" through
File > Get External Data > Import > *.XML (chosen) > (Import Options) "Append Data to Existing table(s)"
but... I want my Access 2003 database, based on the server, to run this routine from an XML data presented also in the server... automatically, from 2 to 2 hours, from (say) 11: am till 4:00 pm (USA time) , from Monday till Friday.
I know I have to use VBA or some Access macro but... I am a newbie in those tools (although I can "read and make small code adjustments" with ease). Could someone help me with this coding?
Thanks, fskilnik.
|
Answer : IMPORT XML Data To Access 2003
|
|
The VBA equivalent of that Application.ImportXML "C:\Data\Test1.xml", acAppendData leave you slightly at the mercy of the formatting Access decides is appropriate. The core concept of xml is a good one - however it's implemtation varies so massively that it's hard to know what you'll get.
You could create a scheduled task to run the application and have that import run on startup... Or you could have a constantly open (but perhaps hidden) form with a timer set. And run the import at the specific times of the day.
To gain more control over the import - you'd have to have relatively loads more code - to parse it yourself and insert it using recordsets.
|
|
|
|
|