Jump to content

Recommended Posts

Posted

Hello,

 

One of our departments uses a Access database - Worked fine for years. This year we have updated our Office to 2019 64bit. (Not by my choice)

 

When we open this database file we get this error. I have seen some bits online but unsure where to add the statements in. Any ideas?

 

Access Error.png

Posted

I don’t think you need to add anything in, it’s probably complaining with that line that’s highlighted as Long is 32bit only

 

To make it work with 64bit you’d need to change the

Declare Function

To

Declare PtrSafe Function

To tell it it’s safe to use for 64bit

 

And then depending if you want the longer variable the end “Long” to “LongPtr”

 

Repeat for any other bits it complains about :p

 

Steve

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...