Results 1 to 5 of 5
  1. #1
    bvanscoy678 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    2

    Calculations in reports

    I am building a report based of a query. It is a parameter query that searches for results between dates. It pulls up 5 different fields (besides the date) from the same table.



    I want to be able to group the dates by month. I don't care about it showing every individul date. [I tried the group on with group and sorting, but I was not successful (I added headers and footers)].

    Some fields I need to sum numbers which I have done successfuly by adding =SUM () in the footer.

    But, not sure what operator to use for the other fields. They are text fields. I just want to sum how many times a certain field show up. is...if I have 5 choices of colors. then I want it to show Red's total is 10, Blue's totals are 8, ect...

    Thanks for any help in sorting this out. I am new, but learning quickly.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    One way:

    =Sum(IIf(FieldName = "Red", 1, 0))

    I'd also consider using a totals query and making it the source of a subreport. It would be more dynamic if the possible choices changed.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    bvanscoy678 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    2

    report

    I am open to suggestions about a sub report.

    I am attempting to make this interactive and easy. I just want a guy to put in the dates using a parameter query, then have the report do everything else.

    Do you have a link I can read up on your suggestion?

    thank you

  4. #4
    azal is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    12
    Hope this helps..

  5. #5
    mduplantis is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Jun 2010
    Location
    Omaha, Ne
    Posts
    65

    Works

    yes, that is what I wanted to do.

    Thank you very much.

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

Similar Threads

  1. Replies: 14
    Last Post: 06-03-2010, 06:03 PM
  2. subform calculations
    By genesis in forum Forms
    Replies: 0
    Last Post: 12-03-2009, 07:18 PM
  3. Calculations in Access
    By dominick in forum Access
    Replies: 0
    Last Post: 07-28-2009, 07:39 AM
  4. Subform calculations
    By foureyes in forum Forms
    Replies: 4
    Last Post: 07-27-2009, 08:20 AM
  5. Time calculations
    By jimandann in forum Programming
    Replies: 2
    Last Post: 02-18-2009, 12:27 AM

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