|
-
Dec 9th, 2003, 01:02 AM
#1
Thread Starter
Frenzied Member
vb.net and ado [RESOLVED]
can you still use ado when you program in vb.net? I'm sure there is no problem.
Last edited by Andy; Feb 11th, 2004 at 09:39 PM.
-
Dec 9th, 2003, 01:15 AM
#2
-
Dec 9th, 2003, 06:34 AM
#3
Thread Starter
Frenzied Member
thats what I'm running up against. my project leader want to use ado and no ado.net. Now I've got to learn no only vb.net but ado AND how to use the two together!! what a life
-
Dec 9th, 2003, 08:24 AM
#4
Hyperactive Member
-
Dec 9th, 2003, 08:25 AM
#5
Hyperactive Member
Set myConnection = New ADODB.Connection
Set myRecordset = New ADODB.Recordset
myConnection.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=abc.mdb"
myConnection.Open
myRecordset.Open "Select * from tablename ", myConnection
bla
bla
bla
-
Dec 10th, 2003, 06:02 AM
#6
Hyperactive Member
mendhak
ADO.NET is a replacement for ADO.
As far as I know ADO.NET is for non connected mode and if ur project is like the one of airlines or train reservation, u cannot use ADO.NET
-
Jan 26th, 2004, 10:33 AM
#7
Thread Starter
Frenzied Member
Originally posted by sw_is_great
Set myConnection = New ADODB.Connection
Set myRecordset = New ADODB.Recordset
myConnection.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=abc.mdb"
myConnection.Open
myRecordset.Open "Select * from tablename ", myConnection
bla
bla
bla
when I enter this in my program, (I have to use 'dim' instead of 'set' or i get a syntax error) I get the familiar squigly blue underlines and it says that the adodb.connection is not defined. same with the recordset. is there a namespace I need to import?
Last edited by Andy; Jan 26th, 2004 at 10:45 AM.
-
Jan 26th, 2004, 11:03 AM
#8
Thread Starter
Frenzied Member
aha! discovered that I need to goto 'Project' and then add a reference to adodb!! learning...learning!!
-
Jan 26th, 2004, 01:52 PM
#9
Lively Member
Many of the ADODB (ADO) properties are displayed in adoanywhere free tool. Helps you learn faster.
Mike Collier
Free ADO & DotNet Tools and Source
AdoAnywhere

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|