I'm trying to make a connection to MS Access database via Microsoft ACE OLEDB 12.0. I'd like to make it work on both Excel 2010 and Excel 2013, so that the end user would just refresh connection to get new data. The problem is that Excel 2013 adds 2 properties to the connection string that makes the connection unusable for the Excel 2010 user. Is there a way to prevent Excel 2013 from adding those, or to make Excel 2010 ignore them? The file with the connection would be on network drive, and would be used by both Excel 2010 and 2013 users.
EXCEL 2010:
Provider=Microsoft.ACE.OLEDB.12.0;
User ID=USER;
Data Source=path1.mdb;Mode=Read;
Extended Properties="";
Jet OLEDB:System database=path2.mdw;
Jet OLEDB:Registry Path="";
Jet OLEDB:Engine Type=5;
Jet OLEDB:Database Locking Mode=1;
Jet OLEDB:Global Partial Bulk Ops=2;
Jet OLEDB:Global Bulk Transactions=1;
Jet OLEDB:New Database Password="";
Jet OLEDB:Create System Database=False;
Jet OLEDB:Encrypt Database=False;
Jet OLEDB:Don't Copy Locale on Compact=False;
Jet OLEDB:Compact Without Replica Repair=False;
Jet OLEDB:SFP=False;
Jet OLEDB:Support Complex Data=False;
Jet OLEDB:Bypass UserInfo Validation=False
EXCEL 2013:
Provider=Microsoft.ACE.OLEDB.12.0;
User ID=USER;
Data Source=path1.mdb;Mode=Read;
Extended Properties="";
Jet OLEDB:System database=path2.mdw;
Jet OLEDB:Registry Path="";
Jet OLEDB:Engine Type=5;
Jet OLEDB:Database Locking Mode=1;
Jet OLEDB:Global Partial Bulk Ops=2;
Jet OLEDB:Global Bulk Transactions=1;
Jet OLEDB:New Database Password="";
Jet OLEDB:Create System Database=False;
Jet OLEDB:Encrypt Database=False;
Jet OLEDB:Don't Copy Locale on Compact=False;
Jet OLEDB:Compact Without Replica Repair=False;
Jet OLEDB:SFP=False;
Jet OLEDB:Support Complex Data=False;
Jet OLEDB:Bypass UserInfo Validation=False;
Jet OLEDB:Limited DB Caching=False;
Jet OLEDB:Bypass ChoiceField Validation=False
As you can see Excel 2013 add 2 more lines, that makes this connection unusable. I've considered adding VBA code to change connection string before refreshing data, but if there's a way not to get vba involved that'd be great.
EDIT: When used in Excel 2010 with those extra lines Excel gives "Could not find installable ISAM" error.