How to Total Successful Quote Prices in a Microsoft Access Report
Question details
The user needs to calculate a footer total in a Microsoft Access report that includes only successful quotes, excluding pending or unsuccessful ones.
- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Generating a report summary for completed and successful quotes.
- Observed behavior
- The report requires a conditional sum in its footer to accurately display the total price of only successful quotes.
Ensure your report is open in Design View and verify the exact spelling of the field names used for the quote status and the total price.
Use a Conditional Sum Function in the Report Footer
Add a calculated text box to the report footer using the IIf function within a Sum function to filter and calculate only successful quotes.
Microsoft Access does not have a native SUMIF function like Excel. To achieve a conditional sum in an Access report, you must combine the Sum function with the IIf function.
Right-click your report in the Navigation Pane and select 'Design View'.
Navigate to the Report Design Tools tab, click on the 'Text Box' control, and click inside the Report Footer section to insert it.
Select the newly inserted text box, open the Property Sheet by pressing F4, and enter =Sum(IIf([Successful]=True,[TotalPrice],0)) into the Control Source property.
Replace '[Successful]' and '[TotalPrice]' with the exact field names as they appear in your database's underlying table or query.
Looking for a Free and Powerful Office Suite?
While WPS Office does not include a database management tool like Microsoft Access, it offers excellent alternatives to Word, Excel, and PowerPoint. If you frequently export Access data to spreadsheets for easier analysis, WPS Spreadsheet provides seamless compatibility with Microsoft Excel formats, allowing you to filter, calculate, and report your quote prices effortlessly using standard functions like SUMIF.
- 1. Export Access Data: In Microsoft Access, export your query or report data to an Excel or CSV file.
- 2. Open in WPS Spreadsheet: Launch WPS Office and open the exported file to view your quote data.
- 3. Calculate Totals: Use the SUMIF function in WPS Spreadsheet to easily calculate the total price of successful quotes.

Frequently Asked Questions
Can I use SUMIF in a Microsoft Access report?
No, Microsoft Access does not have a built-in SUMIF function. Instead, you must combine the Sum and IIf functions, formatted as =Sum(IIf(condition, true_part, false_part)).
Why is my text box showing an #Error in the report footer?
This usually happens if the field names in your expression do not exactly match the field names in your report's Record Source, or if there is a circular reference where the text box name is identical to a field name.
How do I total quote prices based on multiple conditions in Access?
You can use the AND/OR operators within the IIf condition. For example, to sum successful quotes in a specific region, use: =Sum(IIf([Successful]=True AND [Region]='North', [TotalPrice], 0)).




