Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

populate a datagrid with a recordset

Status
Not open for further replies.

pitou

Programmer
Aug 7, 2002
3
FR
Hello

I m looking for a way to populate a datagrid with a recordset.

In fact I would like, if possible, to solve this question with a DAO script instead of ADO, because I most often work with access database and not with big databases.

I know how to create a recordset from access, I know also that we certainly have to use the "additem" method to associate the fields of the datagrid and the fields of the recordset. I know how to do it with a dropdownlistbox with a loop but I must acknowledge that I m not yet skilled to do it with a datagrid.

Thanks in advance for any kind of info.

Jean-Pierre


 
set dgdYourDataGrid.DataSource = recYourRecordset
 

Thanks nigz for your reply !

jean-Pierre
 

Thanks nigz for your reply !

jean-Pierre
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top