Results 1 to 2 of 2

Thread: populating my Data Grid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101
    hi! i've tried to use some codes that i found in this forum (i forgot the thread no... but it was a reply made by UKPhil). The code creates a recordset using ADODB without specifying an existing database. The recordset was then saved to a file using the code

    rst.Save "C:\myfolder\myfile.rst", adPersistADTG


    My question is... how can I populate my Data Grid with this existing recordset?

    thanks for the help.

    -I'm using VB 6.0 Enterprise Edition
    icq: 16228887

  2. #2
    Member
    Join Date
    Jun 2000
    Location
    Perth Western Australia
    Posts
    41

    Cool

    You should simply be able to set your datagrid or whatever to the recordset thus............

    Set DataGrid1.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