471,887 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,887 software developers and data experts.

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 7 '05 #1
0 1180

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 YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.