logo
search
Others

How to Use AVERAGE with a Calculated Control in an Access Report Footer

John WilsonJohn Wilson Oct 23, 2026 868 views

Question details

The user needs to calculate the average of a calculated detail control (like a date difference) in an Access report footer but receives unexpected parameter value prompts.

How to Average a Calculated Control in an Access Report Footer
Product
Microsoft Access
Device & OS
not provided
Scenario
Calculating an average value in an Access report footer based on computed data from the report details.
Observed behavior
The AVERAGE expression fails and prompts the user to manually enter parameter values instead of calculating the result automatically.
Before you start

Ensure that your report's underlying record source (table or query) contains the raw fields needed for the calculation, as aggregate functions cannot directly reference unbound report control names.

Solution 1Recommended

Repeat the Calculation Inside the Aggregate Function Using Source Fields

Fix the parameter prompt by replacing report control references (like text box names) with the actual field names from your underlying table or query directly inside the AVERAGE function.

In Microsoft Access, aggregate expressions like Avg() or Sum() cannot resolve values from report controls (such as text boxes named with 'txt' prefixes). Instead, they must evaluate the fields from the report's record source.

To bypass the parameter prompt, you need to embed the mathematical calculation directly into the aggregate function using the original database field names.

1
Identify Source Field Names

Check the property sheet of your report to find the exact names of the fields in your underlying table or query (e.g., [DateSubmitted] and [DatePaid]), rather than the names of the text boxes displaying them (e.g., txtDateSubmit).

2
Open Report in Design View

Right-click your report in the Access navigation pane and select 'Design View'.

3
Select the Footer Text Box

Click on the unbound text box in the Report Footer where you want the average result to be displayed.

4
Update the Control Source

Open the Property Sheet, navigate to the 'Data' tab, and set the Control Source property to repeat the calculation. For example: =Avg(DateDiff("d", [DateSubmitted], [DatePaid])).

5
Save and Preview

Save your changes and switch to 'Report View' or 'Print Preview' to verify that the average calculates without prompting for parameters.

Repeat the Calculation Inside the Aggregate Function Using Source Fields
Expression Successfully Resolved: By referencing the record source fields directly, Access can successfully compute the aggregate function across all records without missing parameter prompts.
Free Microsoft Office alternative

Manage Data and Reports with WPS Office

While Microsoft Access is a specialized database tool, many data tracking, averaging, and reporting tasks can be efficiently handled using WPS Spreadsheet. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office, featuring advanced formulas and PivotTables for instant data summaries.

  1. 1. Download and Install: Download WPS Office for free from the official website and install it on your device.
  2. 2. Import Your Data: Export your Access data to an Excel format and open it seamlessly in WPS Spreadsheet.
  3. 3. Calculate Averages Instantly: Use the =AVERAGE() function or insert a PivotTable to instantly calculate and report on your data without complex database expressions.
Seamless compatibility with Microsoft Excel (.xlsx) formats for easy data migration and sharing.Powerful formulas like AVERAGE and advanced PivotTables to quickly summarize calculated columns.Free and lightweight suite encompassing Writer, Spreadsheet, Presentation, and PDF tools.Familiar user interface ensuring a smooth transition with no steep learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Access prompt for a parameter value when I use Avg() on a calculated control?

Access prompts for a parameter because aggregate functions like Avg() or Sum() cannot recognize report control names (such as an unbound text box named 'txtDateSubmit'). They must evaluate the actual fields stored in the report's underlying table or query.

Can I calculate an average in a page footer instead of a report footer?

No, aggregate functions like Avg() or Sum() cannot be directly placed in a page footer in Microsoft Access. They are specifically designed to calculate totals over a group of records, so they must be placed in a Report Footer or a Group Footer.

How do I average a standard field in an Access report?

To average a single, standard field without calculations, simply add a text box to your report footer and set its Control Source to =Avg([YourFieldName]), ensuring you use the exact field name from your database table.