Access support for .accdb no longer working

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cbc700
Posts: 46
Joined: Fri 03 Aug 2007 17:25

Access support for .accdb no longer working

Post by cbc700 » Sun 26 Jun 2016 02:15

A prior version of UniDAC worked fine. Now working with 6.3.12 under XE7. I can open a particular .accdb in Access 2013, but trying it with UniDAC (in an app or just with components) does not work. It displays the message "[Microsoft][ODBC Microsoft Access Driver] Cannot open database '(unknown)'. It may not be a database that your application recognizes, or the file may be corrupt..". Trying it with an .mdb file works fine. Please have a look. Thanks.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Access support for .accdb no longer working

Post by AlexP » Mon 27 Jun 2016 09:31

Hello,

Try to set SpecificOptions DriverVersion to dvAccdb explicitly

Code: Select all

  UniConnection.SpecificOptions.Values['DriverVersion'] := 'dvAccdb';

cbc700
Posts: 46
Joined: Fri 03 Aug 2007 17:25

Re: Access support for .accdb no longer working

Post by cbc700 » Tue 28 Jun 2016 04:50

I'm now using only the components on a form. I had tried your suggestion already -- did not work. I've tried it again -- same. I have now created a new 2013 .accdb file and the same things occurs with that one. The only difference is that when I change the specific option to dvAccdb, the message changes to "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.".

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Access support for .accdb no longer working

Post by AlexP » Thu 30 Jun 2016 08:58

UniDAC works with MS Access via native ODBC drivers. Please specify what ODBC drivers for MS Access are installed on your PC (names and versions)?

cbc700
Posts: 46
Joined: Fri 03 Aug 2007 17:25

Re: Access support for .accdb no longer working

Post by cbc700 » Tue 05 Jul 2016 03:52

Thanks. Your mention of that caused me to inspect things a bit, and yes, there are no MS Access ODBC drivers that handle the .accdb format.

There may be more than one solution, but I chose to install the Microsoft Access Database Engine 2010 Redistributable (available in 32 and 64 bit) from https://www.microsoft.com/en-gb/downloa ... x?id=13255. This solved the problem. Thanks.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Access support for .accdb no longer working

Post by AlexP » Tue 05 Jul 2016 04:24

Glad to see that you have found the solution. If you have any other questions, feel free to contact us

Post Reply