Others

Fix Microsoft Access Mailing Labels Showing Error for Names and Cities

Emma BrownEmma Brown Oct 14, 2026 869 views

Question details

User needs to resolve an issue where Avery 8160 mailing labels in Microsoft Access display '#Error' for name and city/state fields, despite street addresses printing correctly.

How to Fix Access Mailing Labels Showing Error for Names and Cities
Product
Microsoft Access
Device & OS
not provided
Scenario
Generating and printing Avery 8160 mailing labels using a Microsoft Access report.
Observed behavior
Street addresses print correctly, but the names and city or state fields display as Error. Additionally, an unexpected parameter prompt referencing TRIM may appear.
Before you start

Before modifying the report layout, open the underlying query used by the label report in Datasheet View to confirm that all required address fields are present and returning data without errors.

Solution 1Recommended

Fix Control Name and Control Source Conflicts

Use this solution if your text box control shares the exact same name as a field used in its calculated expression, which commonly causes the #Error display.

In Microsoft Access, if a text box's Control Source begins with an equals sign (indicating a calculation or concatenation, such as =[FirstName] & " " & [LastName]), the Name property of that text box cannot match the name of any field used in the expression.

1
Open Report in Design View

Right-click your mailing label report in the Navigation Pane and select 'Design View'.

2
Select the Problematic Text Box

Click on the text box control that is displaying the Error for names or cities.

3
Open the Property Sheet

Press F4 to open the Property Sheet. Navigate to the 'All' tab to view the control's properties.

4
Rename the Control

Locate the 'Name' property at the top. If it exactly matches a field name (e.g., 'FirstName'), change it to something unique like 'txtFirstName'.

5
Save and Preview

Save the report and switch to 'Print Preview' to verify that the Error has been resolved.

Fix Control Name and Control Source Conflicts
Naming Convention Tip: Adding a prefix like 'txt' or 'lbl' to your control names is a great practice to permanently prevent naming conflicts with database fields.
Free Microsoft Office alternative

Looking for a Free and Lightweight Office Suite?

While Microsoft Access handles complex database management, WPS Office is an exceptional free alternative for your daily document, spreadsheet, and presentation needs. Enjoy a seamless, lightweight experience with full format compatibility.

  1. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install WPS Office: Run the downloaded installation file and follow the on-screen prompts to complete the setup in minutes.
  3. 3. Open and Create: Launch WPS Office and immediately start creating, editing, and saving your documents with full Microsoft format compatibility.
Fully compatible with Microsoft Office formats including .docx, .xlsx, and .pptx.Lightweight software package that opens quickly and uses minimal system resources.Familiar tabbed interface makes it incredibly easy to learn and use.Built-in PDF editor for reading, converting, and editing PDF files easily.
microsoft office alternative - wps office

Frequently Asked Questions

Why does a TRIM parameter prompt appear when printing Access labels?

A parameter prompt for TRIM usually appears if a calculated field in your report or query is trying to use the Trim() function on a field name that does not exist, is misspelled, or is missing from the report's underlying record source.

How do I fix the #Error in Access reports when using calculated fields?

The most common fix is to change the 'Name' property of the text box. If your calculation is =[City] & ", " & [State], the text box cannot be named 'City' or 'State'. Rename it to 'txtCityState' to resolve the error.

Can I suppress blank lines in Microsoft Access mailing labels?

Yes. You can use the Access 'Can Shrink' property set to Yes for the text boxes, or you can use an expression with the '+' operator instead of '&' to propagate null values, which automatically hides empty address lines.