I am using DAODBEngine to create and manipule database in my application, but I don't reach to fill a datagrid control with it. Here a exemple of my code :

VB Code:
  1. Public recordset As DAO.Recordset
  2. Public dbs As DAO.Database
  3.  
  4. dbs = DAODBEngine.OpenDatabase(locat)
  5. recordset = dbs.OpenRecordset("SELECT * FROM DVD-ROM")
  6.  
  7. frmMain.DefInstance.DataGrid.DataSource = recordset

locat is the path of the database.


Thanks for your help