Skip to content
Access Overdue Query Misses Gauges With No Due Date

Access Overdue Query Misses Gauges With No Due Date

Your Access overdue query skips any gauge with a blank due date and shows no error. How it happens, a worked example, and the check to run this week.

7 min read 1,327 words

"The overdue report is clean, so we’re covered."

If your calibration register runs on Access, you may have said that sentence in a management review, and the report behind it was probably one query. It does what it says. It returns every instrument whose next due date is earlier than today. What it cannot tell you is which instruments it left out.

A double-ended threaded plug gauge, GO at one end and NO-GO at the other, lying in a grey felt tray on a matte workbench, with a second plug gauge softly out of focus behind it

The query answers the question you asked

The usual overdue query in a homegrown register is one line of logic: next due date is before today. For every row that holds a date, it is correct. The problem sits in the rows that do not hold one, and those rows never announce themselves.

Why a blank due date disappears without an error

In Access, a date field that has never been filled holds Null. Null is not zero, it is not an empty string, and it is not a date. When Access compares a Null with anything, the result is Null rather than true or false, and a WHERE clause keeps only the rows where the condition is true. So NextDue < Date() keeps every overdue gauge that has a date and silently drops every gauge that does not. No error is raised and no warning appears. The row is simply absent from the result.

If the due date is stored as text instead of a date/time field, the blank may be an empty string rather than Null. The comparison then follows conversion rules rather than Null rules, which is a second reason to check the field type as well as the values.

Three ways a due date goes blank

Most teams assume that a required field on the form means the table cannot contain a blank. The form’s validation protects the form. It does not protect the table from the other doors into it.

A gauge entered without a due date. A new instrument is added with its last calibration date, and the next due date is left for later. Later tends to be the week before a shutdown.

A due date calculated from a missing input. Many registers store the due date as a calculated value: last calibration date plus the interval in months. If the interval is blank, there is nothing to add, the result is Null, and the gauge leaves the overdue list without anyone having decided that it should.

An interval lost in transit. Many registers link to an Excel sheet of intervals. The Access driver for Excel guesses each column’s data type from a few sampled rows. An interval column that mixes numbers with text, such as "12" and "12 months", can bring some values through as Null. The gauge is still on the bench. Its interval is gone.

A short stack of loose steel gauge blocks wrung together on a black granite surface plate in a clean metrology room

A worked example

Take five instruments and an as-of date of 29 November 2026. The values are illustrative, but the pattern is the one that appears in real files.

| Instrument | Last calibration | Interval | Next due (stored) | Overdue query returns |
|—|—|—|—|—|
| A: thread plug gauge | 14 Oct 2025 | 12 months | 14 Oct 2026 | Yes |
| B: gauge block set | 2 Mar 2026 | 12 months | 2 Mar 2027 | No |
| C: height gauge | 20 Feb 2025 | blank | blank | No |
| D: new pin gauge | blank | 12 months | blank | No |
| E: torque wrench | 10 Jun 2026 | 6 months | 10 Dec 2026 | No |

The query returns one row, A. Read on its own, the report says one gauge is overdue and there is nothing else to act on.

The register says otherwise. Gauge A is overdue, as the report shows. Gauge C is the one that matters: its last calibration date alone, against a 12-month interval that the procedure would normally give it, means it has been overdue since February 2026. The query cannot see that, because the interval was lost. Gauge D has never been calibrated, and nothing on the report says its status is unknown. Gauges B and E are not due, and the report is right about them.

So the true state is one overdue gauge that the report shows, one that is almost certainly overdue and cannot be shown as such, and one whose status nobody has stated. The report shows one.

A laptop on a neutral workbench showing an abstract table with one highlighted row, with a click torque wrench in the foreground

The check that would have caught it

Before you trust an overdue list, split the whole register into four buckets and count each one: overdue, due in the future, no due date, and total. The first three must add up to the fourth.

In the example, that is 1 overdue (A), 2 not yet due (B and E), 2 with no due date (C and D), and 5 in total. The numbers balance, which shows that no row is lost from the count. It does not show that the register is healthy. Balance is a necessary check, not a sufficient one. The point of the blank bucket is that it must be zero, or every row in it must have an owner and a decision date.

The fix is a rule, not only a query

The quick patch is WHERE NextDue < Date() OR NextDue IS NULL, which puts blanks on the list as their own line. That is a start. But a missing due date means the status is unknown, and an auditor will read unknown as not controlled until someone shows otherwise. ISO 9001 clause 7.1.5.2 b) asks that measuring equipment be identified in order to determine its status. A register that cannot state a gauge’s status fails that test, whatever the cause: a typing error, a broken link or a query.

Each of the three routes above needs its own control. A required due date or interval at entry. A calculation that refuses to produce a date from a blank input. An interval check after every import from a spreadsheet. Patching the one query covers only the last step of the path.

Objections worth taking seriously

"We have never had a gauge with a blank date." You have not had one on the list. A gauge that the list cannot see is the one nobody notices. The four-bucket count takes minutes, so run it before arguing about it.

"This is an Access problem, and we are moving off Access." Partly. Any system can hold a blank. What matters is what the system does with one: show the gauge as unknown, block it at check-out, or drop it from the view. That behaviour is what you must inspect on any replacement, not assume.

"Automatic due dates fix it." They remove the typed-date route and make the calculation the single source of the date. They do not remove a missing input. A gauge with no interval still has no due date, so the blank-input question survives the migration. In PrüfDesk, due dates are auto-calculated and overdue blocking is configurable per tenant, as a hard block or a soft warning. Ask the vendor how an instrument with no due date is treated in your tenant, and test that exact case on a copy of your data before cutover. Do not rely on a general description.

Before cutover

  • Count instruments with a blank last-calibration date, interval or due date in the source file, before any export.
  • Record the reason for each blank: never entered, calculated from a blank input, or lost in a linked sheet.
  • Set each status from its certificate and the procedure interval, and write the decision down with your name and the date.
  • Run the four-bucket count on the source file and again on the imported data. The totals must match.
  • Keep any unresolved blank on a named exceptions list, with an owner and a closure date.

A low-pressure first step

Run the four-bucket count on a copy of your current file this week. If the blank bucket is zero, you have evidence rather than a feeling, and you can say so in the next review. If it is not zero, that list is the most useful thing you can bring to a migration conversation. It is also the best first test for any system you evaluate, PrüfDesk included.