Results 1 to 8 of 8
  1. #1
    Stretholox is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    24

    Counting the number of times a value meets a certain criteria

    So I'm running into a problem that I'm not sure queries will solve.



    I have students with competency values. I want to be able to count the number of times a student achieves a competency above a certain number.

    The additional problem is that there are different types of competencies. I want to count whether or not a student achieved a certain percentage value on each type of competency and the total number of competencies they have achieved a high enough value on. These values also change depending on the type of competency.

    So I have Competency A that has a pass percentage of 50% and Competency B that has a pass percentage of 70%. I need to know which students got at least a 50% on A and at least a 70% on B and also how many competencies they have gotten a passing score on. So if both then 2 if one then 1.

    Can anyone point me in the right direction?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    How many competencies? Do you have a table of competencies with a field for the percentage criteria?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Stretholox is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    24
    Yes there are tables for each competency. They have a unique ID number and a competency percentage. I'm just creating a test database at the moment so I only have 2 competencies. But in the future I need this to be able to handle about 10 competencies if necessary.

  4. #4
    Stretholox is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    24
    I will totally settle for just counting the number of competencies passed.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I think the first step is a query that joins the student test data records with the compentencies table so the pass percentage will be available. Then you can calculate a field to show "Passed/Not Passed" depending on comparison of score to the pass percentage. This should give a query that shows every student results. Apply filter criteria as you desire. Use this query in an aggregate query if you want.

    Suggest you consider building a report that uses Grouping & Sorting features with aggregate calcs in group footer section. This will allow display of detail records as well as summary data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    Stretholox is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    24
    I'm not sure what you mean by student test data records. The only table is a competency table with two columns. The first column is the uniqued ID and the second column is their score on the competency. I have a query that takes those above a specific percentage on the competency. I need to be able to add to my main form a box that holds a number of how many competencies they have passed. In essence, if there was a way to count the number of times a name appears in a set of queries that would be enough. Since I could just have a query for each competency type. I mean, if there was a way to show all the passed competencies together by student that would be amazing but that would mean gaps in data for certain people. As obviously not every passes each competency.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    What you call the competency table has student test scores? Then that's the table I meant as 'student test data records'. It should have fields for StudentID, CompetencyID, Score.

    Now you need a table that has a unique record for each competency with fields for CompetencyID and pass percentage.

    Join these two tables on the common competencyID fields.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    Stretholox is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    24
    Quote Originally Posted by June7 View Post
    What you call the competency table has student test scores? Then that's the table I meant as 'student test data records'. It should have fields for StudentID, CompetencyID, Score.

    Now you need a table that has a unique record for each competency with fields for CompetencyID and pass percentage.

    Join these two tables on the common competencyID fields.
    You are my hero. Solved.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Run Macro Several Times based on different criteria
    By tylerpickering in forum Macros
    Replies: 4
    Last Post: 11-25-2014, 08:05 AM
  2. Replies: 4
    Last Post: 10-15-2014, 05:51 AM
  3. Replies: 8
    Last Post: 10-22-2013, 05:08 PM
  4. Replies: 2
    Last Post: 07-16-2012, 10:20 AM
  5. Replies: 14
    Last Post: 02-23-2012, 06:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums