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.
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!Fieldinstead ofForms!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
- 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).
- Check the form's record source: is the field still there?
- 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.
Related errors
- 3061 — too few parameters, the same missing field seen from a query
- 3021 — no current record
- The Access error reference, code by code