Fix Microsoft Access Crashing with InStr in Query WHERE Clause
Question details
Microsoft Access crashes when the InStr function is executed within a query WHERE clause following a recent Office update.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Running a database query in Microsoft Access using the InStr function to filter specific text records in the WHERE clause.
- Observed behavior
- The application abruptly crashes when running the query, even though the exact same InStr expression functions correctly when placed in the SELECT list.
Ensure you save all open databases and backup your Access files before applying Office updates or modifying query structures to prevent accidental data loss.
Update Microsoft Office to Version 2404 or Later
The official and safest fix is to install the latest Office update that contains the bug resolution.
Microsoft acknowledged this bug and officially fixed it in Office version 2404, released on May 1st. Installing this update restores normal functionality without requiring query modifications.
Launch Microsoft Access, click on 'File' in the top-left corner, and select 'Account' from the left-hand menu.
Click on the 'Update Options' button located under the Product Information section.
Select 'Update Now' from the dropdown menu to check for and install the latest versions. Ensure your build updates to version 2404 or higher.
Once the update is complete, restart Microsoft Access and run your query to verify the crash is resolved.

Use the Optional Compare Argument in InStr
If you cannot update Office immediately, modifying the InStr function arguments serves as an effective temporary workaround.
Try WPS Office for Your Everyday Productivity Needs
If Microsoft Office updates are causing workflow interruptions, WPS Office provides a highly reliable, free, and lightweight alternative for your standard document needs. While it does not include a direct database alternative to Access, its robust Word, Excel, and PowerPoint equivalents ensure your primary productivity tasks run smoothly without unexpected crashes.
- 1. Download the Installer: Visit the official WPS Office website and click on the 'Download WPS Office Free' button.
- 2. Run the Installation: Open the downloaded setup file and follow the straightforward on-screen instructions to install the suite.
- 3. Open Your Files: Launch WPS Office and easily open your existing Word, Excel, and PowerPoint documents to continue working securely.

Frequently Asked Questions
Why does InStr cause Access to crash only in the WHERE clause?
A bug introduced in a specific Microsoft Office update disrupted how the database engine evaluates the InStr function when it is used for filtering data in a WHERE clause, though the logic for projecting data in the SELECT clause remained unaffected.
Can I fix the crash by reverting my ACEES.DLL file?
Reverting or manually replacing Office DLL files such as ACEES.DLL is highly discouraged. It compromises software security, risks system instability, and the manual changes will simply be overwritten during your next automatic Office update.
Is the InStr crash bug permanently resolved by Microsoft?
Yes, Microsoft officially resolved this bug in Office version 2404, which was released on May 1st. Updating your Office suite to this build or a newer version will permanently stop the crashes from occurring.




