Problem with xml code

D

Don

The underlying code works in XP but fails in Win2000 with
the error message "Run-time error '429': ActiveX component
can't create object"
All references are the same including versions

Private Sub cmdImportByFileName_Click()
Dim oXmlDoc As MSXML2.DOMDocument26

' Create a new XML document object
Set oXmlDoc = New MSXML2.DOMDocument26

' Load the xml file
oXmlDoc.Load "c:\xml\financeextract.asp"

' If there was a problem with parsing the xml
If oXmlDoc.parseError.errorCode <> 0 Then
MsgBox oXmlDoc.parseError.reason
Exit Sub
End If

' Import the Xml file into the xml_request_hist table
ImportXML oXmlDoc

MsgBox "Finished!"
End Sub
Any help or ideas appreciated

Don
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top