|
-
Mar 21st, 2000, 10:16 PM
#1
Thread Starter
New Member
Hi,
Can anyone please tell me how to populate a DBgrid using a recordset. I have created my recordset set using the following code:
Set rs = New adodb.Recordset
rs.Open lpzSQL, conn, adOpenKeyset, adLockOptimistic
and I know that it succeeds in getting the info from the DB.
Any suggestions would be greatly appreciated.
Cheers!
-
Mar 21st, 2000, 10:29 PM
#2
New Member
You must set DataSource property of your grid:
DBGrid1.DataSource=rs
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
|