469,609 Members | 1,666 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

adodc error "object reference not set to instance of object"

I've upgraded a vb6 application to vb .net and am having an issue.
whenever I try to set the recordset property of the VB6.adodc object in .net
and run the application I get the error “object reference not set to an
instance of an object”

this is what the code looks like

Dim lador_JLD As New ADODB.Recordset
ls_sql = "execute sp_ShiftEditJobsDetail "
Dim Gdf_cpv As Object
Gdf_cpv = Gds_cpv.CreateObject("RDSServer.DataFactory", Gs_server)
lador_JLD = Gdf_cpv.Query(Gs_connect, ls_sql)
Dim Adod_orderdetail2 As New VB6.ADODC
Adod_orderdetail2.Recordset = lador_JLD // <-- THIS CAUSES ERROR
Nov 22 '05 #1
0 744

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by =?Utf-8?B?QmFkaXM=?= | last post: by
reply views Thread by Solution2021 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.