S
Skeeve
Folks,
I've been trying to get this to work for more than a day now. It
drives me crazy!!
This is example code from MSDN and it just doesn't work for me:
Dim adoConn As ADODB.Connection
Dim adoRS As ADODB.Recordset
adoConn = New ADODB.Connection()
adoRS = New ADODB.Recordset()
adoConn.Open("Provider=MSDAOSP; Data
Source=MSXML2.DSOControl.2.6;")
adoRS.Open("c:\tmp.xml", adoConn)
The error I get all the time is:
Object reference not set to an instance of an object
and it applies to this line:
adoRS.Open("c:\tmp.xml", adoConn)
Well, if you ask me, adoConn is an instance of an object and adoRS is
as well.
Any help greatly appreciated! I need to read a simple XML file into a
recordset for binding it to a datagrid.
Thanks,
Torsten
I've been trying to get this to work for more than a day now. It
drives me crazy!!
This is example code from MSDN and it just doesn't work for me:
Dim adoConn As ADODB.Connection
Dim adoRS As ADODB.Recordset
adoConn = New ADODB.Connection()
adoRS = New ADODB.Recordset()
adoConn.Open("Provider=MSDAOSP; Data
Source=MSXML2.DSOControl.2.6;")
adoRS.Open("c:\tmp.xml", adoConn)
The error I get all the time is:
Object reference not set to an instance of an object
and it applies to this line:
adoRS.Open("c:\tmp.xml", adoConn)
Well, if you ask me, adoConn is an instance of an object and adoRS is
as well.
Any help greatly appreciated! I need to read a simple XML file into a
recordset for binding it to a datagrid.
Thanks,
Torsten