Question : Access Recordset

I have a module where I use recordset to update a local Access table and it's working fine. However, when I'm trying to use the same module to update an ODBC linked table in Access from SQL server, the rs.edit is no longer working. Please let me know how can I make the recordset to work with the ODBC tables?

Answer : Access Recordset

It's DAO.

First, be SURE there is a Reference set to Microsoft DAO. 3.6 Object Library

VBA Editor>>Tools>>References ... see attached screen shot

Then, try changing:

Dim db As Database
Dim rs As Recordset
Dim db2 As Database
Dim rs2 As Recordset

To

Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim db2 As DAO.Database
Dim rs2 As DAO.Recordset
Random Solutions  
 
programming4us programming4us