PDA

Click to See Complete Forum and Search --> : populating my Data Grid


rod
Aug 1st, 2000, 01:35 AM
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

CGTS
Aug 1st, 2000, 10:56 PM
You should simply be able to set your datagrid or whatever to the recordset thus............

Set DataGrid1.DataSource = rs