It really would help if you included more of your code, and told us what
version of Access you're using.
My assumption is that you've got something like:
Dim Rs As Recordset
and that you're either using Access 2003, or that you're using Access 2000
or 2002, you've added a reference to DAO, but you didn't remove the
reference to ADO (and the DAO reference is lower in the list than the ADO
reference).
The problem is that Recordset is an object in both the ADO and DAO models,
so when your declaration is ambiguous, Access just takes the first one it
encounters.
Change it to
Dim Rs As DAO.Recordset
or if you're not going to be using ADO, remove the reference to it.
If you are going to be using a mix of DAO and ADO, you'd be well advised to
disambiguate your ADO declarations as well, just to be sure:
Dim Rs As ADODB.Recordset
The list of objects with the same names in the 2 models is Connection,
Error, Errors, Field, Fields, Parameter, Parameters, Property, Properties
and Recordset