And further to John's information, you may need to qualify your DAO objects,
like this:
dim db as DAO.database, rs as DAO.recordset, etc.
^^^^^ ^^^^^
That depends on what libraries are selected & in what order they appear. It
might or might not be required in your case. You can do no harm by coding as
above, even when it is not required.
HTH,
TC