jscriptor09
New member
- Local time
- Today, 15:30
- Joined
- Apr 13, 2011
- Messages
- 2
Hi Folks
I have office 2010. In my Excel Macro, I added reference to DAO 3.6 object library. My goal is to be able to update a record in a table or add a record to the end of the table.
I et an error as soon as I reach this line
Dim db As Database, rs As Recordset, r As Long
'
Set db = OpenDatabase("C:\Documents and Settings\some.accdb")
The error is un-recognize database format
I need to do this via vba as opposed to manual. Any help with example on how to access 2010 db and update records will be greatly appreciated.
Mike
I have office 2010. In my Excel Macro, I added reference to DAO 3.6 object library. My goal is to be able to update a record in a table or add a record to the end of the table.
I et an error as soon as I reach this line
Dim db As Database, rs As Recordset, r As Long
'
Set db = OpenDatabase("C:\Documents and Settings\some.accdb")
The error is un-recognize database format
I need to do this via vba as opposed to manual. Any help with example on how to access 2010 db and update records will be greatly appreciated.
Mike
Last edited: