Advertisement

05.22.2007 at 06:11PM PDT, ID: 22588913
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

Counting distinct entries in nested subreports in MSAccess

Asked by jainesteer in Microsoft Access Database

Tags: , , , ,

We are going through a role mapping exercise in which we need to take a series of agency roles and match them to a new set provided for the project. Each role in both groups has a number of transactions. I need to determine how good the match is between the two lists based on the number of transactions that are the same.

So far, I have an Access report that on the left go through each role and lists each of the transactions in the detail section. Then in the detail section, I have a subreport for the list of provided roles that is linked via the transactions (actually a unique code that is common to both lists - well at least I hope that it is, however there may be codes in the provided list that do not appear in the agency list, but NOT vice versa).

The header of the report shows the total number of transactions in each agency role.

What I now want to do is for each agency role, provide a summary of roles (ie. a distinct list) from the other list that had a match in transactions for that agency role, and to count the number of times that the role from the new list occurred out of the count in the header.

Eg - say I have agency roles called AG1, AG2, AG3 and AG4

AG1 has transactions T1, T5, T7
AG2 has transactions T1, T2, T3, T12
AG3 has transactions T2, T4, T7
AG4 has transactions T3, T4, T5, T8

The other list has roles OL1, OL2, OL3

OL1 has transactions T2, T10, T12
OL2 has transactions T3
OL3 has transactions T6, T7, T8, T9

Output should be like

AG1                      3 transactions
T1  -  nothing as there is no corresponding role from the OL that includes this tx
T5 -  nothing as there is no corresponding role from the OL that includes this tx
T7 ......   OL3
Summary
OL3 role has 1 match out of 3

AG2                      4 transactions
T1  -  nothing as there is no corresponding role from the OL that includes this tx
T2 .......  OL1
T3 ......   OL2
T12......  OL1
Summary
OL1 role has 2 match out of 4
OL2 role has 1 match out of 4

etc

The lists each have hundreds of roles and transactions and so I really am looking for a system to do the calculation for me. I would also like to be able to put this data to a table so that it is available for a form which I am sure will lead to at least one moreEE question.

After this, I will be looking at designing a formStart Free Trial
 
 
[+][-]05.22.2007 at 07:16PM PDT, ID: 19138949

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Access Database
Tags: count, distinct, nested, number, subreports
Sign Up Now!
Solution Provided By: Flyster
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.22.2007 at 08:12PM PDT, ID: 19139152

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.24.2007 at 10:45PM PDT, ID: 19154886

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32