This is one of the more common chores when doing development using COM. DAO is the language to access data and contains objects like Database, Recordset, TableDef, Fields, etc. It's is being slowly replaces by ActiveX Data Objects (ADO) which is why you need to explicitly dimension the recordset or your system, by default, will believe it needs to reference the ADO Recordset. The Data Access Objects (DAO) library is most probably on your system already. You just need to let your application know that you want to use it. To do that open a module, any module, in design mode and go to Tools\References. Scan down the list of available reference objects until you come to (probably) 'Microsoft DAO Object Library 3.6'.
Steve King ----------------------
Steve King
scking@arinc.com
Life is filled with lessons.
We are responsible for the
results of the quizzes.
-----------------------