Access 64bit runtime with 32bit office - ms-access

I have upgraded my access app to 64bit and I am in the process of updating client pcs to 64bit runtime. I have updated dozens of pcs with 32bit office by using a different version of 64bit runtime (for instance, 2016 64bit runtime with 2013 32bit office, and 2013 64bit runtime with 2016 32bit office). However, while updating a client today none of their pcs will allow the update. They have office 2013 standard (32bit) and trying both 2016 64bit and 365 64bit access runtime fails with the error below. What could be different with these pcs? This is happening on both Windows 7 and Windows 10 pcs.

Found the solution - there was some sort of an error on the install of office 2013 (whenever it was installed). The solution was to start the office 2013 setup again, and cancel at the first prompt (no need to uninstall first). This fixed the error and allowed 2016 64bit access runtime to be installed.
Microsoft article explaining the above solution is here

Related

Microsoft Access Database Engine 2016 - issues with certain SQL queries that work fine with 2010

I have an app that's been working fine in 32 bit using the connection string:
Driver={Microsoft Access Driver (*.mdb)}; Dbq=MyDatabase.mdb;
using ADO in C++ on a PC with no Office installation.
I have converted it to x64 and I believe I need to install some form of Access drivers no matter if the host PC has x64 Office installed or not. So I grab Microsoft Access Database Engine 2016 Redistributable and install it.
In general everything works OK but certain SQL queries are failing. Most noticeably ones that use LIKE '%somevalue%' - now I understand that % is ANSI-92 but it's been working fine as I say so assume that's ADO related (I could change this to ALIKE I guess).
What I don't understand is if I install the Access Database Engine 2010 then all works as expected. It seems that something is different in the Access Database Engine 2016. I did look for some release notes/breaking changes but couldn't find anything.
So my question is are there changes in the way SQL is parsed in Microsoft Access Database Engine 2016 and should I simply get customers to install the 2010 version?
Note: the other query that seems to be failing is a table with a Yes/No field. I have a query that checks: field <> 0 and this throws an exception.
Update: If I install the Microsoft Access 2016 Runtime then all seems to work. So the issue seems specific the Microsoft Access Database Engine 2016
So in summary:
No Office Installed: Installed Access 2016 x64 Database Engine: Query FAILS
No Office Installed: Installed Access 2010 x64 Database Engine: Query PASSES
32bit Office Installed: Installed Access 2016 x64 Database Engine: Query FAILS
32bit Office Installed: Installed Access 2010 x64 Database Engine: Query PASSES
x64 Office Installed: Installed Access 2016 x64 Database Engine: Query PASSES
Where the Query is:
SELECT * from sometable WHERE somefield LIKE '%ABC%';
The setup is:
Window 10 Version 1909
32 bit Office: Microsoft Office MSO 16.0.12325.20280 32bit
64 bit Office: Microsoft Office MSO 16.0.12325.20280 64bit
Access database engine (x64) from here: microsoft.com/en-us/download/details.aspx?id=54920
My app is x64
Are you using SQL Server as the backend database, or Access?
In SQL Server % is the wildcard symbol.
With a pure Access environment, the wildcard standard is usually *
There may be a setting to change this, but I can't recall.
reference: https://support.office.com/en-us/article/like-operator-b2f7ef03-9085-4ffb-9829-eef18358e931

Trying to connect to an access with a UDL file

I'm trying to connect to an Access database via a UDL file. I'm wanting to generate a connection string so that I can connect to an access database via ADO.NET. It's been a few years since I've tried to do this.
I have Visual Studio 2015 Pro and Microsoft Access 2016 installed on my Windows 10 x64 pro machine. When I create a .udl file I have the following available options:
Microsoft OLE DB Provider for ODBC Drivers
Microsoft OLE DB Provider for Search
Microsoft OLE DB Provider for SQL Server
Microsoft OLE DB Simple Provider
MSDataShape
OLE DB Provider for Microsoft Directory Services
SQL Server Native Client 11.0
I think that in years past I would also see Microsoft Jet 4.0 OLE DB in this list. From the research I've done I think that Jet 4.0 is deprecated and that I should be using the Access Database Engine. I find the following versions that I think are that:
Microsoft Access Database Engine 2010 Redistributable
Microsoft Access 2013 Runtime
Microsoft Access 2016 Runtime
I downloaded the x64 version of Microsoft Access 2016 Runtime and when I try to install it I get the following error:
We can’t install the 64-bit version of Office because we found the following 32-bit programs on your PC:
Office 16 Click-to-Run Extensibility Component
Please uninstall all 32-bit Office programs, then retry installing 64-bit Office. If you want to install 32-bit Office instead, please run the 32-bit setup.
I've tried the 32-bit version of the Microsoft Access 2016 Runtime and I get the same message:
We can’t install the 32-bit version of Office because we found the following 64-bit programs on your PC:
Office 16 Click-to-Run Extensibility Component 64-bit Registration
Please uninstall all 64-bit Office programs, then retry installing 32-bit Office. If you want to install 64-bit Office instead, please run the 64-bit setup.
I've tried closing all open Microsoft Office and Visual Studio applications and I get the same error. Am I installing the right component? Any way to get it to install correctly?
You probably miss the ACE driver listed here - and only this, not the runtimes:
Microsoft Access Database Engine 2010 Redistributable

Installing Access runtime 2016 along with Office 365

This is not a progrmaing question, but I am sure MS Access developers will soon hit this problem
Situation : PC has MS Office 365 Installed (Home or small Business version) which does not include MS Access 2016.
Try : Instating MS Access Runtime 2016.
Problem : Access runtime installation gives error saying, cannot install same conflicting application.
Question : Is there any way we can install both MS Access runtime 2016 and Office 365?
I develop Access front ends, which I then compile (.accdr) and distribute to my users. Users does not have MS Access installed on their PC. They just have Access Runtime.
My current temporary solution : Ask users to install Access runtime 2013 instead of 2016.
Note: All the office versions are 32 Bit (X86)
https://blogs.office.com/2015/12/16/access-2016-runtime-is-now-available-for-download/
Note for Office Click-to-Run (C2R) users:
As stated in the past, Office C2R and MSI of the same major version cannot be installed side by side. Currently, if you are using Office/Access 2016 C2R, we recommend that you install Access 2013 Runtime MSI if you need a side-by-side setup. The two versions are functionally equivalent, and this installation should work smoothly.
—The Access team
So yes, 2013 is the solution.
Also here .
The reason for your problem is that
Office 365 is Click-To-Run-based (C2R) and
the Access 2016 Runtime is MSI-based
and they cannot both be installed on the same machine.
Recently, Microsoft released the Office 365 Access Runtime, which is Click-To-Run-based and, thus, compatible with Office 365.
Download and install Office 365 Access Runtime
Note that this runtime is not compatible with Office 2019 (or 2016 C2R, as far as I know). Currently, there is no runtime compatible with Office 2019, but Microsoft's response to this UserVoice entry suggests that one might be released in the second half of 2019.
Don't use the MS Office 365 Online from your account. It seem that there are some problem with it, it lack all the ODBC driver. I searched everywhere for the solution: Uninstall/reinstall Office 365 (tried with Microsoft Access Runtime 2010/2013/2016). Well, you can install Office 365 first then the Access Runtime 2013 but it still doesn't work, like you can't open your *.mb or *.accdb....
Luckly, i try the last time with the MS Office 365 OFFLINE and it work.
Hope this response come into hand of people that's in the same situation as me.

Install Visual Studio 2013 on Windows 7

I would like to install Visual Studio 2013 on Windows 7 64-bit.
For some reason, the installer says "Setup Blocked" with an error "This version of Visual Studio requires a computer with a newer version of Windows".
This error is not exactly descriptive of what's wrong. The least I could do was verify that I have the following installed :
Windows 7 Professional (64-bit) with Service Pack 1
Internet Explorer 10
Version: 10.0.9200.16750
Update Versions: 10.0.12 (KB2898785)
All Windows Updates that were available for installing on 11th of Dec. 2013.
Executed the installer with the /log winexp.log argument and got the following : winexp.log.
Any ideas of what else could be the problem ?
Thanks.
Edit : by looking at this question there was a crack that allowed installing Windows Phone's SDK on Windows 7 - does anyone know a similar solution for VS 2013 ?
The minimum requirements are based on the Express edition you're attempting to install:
Express for Web (Web sites and HTML5 applications) - Windows 7 SP1 (With IE 10)
Express for Windows (Windows 8 Apps) - Windows 8.1
Express for Windows Desktop (Windows Programs) - Windows 7 SP1 (With IE 10)
Express for Windows Phone (Windows Phone Apps) - Windows 8
It sounds like you're trying to install the "Express 2013 for Windows" edition, which is for developing Windows 8 "Modern UI" apps, or the Windows Phone edition.
The similarly named version that is compatible with Windows 7 SP1 is "Express 2013 for Windows Desktop"
Source
Visual Studio Express for Windows needs Windows 8.1. Having a look at the requirements page you might want to try the Web or Windows Desktop version which are able to run under Windows 7.
Visual Studio 2013 System Requirements
Supported Operating Systems:
Windows 8.1 (x86 and x64)
Windows 8 (x86 and x64)
Windows 7 SP1 (x86 and x64)
Windows Server 2012 R2 (x64)
Windows Server 2012 (x64)
Windows Server 2008 R2 SP1 (x64)
Hardware requirements:
1.6 GHz or faster processor
1 GB of RAM (1.5 GB if running on a virtual machine)
20 GB of available hard disk space
5400 RPM hard disk drive
DirectX 9-capable video card that runs at 1024 x 768 or higher display resolution
Additional Requirements for the laptop:
Internet Explorer 10
KB2883200 (available through Windows Update) is required
And don't forget to reboot after updating your windows
Fake IE10 to install Visual Studio 2013
Visual Studio 2013 requires Internet Explorer 10. If you try to install it on Windows 7 with IE8 you get the following error This version of Visual Studio requires Internet Explorer 10”.
The value that the VS 2013 installer checks is svcVersion in the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorerkey on 32-bit Windows and
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer on 64-bit Windows. Any value >= 10.0.0.0 makes the installer happy.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer]
"svcVersion"="10.0.0.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer]
"svcVersion"="10.0.0.0"
your log files shows it is stopping on error "0x8004C000"
From MS Website (http://social.technet.microsoft.com/wiki/contents/articles/15716.visual-studio-2012-and-the-error-code-2147205120.aspx):
Setup Status
Block
Restart not required
0x80044000 [-2147205120]
Restart required
0x8004C000 [-2147172352]
Description
If the only block to be reported is “Reboot Pending,” the returned value is the Incomplete-Reboot Required value (0x80048bc7).

How to install Microsoft.ACE.OLEDB.12.0 on Win7 64b with SQLExpress 2008

I was running VSExpress 2010 C# and SQLExpress 2008 on 32b XP. Due to a failure I am now on Win7 64bit. I have reinstalled VSExpress C# (64b). I installed SQLExpress (64b) however my application uses the Microsoft.ACE.OLEDB.12.0 driver to connect to a Office 2007 (32b) database. I could not get the Microsoft.ACE.OLEDB.12.0 to load on SQLExpress (64b).
What do I need to do to get Microsoft.ACE.OLEDB.12.0 working again in SQLExpress? Do I need to run the 32bit version? (I have downloaded it but am having problems getting it to install so I am asking while I uninstall all of my SQLExpress)
Thanks for the help. (I saw a lot of similar issues addressed but could not find a solution for my specific problem)
I think this post has the answer you're looking for -- download 64-bit version of ACE OLE DB driver. However, apparently it requires installing 64-bit version of Office as well.
Otherwise go and install WoW-enabled 32-bit version of SQL Server 2008 Express. Go to this download page and download SQLEXPR_x86_ENU.exe (note: the one without 32 in the file name). It should install on 64-bit system.
I had the same problem and couldn't install the 64 version because I have 32 bit office installed as well (so the 64 bit installed terminated). I changed the build of my program to x86 instead of AnyCPU and the 32 bit ACE worked as given in this Stack Overflow question
If you are trying to use the 32bit version you will probably need to install the 32 bit version of the Microsoft Office Database engine. However if you have 64bit office installed this will show a message saying that 64bit is already installed.
If you install the Microsoft Office Database engine using the "/PASSIVE" command line argument it will install without the prompt, and then you can use the 32 bit ACE.OleDB.12 driver.
Beware in some situations this can cause complications with Office 64bit.
I had to install the Access 2007 Runtime to fix this. Here: https://www.microsoft.com/en-us/download/details.aspx?id=4438