- Local time
- Today, 16:32
- Joined
- Sep 12, 2006
- Messages
- 15,999
check your code references.
in the module, do tools/references
DAO should be checked, above ADO
maybe try
dim db as dao.database
dim rst as dao.recordset
I didn't think I had changed anything there though - I just moved the code to a different area - so I don't see why it would not work now.
Just re-checked, and it probably is that. JamesMc had originally used dao.recordset.
What it is, is that there are two libraries of functions to access tables and queries, DAO and ADO - both are similar and use the same commands but are not completely interchangeable. It didn't help the MS started by making DAO the "default" version, then changed to ADO, then changed back again - so it is easy to get the wrong version by accident.
in the module, do tools/references
DAO should be checked, above ADO
maybe try
dim db as dao.database
dim rst as dao.recordset
I didn't think I had changed anything there though - I just moved the code to a different area - so I don't see why it would not work now.
Just re-checked, and it probably is that. JamesMc had originally used dao.recordset.
What it is, is that there are two libraries of functions to access tables and queries, DAO and ADO - both are similar and use the same commands but are not completely interchangeable. It didn't help the MS started by making DAO the "default" version, then changed to ADO, then changed back again - so it is easy to get the wrong version by accident.