Symptom
- Excel and Access connection missing.
- Where are the MS Excel and MS Access connection in Crystal Reports?
- Cannot find the Excel connection after upgrading Crystal Reports to the latest version.
- Connection to "Access/Excel" cannot be found under "Create New Connection" in Crystal Reports.
Environment
- SAP Crystal Reports 2020
- MS Excel 2013
- MS Excel 2016
- MS Excel 2019
- MS Access 2013
- MS Access 2016
- MS Access 2019
Reproducing the Issue
- In Crystal Reports, create a new report.
- In the "Database Expert", under "Create New Connection", it does not list the connection "Access/Excel (DAO)"
Where is the Access and Excel connection?
Cause
- To create a report based on MS Excel and MS Access in previous version of Crystal Reports, it used to have the connection type: "Access/Excel (DAO)"
- This connection was using the 32bit Microsoft Data Access Objects (DAO), and Microsoft JET Engine, which have been deprecated by Microsoft.
- Crystal Reports 2016 and below are 32bit application, and can still use the Microsoft DAO technology to connect to Excel and Access, as a legacy connection type.
- Crystal Reports 2020 is a 64bit application, and therefore it is no longer possible to connect to Excel or Access using DAO, since there is no 64bit version of this Microsoft Technology. This is why the option "Access/Excel (DAO)" is not available in Crystal Reports 2020.
Resolution
- To report of a MS Excel or MS Access in Crystal Reports, use one of the following connection type:
- ODBC
- OLEDB
- To use an ODBC Connection:
- Launch the Microsoft ODBC Data Source Administrator (64bit), from: C:\Windows\System32\odbcad32.exe
- In the Microsoft ODBC Data Source Administrator (64bit), under the tab "System DSN", click "Add..."
- Select the ODBC Driver corresponding to the type of data source you want to report from:
- For MS Excel, select : Microsoft Excel Driver (*.xls,*.xlsx,*.xlsm,*.xlsb)
- For MS Access, select : Microsoft Access Driver (*.mdb, *.accdb)
Note
If you do not see the ODBC Drivers, then it is either because you have a 32bit version of MS Office installed, or do not have MS Office installed. To download and install the 64bit version of the Microsoft Office ODBC drivers, go to the Microsoft website, and search for: "Microsoft Access Database Engine"
- Then click "Finish"
- Add an ODBC DSN Name and select the MS Excel or MS Access document you want to report from.
- Click "OK" to create the ODBC DSN
- In Crystal Reports, create a new report.
- In the "Database Expert", expand "Create New Connection", and double click on "ODBC (RDO)"
- Select the ODBC DSN created in the previous steps to report from Excel, or Access.
NOTE: For MS Excel, if the Excel sheets are not visible, then: - Right click on the "Connection", and in the contextual menu, select "Options"
- In the "Options" window, check the option "System Tables", and click OK
- Back to the "Database Expert" window, right click on the connection, and select "Refresh"
- The MS Excel sheets will now display.
- To use an OLEDB connection
-
In Crystal Reports, create a new report.
-
In the "Database Expert", expand "Create New Connection", and double click on "OLE DB (ADO)"
-
Select the Microsoft Office Access Database Engine Provider.
Note
If you do not see the OLEDB Provider, then it is either because you have a 32bit version of MS Office installed, or do not have MS Office installed.
To download and install the 64bit version of the Microsoft Office ODBC driver and OLEDB Provider, go to the Microsoft website, and search for:
"Microsoft Access Database Engine" -
Change the Office Database type to: Excel, or Access
-
Select the MS Excel, or MS Access file.
-
Leave the User ID and Password blank.
Keywords
CR , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem