Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB 6.0 >>> VB.NET / November 2005

Tip: Looking for answers? Try searching our database.

upgrading adodc object from vb6 to .net !!Please help!!!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
howie - 08 Nov 2005 17:42 GMT
My adodc object won't work in my converted .net app. In order to test the
conversion process I wrote a simple app that used a datagrid and an adodc
object in vb6. I then converted the project to vb .net and the app woudln't
work. The first problem was that their were errors saying that I need to add
a reference to ADODB even though the dll  was in the reference section of the
project. After I removed the reference and added a working version of the
reference I got an error when I tried to set the record source of the  adodc
object that says "object reference not set to an instance of an object". This
issue is driving me crazy and I would really appreciate any incite any one
can offer. Below is the converted code that cause the error.

Dim Gds_cpv As New RDS.DataSpace
Dim lador_JLD As New ADODB.Recordset
       
Dim Gdf_cpv As Object
Gdf_cpv = Gds_cpv.CreateObject("RDSServer.DataFactory", "http://172.18.1.11")
       
lador_JLD =
Gdf_cpv.Query("Database=Midlands;Uid=sa;Pwd=e;SERVER=172.18.1.11;Driver={SQL
SERVER};DSN='';", "select * from AccountPlan")
Adodc1.Recordset = lador_JLD //<--- This line causes the error
DataGrid1.DataSource = Adodc1
Earl - 09 Nov 2005 16:06 GMT
You cannot use the ADODC in your .Net project.

> My adodc object won't work in my converted .net app. In order to test the
> conversion process I wrote a simple app that used a datagrid and an adodc
[quoted text clipped - 24 lines]
> Adodc1.Recordset = lador_JLD //<--- This line causes the error
> DataGrid1.DataSource = Adodc1

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.