Bug 134004 - Crash if I connect to a MS Access database
Summary: Crash if I connect to a MS Access database
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.0.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2020-06-15 17:04 UTC by jmueller_dw
Modified: 2020-09-17 08:22 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jmueller_dw 2020-06-15 17:04:03 UTC
Description:
Crash if I connect to a MS Access database

Steps to Reproduce:
1. Open Base
2. Connect to an existing database
3. Chouse MS Access
4. Select the MS Access file

Actual Results:
It shows the error:
SQL Status: HY000
The connection could not be created. Perhaps the necessary data provider is not installed.

Expected Results:
It gives an the error abouve


Reproducible: Always


User Profile Reset: No



Additional Info:
It should connect to MS Access database
Comment 1 Julien Nabet 2020-06-15 18:38:51 UTC
Jean-Pierre: thought you might be interested in this one since it concerns Access.
Comment 2 Xisco Faulí 2020-06-22 19:19:41 UTC
Hello,
Thanks for reporting this issue.
Does it crash with any MS Access database or with a specific one ? if so, could you please attach it ?
Comment 3 jmueller_dw 2020-06-23 06:22:49 UTC
It crashs with MS Access 2007 and 2010.
Comment 4 QA Administrators 2020-06-24 03:42:20 UTC Comment hidden (obsolete)
Comment 5 Alex Thurgood 2020-09-15 06:03:43 UTC
@jmueller : please provide your OS and version number, and whether or not you are using a 64bit or 32bit version of LibreOffice
Comment 6 jmueller_dw 2020-09-15 15:29:25 UTC
I'm using LibreOffice 7.0.1.2 (x64), Access 2010, Windows 10 Vers. 2004.
Comment 7 Alex Thurgood 2020-09-16 05:36:38 UTC
@jmueller : thanks for te version and bit info. 

The error message indicates that you need the required data provider. 

From memory, if you have 64bit versions of MS-Office applications installed on your machine, then you need the redistributable database access engine (DAE) components, in their latest iteration (I could only find a downloadable file dating back to 2016).

If however, you have 32bit MS Office applications installed, then you will need the 32bit redistributable database access engine (DAE) components.

The problem is that you apparently can't mix 64bit DAE with 32bit office applications (including LO), nor vice-versa (64bit LO) with 32bit DAE.

Do you know what bit type the MS Access file is ? That will determine what kind of provider you need.

There have also been reports that MS Access files created with Office365 are not readable by LO, no matter which bit-type or DAE is installed.
Comment 8 jmueller_dw 2020-09-16 15:23:29 UTC
Hi Alex, thanks for this infos.
I have installed AccessDatabaseEngine_X64.
Now it works but not yet accurately.
LibreOffice incurs only the tables from the Access data but not the form and not the reports.
Cao
Joerg
Comment 9 Alex Thurgood 2020-09-17 08:20:58 UTC
(In reply to jmueller_dw from comment #8)
> Hi Alex, thanks for this infos.
> I have installed AccessDatabaseEngine_X64.
> Now it works but not yet accurately.
> LibreOffice incurs only the tables from the Access data but not the form and
> not the reports.
> Cao
> Joerg


This is normal, LibreOffice has never been able to directly import Forms or Reports from an Access database file.

LibreOffice now includes a Basic module called Access2Base that may be of use to you when migrating your Access database to a LibreOffice embedded database:

http://www.access2base.com/access2base.html

Additionally, there is a separate helper program called UCanAccess:

http://ucanaccess.sourceforge.net/site.html

which uses JDBC to read/write to Access database files. This can be used as a bridge between LibreOffice and the Access file instead of the DAE provided by Microsoft.
Comment 10 Alex Thurgood 2020-09-17 08:22:10 UTC
Marked as WFM because initial issue resolved.