Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error message changing from Access 2003 to 2010

Status
Not open for further replies.

BRANDON99

Technical User
Aug 29, 2003
52
FR
Hi

I have an Access 2003 Application, I have now changed to Win 7 and Access 2010 64 bit. When I try to run it I get this message " Compile Error: THe code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with PtrSafe attribute."
Can some one please explain in simple terms what I need to do to correct this. It is many years since I have done anything with Access

many thanks
 
Is it an MDE file?

I ask because there is known weirdness for ACDE's (new compiled code) when using certain versions of Access 2010 64 bit when compiled on the 32 bit version.

I suspect the easiest thing to do is Convert it on a machine with 32 bit version of Access 2010 with Service Pack 1. AFAIK you are trail blazing on this issue.
 
Thanks for your email - I found the solution and have fixed
 
Which was?

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Electronic Dance Music Downloads
 
Hi

It the Declare Statement the line "Private Declare Function" is changed to "Private Declare PtrSafe Function"
I thought it was to easy but it works
 
The normal syntax is
Code:
Private Declare Function PtrSafe

Seems odd they would switch the order round just because it is 64bit.

Thanks for the heads up.





"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Electronic Dance Music Downloads
 
I ran accross this...


To Clarify PtrSafe is a keyword new for 64 bit to state that specifies the function is 64 bit safe and not the name of the API function itself. Worth a glance because it also has a 64 bit ingteger for use on 64 bit systems to handle passing these arguments...
Now if only I saw a 64bit integer for data in tables, that would be nice... but that is a whole other set of issues.
 
gotcha, thought that was the name of your function [lol]

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

Free Electronic Dance Music Downloads
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top