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