Results 1 to 8 of 8
  1. #1
    funkygoorilla is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    93

    Count results

    Hi, I have three results that I would like to be able to count(total) for a report. But I don't know how to get my report to do so. The options are selected in a form from a drop down that has a table as a source. I would like to be able to show on the report how many times each option was selected.
    For example; If the user selects Monday, I would like to be able to show how many Mondays were selected.
    How can I do that?


    Thanks, Funky G.

  2. #2
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    My answer may be as specific as your question.

    Quote Originally Posted by funkygoorilla View Post
    Hi, I have three results that I would like to be able to count(total) for a report. But I don't know how to get my report to do so. The options are selected in a form from a drop down that has a table as a source. I would like to be able to show on the report how many times each option was selected.
    For example; If the user selects Monday, I would like to be able to show how many Mondays were selected.
    How can I do that?
    Thanks, Funky G.
    Perhaps when the form selections are made, and the report called, the report, during its open event, could look back at the choices made in the form and construct a filter, a query, a Dlookup....

  3. #3
    funkygoorilla is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    93
    So there is no way to just count how many times a choice from a drop down has been made?

  4. #4
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481

    Yes, you can count the number of times a selection is made.

    Since you are treating the choice as a data point, you need to save it as a field in a table.
    Every time a choice is made, the values in the table gets updated. Use the Click event to do the processing.

  5. #5
    funkygoorilla is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    93
    Hertfordkc,

    I like your idea, but I dont want to save the value in a table. I just need it to total in a report. Would it work in a similar way?

  6. #6
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    If you only want to total during each time the data base is open as opposed to multiple times the data base is open.
    BTW, tables are cheap.

  7. #7
    hertfordkc is offline 18 year novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    481
    A better explanation for you.
    Have the first opened form or macro set global counters to zero. These should be in a global module.
    Thereafter, the onclick events will handle the incrementing of the counter. Then you can refer to it in your report.

  8. #8
    funkygoorilla is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    93
    Hi Hertfordkc,
    I wound up going a different route than you suggested. I used this formula;
    =Count(IIf([Call Type]="ABCD",0)) I put this in a new text box, and used it to count all the occurrences of the words I was looking for.
    This did just what I needed it to. I appreciate your help on this though.
    Thanks again!

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

Similar Threads

  1. Replies: 6
    Last Post: 05-14-2012, 07:24 AM
  2. Replies: 0
    Last Post: 03-28-2011, 04:32 PM
  3. Query Results "Count Totals"
    By tipopilotas in forum Queries
    Replies: 1
    Last Post: 03-26-2010, 10:36 PM
  4. Different results in queries
    By Vic in forum Programming
    Replies: 6
    Last Post: 11-06-2009, 10:58 AM
  5. Combining results
    By LANCE in forum Queries
    Replies: 0
    Last Post: 06-11-2009, 07:38 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