If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Calculating in a category
Is it in a report footer, and you want to count the number of yes in the
detail section of the report? Try =Sum(IIf([at fault] = 'Yes',1,0) If it's from a table, using the category from the table, you can try =DCount("*","TableName","[at fault]='Yes' And [Category field name in the table] = '" & [Category field name in the report] & "'") -- Good Luck BS"D "acomphenn" wrote: I'm trying to figure what to put for the control source if I'm trying to find out how many "yes" answers there are in a specific category. Ex- I need to find out how many "at fault" damages we had and the answers range from no, yes & tbd and I want to know how many "yes" ones there are. Could someone please tell me what I should put for the control source?? Thanks |
#2
|
|||
|
|||
Calculating in a category
I actually want to put it in the group footer. When I put the formula you
suggested in the control source =Sum(IIf([at fault]='Yes',1,0) nothing happened. The formula didn't even appear on the report in the design form it just still showed unbound. Any other suggestions? Thanks "Ofer Cohen" wrote: Is it in a report footer, and you want to count the number of yes in the detail section of the report? Try =Sum(IIf([at fault] = 'Yes',1,0) If it's from a table, using the category from the table, you can try =DCount("*","TableName","[at fault]='Yes' And [Category field name in the table] = '" & [Category field name in the report] & "'") -- Good Luck BS"D "acomphenn" wrote: I'm trying to figure what to put for the control source if I'm trying to find out how many "yes" answers there are in a specific category. Ex- I need to find out how many "at fault" damages we had and the answers range from no, yes & tbd and I want to know how many "yes" ones there are. Could someone please tell me what I should put for the control source?? Thanks |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculating a category based on the totals | D Dawson | Running & Setting Up Queries | 2 | May 4th, 2006 05:11 PM |
keyw: MVP rules category outlook server none | ktm | General Discussion | 4 | October 14th, 2005 07:40 PM |
I think my relationship is wrong. Help | dab1477 | Running & Setting Up Queries | 2 | February 9th, 2005 02:25 PM |
Group total in subreport | Sunny | Setting Up & Running Reports | 0 | June 25th, 2004 05:10 PM |
Calculating value based on a category | snix | Worksheet Functions | 1 | April 2nd, 2004 07:44 PM |