Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer 8    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Compile Error using D8 databas
Robert Baker 
    
2 years ago
I'm getting the following error when trying to open the order form in the PCResale Customer Database BEFORE D8.accdb:

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 the PtrSave attribute.

Goes to line in code:
Private Delare Function CopyFileA Lib "kernel32" _
(ByVal ExistingFileName as Sgtring, _
ByVal NewFileName As String, ByVal FailIfExists As Long) As Long

db:
PCResale Customer Database BEFORE D8.accdb

Any suggestions on how to fix?
Robert Baker OP  @Reply  
    
2 years ago
I apologize, I should have done some internet research. I found out just inserting the keyword PrtSafe seems to have fixed the problem, so the declare statement reads "Private Declare PrtSafe Function..." with all the rest that follows. Also, I typo'd the first "As Sgtring" should be "As String", of course. The project seems to be working fine now. Sorry to bother you all!
Kevin Robertson  @Reply  
           
2 years ago
Good job figuring this out.
This video will give further details: 64-Bit Access
Robert Baker OP  @Reply  
    
2 years ago
Thanks for the reply, Kevin, and the reference to Rick's 64-bit video! That verifies my research. I'm happy the solution is so simple. Maybe someday I'll get into API calls in my programming, but for now I'm keeping it basic. Thanks again!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer 8.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/30/2026 12:35:46 PM. PLT: 1s