How to Fix #NAME? Error in Access Bound Text Box
Question details
The user needs to resolve a #NAME? error appearing in a bound text box within an automatically created Access form, even though the underlying query results are correct.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Viewing or entering data in an automatically generated database form.
- Observed behavior
- A bound text box on the form displays #NAME? instead of the expected field data from the query.
Ensure you have design permissions for the Access database and save a backup copy of your form before making structural changes to its properties.
Verify Form Record Source and Control Source
The most common cause of the #NAME? error is a mismatch between the form's underlying query and the text box's control source property.
When an Access form is created, it binds to a specific Record Source (a table or query). Each text box on the form must have a Control Source that exactly matches a field name within that Record Source.
Right-click the problematic form in the navigation pane and select 'Design View'.
Press F4 on your keyboard, or click 'Property Sheet' in the Design tab of the ribbon.
Select 'Form' from the drop-down menu at the top of the Property Sheet. Go to the Data tab and verify that the 'Record Source' points to the correct query.
Click the text box displaying the #NAME? error. In the Property Sheet, check the 'Control Source' property to ensure it exactly matches a valid field name from the query without any typos.

Check for Duplicate or Ambiguous Field Names
If multiple tables in the underlying query have fields with the same name, Access cannot determine which one to bind to the text box.
Looking for a Lightweight, Reliable Office Suite?
While Microsoft Access is a specialized database tool, your daily document, spreadsheet, and presentation needs can be handled easily by WPS Office. It is a free, lightweight, and highly compatible alternative to Microsoft Office, designed to boost your productivity without system bloat.

Frequently Asked Questions
Why does my text box show #NAME? instead of the expected data?
This error occurs when Microsoft Access cannot evaluate the expression or field specified in the text box's Control Source. It typically means the field name is misspelled, deleted from the underlying query, or ambiguous.
Can a deleted query field cause the #NAME? error on my form?
Yes. If you remove a field from the query that acts as the form's Record Source, any text box still bound to that field will immediately display the #NAME? error because the data source no longer exists.
How do I easily view the SQL statement of my form's query?
Open your query in Design View, then right-click the query tab at the top of the workspace and select 'SQL View'. This allows you to inspect the exact SQL statement and verify all referenced field names.




