Skip to content
Auscultby NBIT
EN
Free diagnostic

Access error reference

Access error 2465: “Microsoft Access can't find the field … referred to”

A form opens, then a button or a calculation stops on “Microsoft Access can't find the field …”. The quoted name is what the code or expression is looking for: it is gone, or it is not where the code looks.

The message

Microsoft Access can't find the field '…' referred to in your expression.

English Access (VBA: “Run-time error '2465': …”)

On a French Access: « Microsoft Access ne trouve pas le champ « … » auquel il est fait référence dans votre expression. » When the application has its own title, Access sometimes shows it instead of “Microsoft Access”.

Where it shows up

In a form's or report's code (Me!txtTotal, Forms!Orders!Customer), in a calculated control (=[Price]*[Quantity]), or in a conditional formatting rule.

Common causes

  • a control that was renamed or deleted while the code still refers to it;
  • a field removed from the form's record source (table or query changed);
  • a wrong subform reference: Forms!Main!SubForm!Field instead of Forms!Main!SubForm.Form!Field, or the form's name instead of the subform control's name;
  • a typo in the name.

How to reproduce and check it

  1. Note the name quoted in the message, then open the form in Design view and check the list of controls (Property Sheet, drop-down at the top).
  2. Check the form's record source: is the field still there?
  3. In the VBA editor, Edit > Find the name across the whole project: it often shows up elsewhere too.

How to fix it

Restore the expected name (or update the code to the new one), add the field back to the record source, or reach the subform through the .Form property of the control that holds it.

What Auscult reports

The diagnostic recognises 2465 (the “field not found” family) on the form, report or button involved, with the error box recorded in Access. For a form or report, the full report proposes, when there is one, the existing field whose name is closest to the missing one — for your developer to confirm. Other forms hit by the same cause are grouped with it.

Measured on our test corpus: this message was recorded while analysing 29 of 965 applications.

The Access error reference, code by code

Frequently asked questions

The field is in the table, so why the error?

Because the code is often looking for a control on the form, not the table field, or looking in the wrong form (the main form instead of the subform).

Where are the other errors in your application hiding?

The diagnostic runs on your computer, on a copy of the application, without sending the data in your tables. The health grade and the summary are free.