|
-
Jun 3rd, 2003, 03:56 PM
#1
Thread Starter
Hyperactive Member
Connecting to a DB using ADO
How do Connect to a Access DB via adodc?
I cant remember the syntix...
-
Jun 3rd, 2003, 04:01 PM
#2
PowerPoster
Well
VB Code:
Dim CNN As New ADODB.Connection
Dim RST As New ADODB.Recordset
CNN.Open GBLSTRCONSTR & STRSUBDBASE5
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Jun 3rd, 2003, 04:04 PM
#3
Thread Starter
Hyperactive Member
user-defind type not defind.
Can you please start from the begining, on how can i connect.
I'm new to all this database things...
tnx
PS: My control is ADO Data Control, is that k?
-
Jun 3rd, 2003, 04:07 PM
#4
PowerPoster
Well
That code eliminates use of bound controls...
You have to adda Reference to get it to work. Ithought you had had some experience in this area before....
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Jun 3rd, 2003, 04:11 PM
#5
Thread Starter
Hyperactive Member
I had very small experience, and what i had, i guess i forgot...
I know how to edit, delete, add, and read records.
What i want to do is to read all the records in a table and get it to a listview.
How do i do that? (connecting and read 1 record after another)
-
Jun 3rd, 2003, 04:35 PM
#6
Thread Starter
Hyperactive Member
K, I guess its too complicated for now.
Well I got this if i use Data Control:
VB Code:
Dim DB As Database
Dim RS As Recordset
Set DB = OpenDatabase(App.Path & "\Stilo.mdb")
Set Data1.Recordset = DB.OpenRecordset("SELECT * FROM Titles WHERE Title Between 'A' And 'B';")
How do i continue from now?
I want to read all the records from the table into a listview.
-
Jun 3rd, 2003, 05:43 PM
#7
Thread Starter
Hyperactive Member
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
|