Fix Microsoft Access Runtime Error 8002801D When CurrentDb Fails
Question details
The user needs to resolve Microsoft Access and VBA Runtime Error -2147319779 (8002801D), which causes the CurrentDb method of the Application object to fail on specific computers.
- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Running a custom Microsoft Access application utilizing VBA scripts where the CurrentDb method is called to reference the current database.
- Observed behavior
- The application returns Runtime Error 8002801D and stops execution because it cannot successfully invoke the CurrentDb method on certain machines.
Gather specific details about the affected computers, including the exact Windows version, Access bitness (32-bit vs. 64-bit), and check for any missing or broken VBA library references.
Verify and Register Missing VBA Libraries
Use this solution to identify and fix missing or broken VBA library references, which are the most common cause of error 8002801D (Library not registered).
Runtime Error 8002801D typically translates to a 'Library not registered' issue in the Windows Registry. This happens when the affected computer lacks a specific DLL/OCX file that the VBA script requires, or when there is a mismatch in Office versions.
Launch your Microsoft Access database and press ALT + F11 on your keyboard to open the Visual Basic for Applications (VBA) editor.
Click on 'Tools' in the top menu bar of the VBA editor and select 'References' from the drop-down list.
Scroll through the list of checked available references and look for any items labeled with 'MISSING:'. Uncheck these items if they are obsolete, or note the file path to manually install and register the required library on the affected machine.
After adjusting the references, click 'Debug' in the top menu and select 'Compile [Project Name]'. If the code compiles without errors, the reference issue has been resolved.
Seek Specialized Developer Support with Reproducible Code
When the error is caused by complex environment conflicts (like Wine compatibility or mismatched bitness), gathering a reproducible example to share with specialists is recommended.
Try WPS Office for Your Daily Productivity Needs
While Microsoft Access handles highly specialized relational databases, WPS Office provides a robust, free, and lightweight alternative for all your standard document, spreadsheet, and presentation tasks. Experience top-tier performance and seamless format compatibility without expensive subscriptions.
- 1. Visit the Official Site: Go to the official WPS Office website to find the appropriate download for your device.
- 2. Download the Installer: Click the 'Free Download' button to get the latest version for your operating system.
- 3. Install and Launch: Run the setup file and follow the quick installation prompts to start creating and editing documents immediately.

Frequently Asked Questions
What does Runtime Error 8002801D mean in Microsoft Access?
Runtime error 8002801D typically translates to 'Library not registered.' In Microsoft Access, it usually occurs when the VBA code relies on a specific object library or DLL file that is missing, corrupted, or improperly registered in the Windows system.
Why does the CurrentDb method fail on some computers but not others?
This discrepancy happens due to localized environmental differences, such as varying Microsoft Office updates, missing VBA references on specific machines, mixed 32-bit and 64-bit installations, or security restrictions in specialized environments like Wine.
Can a mixed bitness environment (32-bit vs 64-bit) cause VBA errors?
Yes. If a Microsoft Access database is developed in a 32-bit environment and utilizes specific Windows API calls or 32-bit libraries, executing it on a 64-bit version of Microsoft Access can trigger runtime errors unless the VBA code is updated with proper PtrSafe declarations.




