Results 1 to 2 of 2

Thread: populate a DBGrid using a rcordset

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    10
    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!

  2. #2
    New Member
    Join Date
    Mar 2000
    Location
    Brooklyn NY
    Posts
    3
    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
  •  



Click Here to Expand Forum to Full Width