Access Opened, but the Overdue Macro Never Ran
The calibration database opens, the data is there, and nothing shows overdue. How Access sandbox mode leaves a stale flag, and how to fix it for good.
"It opens fine. Everything is there. Why does it say nothing is overdue?"
That is the sentence a quality engineer says on the Monday after the calibration PC was replaced, or after IT restored the database from backup, or after someone copied the file to a new share so the whole department could reach it. The form loads. The instrument list is complete. The certificate links work. The Overdue column reads "No" down the whole page.
It is wrong, and nothing on screen tells you so.
The case below is an illustration built from the way these databases are typically designed. It is not a report of one specific plant. Your design may differ, and the details matter, so I will say where.

What actually happens: the file opens, the logic does not
Most homegrown Access calibration databases store a due date and compute "overdue" with a macro or a short VBA routine that runs when the database opens. The routine compares each due date with today and writes a flag, a colour or a status text into the table.
Since 2022, Office blocks macros in files that carry the Mark-of-the-Web, the marker Windows adds to files that arrived from the internet or from a location it treats as untrusted. In 2026, Microsoft’s own Q&A threads still show the same pattern. Files on network shares reached by IP address, restored files and copied files lose their trusted status. Access then opens in sandbox mode and blocks unsafe expressions and macros.
Sandbox mode is a reasonable safety control. The problem is what it does to a design from 2011. Depending on how the database was built, one of two things happens:
- You get an error, a blocked-content bar or a query that returns nothing. That is the good outcome, because someone notices.
- The data loads, the forms work, and the startup routine silently does not run. The Overdue field keeps whatever value it held when the routine last ran successfully. That is the dangerous outcome.
The second case is a stale flag. The database is not broken. It is confidently reporting last month’s status.
A worked example
Take a Quality Engineer I will call Marta, at an automotive supplier. Her database has 740 instruments. A torque wrench has a due date of 3 October. The startup macro last ran on 29 September, so the flag says "No", which was correct that day. On 12 October the file is restored onto a new workstation after a PC refresh. The macro is blocked. Nobody sees a message, because the user who opens the file taps through the security bar the way everyone does.
On 20 October an operator searches for the wrench, sees "Not overdue" and signs it out. It is now 17 days past its calibration due date, used on a joint that carries a torque requirement.
Nothing in the data was lost. Every record is intact. What failed was the one step that turned a date into a status.

Why this is an audit problem, not only an IT problem
ISO 9001 clause 7.1.5.2 requires monitoring and measuring equipment to be identified so that its calibration status can be determined, and requires action when equipment is found unfit for its purpose, including determining whether earlier measurement results were adversely affected. A status field that can silently freeze fails the first part in practice, even if the underlying dates are correct.
IATF 16949 clause 7.1.5.2.1 asks for calibration and verification records, including as-received condition where relevant, and for an impact assessment when equipment is found out of tolerance. If a wrench was used 17 days past due, the question an auditor asks is not whether you can find the certificate. It is how you know which parts that wrench touched and when the nonconformity could have started.
The same logic applies in a laboratory working to ISO/IEC 17025, where equipment must be calibrated before being put into service and records must show the metrological traceability of results. A flag you cannot show was current on a given date is weak evidence of control.
There is also a second, quieter cost: you cannot reconstruct it. An Access flag is overwritten in place. Once the macro does run again, "Yes" replaces "No", and the period when the status was wrong leaves no trace. Access does not keep an immutable history of changes to a field, so you cannot demonstrate when the status was stale, or for how long.
The objection: "We will just set a trusted location"
That is a legitimate fix, and for a database you intend to keep, you should do it. Placing the file in a trusted location, using a UNC path rather than an IP address, clearing the block on the file, or signing the VBA project all restore the macro. I have used all four.
They fix this failure. They do not fix the design that made it possible:
- The status is stored, not derived. Any path that skips the routine leaves a wrong value.
- Nothing proves the routine ran today. There is no run log unless someone wrote one.
- The fix depends on settings that live on each PC and share. A refresh, a restore or a new colleague resets them.
- The person who knows which of the four fixes applies is usually the person who built it.
Trusted locations buy time. They are a sensible interim control while you migrate, and I would document them as one.
What to check this week
- Open the database from a freshly restored or copied file and see whether the overdue routine runs. Do not rely on the original machine.
- Compare the stored Overdue flag with today’s date for every instrument. Any mismatch is your exposure.
- Check whether a blocked-content bar, an error or nothing at all appears when the macro is blocked.
- For every mismatch, list the check-outs since the routine last ran. That is your impact-assessment starting set.
- Record the finding and the interim fix, such as a trusted location, in your change log.
What changes after migration
Moving to a system like PrüfDesk removes the step that failed. The due date is calculated from the last calibration record and the instrument’s interval, rather than written by a macro at startup. There is no startup routine to be blocked and no per-PC setting to lose.
The tenant also decides what overdue means in practice. Configurable overdue blocking lets you choose a hard block, where an overdue instrument cannot be checked out, or a soft warning, per tenant. Check-outs and allocations are written to a possession audit trail, so if something does go out late you can see who held it and when.
The migration itself follows a staged route: export, clean, map, validate, then a parallel run. Two points matter for this failure in particular:
- Do not migrate the stored flag. Import the calibration events and the intervals, and let the due date be calculated. Compare the result against your legacy flag. Every difference is a case the old system got wrong, and you will want to know about it before the auditor does.
- Keep the legacy file read-only for at least one cycle. That preserves history and gives you a reference for the parallel run.

A calm next step
A stale flag is not a reason to panic. It is a reason to stop trusting a status that nothing verifies. Run the five checks above, document what you find, and decide whether the Access database earns another year or needs a planned exit.
If you want to see what the same instrument list looks like with due dates calculated and overdue blocking configured, we are glad to walk through a sample import with your own data structure. There is no pressure to switch. A clear picture of the gap is useful either way.