dBase issue with Office 365 64bit

juneau730

Board Regular
Joined
Jun 7, 2018
Messages
115
Office Version
  1. 365
Platform
  1. Windows
Morning all,

I have a pretty robust and complex Access dBase used for auditing a lot of user data, that was build on Office 32bit. Recently some users have upgraded to Office 365 64bit and the dBase isn't working properly anymore.
One issue, that I was able to fix was the Declaration in the various scripts. Added PtrSafe after the word Declare and that issue went away.

Now, we are getting an error pertaining to the ADODB.Connection. We are getting "ADODB.Connection: Provider cannot be found. It may not be properly installed. "

Many of the scripts have the following code in it, all of which work for the 32bit Office, and this is the line(s) in the code the error message are pointing too.

VBA Code:
Sub CreateDBConnection(strTargetData)
    'connect to database
    Set objConn = CreateObject("ADODB.Connection")
    objConn.open "PROVIDER=Microsoft.ACE.OLEDB.16.0;DATA SOURCE=" & strTargetData
End Sub

The only thing I can think of is that the OLEDB version is incorrect for Office 365 64bit, but, the office Version is 2402 Build 16.0.17328.20670, so I don't know for sure.

Any help would be great.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Good day all,

Much of the research I have done, indicates that the OLEDB for Office 365 64bit should be set at OLEDB.12. I've tried that and it didn't resolve the issue.
The scripts are pulling the data from the source, creating the appropriate spreadsheets, formatted correctly, but not importing them into the dBase, due to the ADODB Connection error.

I'm at a loss now and could truly use some help with this,
 
Upvote 0
Upvote 0
Does this help?
I think you are going to have to use compiler directives to state which driver to use?
Same as you woulf for any APIs?

Good morning,
Thanks for the information. After looking at it yesterday and comparing setting on both systems running both 32bit and the 64bit version of office, neither have that installed. The dBase isn't talking to a SQL server, it's locally installed and run (on local PC).
Though I may be incorrect in thinking this, but since it's not installed on any system, and those running 32bit Office all work (100s of them) this may not be the cause of the different routines creating a connection to the dBase and importing the data.
 
Upvote 0
I should also say that the system in question for have both OLEDB "drivers" installed.
 

Attachments

  • OLEDB.png
    OLEDB.png
    16.3 KB · Views: 1
Upvote 0

Forum statistics

Threads
1,225,730
Messages
6,186,701
Members
453,369
Latest member
positivemind

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top