|
-
Aug 21st, 2001, 02:21 AM
#1
Thread Starter
Lively Member
Datagrid
How to link a recordset to a data grid?
I made an sql and want to link it to a datagrid, how to fix it?
-
Aug 21st, 2001, 02:26 AM
#2
PowerPoster
Use ADO Or dao.
You've got an sql database???
If so make a connection etc. then set dbgrids datasource to that connection or control!
For info about connecting to a db etc. see the db tutorials on this site.
-
Aug 21st, 2001, 02:33 AM
#3
Thread Starter
Lively Member
Yes i have an sql database
does it has to be something like this?
Set dg1.DataSource = sql
when i try this I have object required
-
Aug 21st, 2001, 02:36 AM
#4
Thread Starter
Lively Member
Now i tried this.
Set dg1.DataSource = rs
I got an error that my recordset is not bookmarkable.
-
Aug 21st, 2001, 02:37 AM
#5
PowerPoster
Nope you'll need to create a connection to the database first!
Then a recordset pointing to the db's table/recordset!
Read the tutorials they'll get you moving!
Basically the best and easiest way is to use the ADO Data control!
Work with that!
Found in Project/Components/Microsoft Active Data Object 2.5 blah blah
-
Aug 21st, 2001, 03:11 AM
#6
Thread Starter
Lively Member
i could do the same thing with a flexgrid
but there i can't use the record selectors
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
|