AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,072
- Office Version
- 2019
- 2010
- Platform
- Windows
Hi.. run into a problem. Although my code did work with an .accdb file, attempting this with a particular file results in
The database you are trying to open requires a newer version of Microsoft Access.
I guess this means there are different types of accdb. I also tried DAO but the same problem.
Is there a solution? I need to update one record in DB001 which triggers a further event (in Access).
Excel is Office 2010 and Access Office 2019, and O: is mapped drive on LAN.
The database you are trying to open requires a newer version of Microsoft Access.
VBA Code:
Function getConn() As ADODB.Connection
Dim rv As New ADODB.Connection
Dim strConn As String
strConn = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source = O:\DB001.accdb"
rv.Open strConn
Set getConn = rv
End Function
Is there a solution? I need to update one record in DB001 which triggers a further event (in Access).
Excel is Office 2010 and Access Office 2019, and O: is mapped drive on LAN.