Problem with xml code

  • Thread starter Thread starter Don
  • Start date Start date
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
 
Back
Top