Ming.
MDAC Team, Microsoft.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- ACE ODBC driver has no support on complex data, such as attachment
- ACE OLEDB driver does not support complex data by default. However,
application can set the “Jet OLEDB:Support Complex Data=True” in connection
string to enable the support
- It is better to use Direct ADO, instead of ODBC / OLEDB, for those complex
data
====================
The second point above can be done by the following to create a connection
string:
Create a new ACCDB, then go to the VBA immediate window (CTRL+G) and type:
?CurrentProject.Connection
You should see something like this:
Provider=Microsoft.ACE.OLEDB.12.0;User ID=Admin;Data
Source=C:\Users\JamesR\Documents\Database1.accdb;Mode=Share Deny Read|Share
Deny Write;Extended Properties="";Jet OLEDB:System
database=C:\Users\JamesR\AppData\Roaming\Microsoft\Access\System.mdw;Jet
OLEDB:Registry Path=Software\Microsoft\Office\12.0\Access\Access Connectivity
Engine;Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=6;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=True
Please note the key-value pairs:
- Provider
- Jet OLEDB:Engine Type
- Jet OLEDB:Support Complex Data
USEFUL TIP:
Another trick I like to use for making exactly the connection string you
need is to create a text file on the desktop, then change the extension from
“*.TXT” to “*.UDL”. Then double click it to open it. A connection wizard
will open. Complete the wizard, the open the file in notepad. Viola! You
have your connection string.
Ming.
MDAC Team, Microsoft.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.