Challenging Distinct Record Count in an Access Report (1 Viewer)

vinsavant

New member
Local time
Yesterday, 18:53
Joined
Dec 15, 2012
Messages
7
Hello,

:banghead: I have created a report in Access that has the following structure: Please see attached sample report image.

While I can create a simple record count of the Application ID and place it in the Region section, I am struggling to create one the would give me a distinct or unique count of applications within the Region. In the above example of a total of 3 applications since Canada and Mexico use the same type of application, in this case, MS Word.

It has been suggested that I create a query. If so, how is that done? Do I create an unbound field in the Region Heading of the report and paste the SQL statement inside? Please provide a bit more detail and a sample query syntax if possible.

Thank you!
 

Attachments

  • Sample Report.jpg
    Sample Report.jpg
    83.4 KB · Views: 98

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 19:53
Joined
Feb 19, 2002
Messages
43,275
Query1 would be
Select Distinct Region, ApplicationID
From YourTable

Then the Control source for the count field would be

= DCount("*", "Query1", "Region = '" & [Region] "'")
 

Users who are viewing this thread

Top Bottom