Hi All,
I have a linked table in many excel files that pulls in a data range from a master file via a connection string shown below.
Provider=Microsoft.ACE.OLEDB.12.0;User ID=Admin;Data Source=C:\Users\Files\Content.MSO\DD83F92E.xlsm;Mode=Share Deny Write;Extended Properties="HDR=YES;";Jet OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Engine Type=37;Jet OLEDB:Database Locking Mode=0;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
My question is how do I go about changing the values/properties within the connection string? When I try to type in edits to the connection string in Excel on the connection properties window my edits do not seem to stick. For example when I try to change "Mode=Share Deny Write" to "Mode=Read" (to prevent the file from being locked for editing during the query process) and save the file and reopen it, my connection string defaults back to its original value "Mode=Share Deny Write."
I have a linked table in many excel files that pulls in a data range from a master file via a connection string shown below.
Provider=Microsoft.ACE.OLEDB.12.0;User ID=Admin;Data Source=C:\Users\Files\Content.MSO\DD83F92E.xlsm;Mode=Share Deny Write;Extended Properties="HDR=YES;";Jet OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Engine Type=37;Jet OLEDB:Database Locking Mode=0;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
My question is how do I go about changing the values/properties within the connection string? When I try to type in edits to the connection string in Excel on the connection properties window my edits do not seem to stick. For example when I try to change "Mode=Share Deny Write" to "Mode=Read" (to prevent the file from being locked for editing during the query process) and save the file and reopen it, my connection string defaults back to its original value "Mode=Share Deny Write."