Display a list of the count of each unique value in an Access report.

TonyD1016

Board Regular
Joined
Nov 18, 2021
Messages
59
Office Version
  1. 365
Platform
  1. Windows
Good afternoon.

I'm currently trying figure out how to display some information in a quarterly report in Access.

I have a table that lists the invoices received by date and a field that lists the county that the vendor is located in.
I have a query that pulls the necessary information in this table into a report which I filter by quarter using the DatePart function on the DateReceived field.

What I would like to have as part of that report is a list of the number of times each county has appeared within the specified dates.

My first effort was to create a subreport that grouped the original query by County and put a [County] textbox in the Group Header nextt to a second one with "=Count(*)". But when I put this subreport in the header of the main report, it would only display whichever county was the first record in the main report and none of the others.

What is the best way to accomplish what I am trying to do?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I usually stumble through these solutions if I have something to work with. In absence of that, you need to examine the sorting and grouping options in report design. In that view, from design tab, turn on Sorting and Grouping (ribbon). If you are grouping by county you can select Totals options for a group (field and then operation, such as count, sum). If you're not, sometimes the answer is to hide a textbox, set its value to 1 and set it to be a running sum. You might have to research some of these terms. Note that report design ignores query sorting, so don't expect report output to mimic query design.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top