vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO
Go Back  Xtreme Visual Basic Talk > > > vs ADO

Thread Tools Display Modes
Old 05-13-2016, 03:32 PM
JerryEng JerryEng is offline
Junior Contributor
Join Date: Sep 2002
Location: Franklin, NC
Posts: 203
Default vs ADO

I have an app that was developed in VB6 using ADO to get data from Access. I would like to to update the app using VB 2015. I'm having some trouble getting a handle on Could someone give a code snippet that would mimic the following VB6 code to put data in a recordset?

Public adoconnection1 As New ADODB.Connection
Public rs As New ADODB.Recordset
Private Sub Form_Load()

adoconnection1.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source= C:\EC1\EC1Data.mdb"

rs.CursorLocation = adUseClient
rs.Open "Select * from Jobs Where JobNumber = 10243", adoconnection1, adOpenDynamic

Text1.Text = rs!JobName


If I just have something to get started, I can usually figure it out from there. BTW, I'm not a developer, I'm an electrical engineer and the app is something 5 or 6 of us use in house. The app makes several calls to get data from the DB and update it but the majority of the calls return one row. The biggest call might return 75 rows but it displays them in a grid.
Reply With Quote
Old 07-04-2016, 05:55 AM
Dennis DVR's Avatar
Dennis vs ADO Dennis DVR is offline
Back in the Game

Forum Leader
* Expert *
Join Date: Nov 2003
Location: Manila Philippines
Posts: 3,577

Check this ADO.NET Code Examples from MSDN

Originally Posted by JerryEng View Post
BTW, I'm not a developer, I'm an electrical engineer]
Good Luck then I hope that above link would be helpful to you
Avatar by Lebb

[Posting Guidelines] [Standards & Practices Tutorial] [Participate here effectively]
Our knowledge can only be finite, while our ignorance must necessarily be infinite. Karl Popper
Reply With Quote

data, app, return, code, adoconnection1,, public, calls, vb6, ado, update, grid, developer, electrical, engineer, btw, figure, started, rs.close, majority, biggest, row, makes, call, displays

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO vs ADO