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.
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.
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.