Counting Specific entires

J

JasonP

I use access to track each call recieved and each call is broken into
categories (fields). The fields "Product Line", "Support", and "Action" all
have a value list associated to them with several choices. I need to provide
totals for all of the records associate to each value.

Example: Product Line="Drainage", "Landscape", etc. or Support =
"Installation", "Failure", etc. or Action="Send Replacement", "Place Order",
etc

I need to show a report overview that tells me the total calls we recieved
for for drainge and the total recieved for installation, ideally in the
Report Header before the report actually begins. I can come up with the
right code if I want a total within each header. Is what I want to do
possible? Thank you so much for any assistance or guidance you can provide
 
F

fredg

I use access to track each call recieved and each call is broken into
categories (fields). The fields "Product Line", "Support", and "Action" all
have a value list associated to them with several choices. I need to provide
totals for all of the records associate to each value.

Example: Product Line="Drainage", "Landscape", etc. or Support =
"Installation", "Failure", etc. or Action="Send Replacement", "Place Order",
etc

I need to show a report overview that tells me the total calls we recieved
for for drainge and the total recieved for installation, ideally in the
Report Header before the report actually begins. I can come up with the
right code if I want a total within each header. Is what I want to do
possible? Thank you so much for any assistance or guidance you can provide

Add unbound controls to the Report Header.
=Sum(IIf([ProductLine]="Drainage",1,0))
=Sum(IIf([Support]="Installation",1,0))
etc.

You could also use:
=ABS(Sum([ProductLine] = "Drainage"))
etc.
 
J

JasonP

Fred,
Perfect! The "ABS" code didn't seem to work as it asked me to enter a value
for "Product Line," but the Sum(IIf combo worked. Thanks again

fredg said:
I use access to track each call recieved and each call is broken into
categories (fields). The fields "Product Line", "Support", and "Action" all
have a value list associated to them with several choices. I need to provide
totals for all of the records associate to each value.

Example: Product Line="Drainage", "Landscape", etc. or Support =
"Installation", "Failure", etc. or Action="Send Replacement", "Place Order",
etc

I need to show a report overview that tells me the total calls we recieved
for for drainge and the total recieved for installation, ideally in the
Report Header before the report actually begins. I can come up with the
right code if I want a total within each header. Is what I want to do
possible? Thank you so much for any assistance or guidance you can provide

Add unbound controls to the Report Header.
=Sum(IIf([ProductLine]="Drainage",1,0))
=Sum(IIf([Support]="Installation",1,0))
etc.

You could also use:
=ABS(Sum([ProductLine] = "Drainage"))
etc.
 
D

Duane Hookom

You probably didn't spell the field name correctly.
--
Duane Hookom
Microsoft Access MVP


JasonP said:
Fred,
Perfect! The "ABS" code didn't seem to work as it asked me to enter a value
for "Product Line," but the Sum(IIf combo worked. Thanks again

fredg said:
I use access to track each call recieved and each call is broken into
categories (fields). The fields "Product Line", "Support", and "Action" all
have a value list associated to them with several choices. I need to provide
totals for all of the records associate to each value.

Example: Product Line="Drainage", "Landscape", etc. or Support =
"Installation", "Failure", etc. or Action="Send Replacement", "Place Order",
etc

I need to show a report overview that tells me the total calls we recieved
for for drainge and the total recieved for installation, ideally in the
Report Header before the report actually begins. I can come up with the
right code if I want a total within each header. Is what I want to do
possible? Thank you so much for any assistance or guidance you can provide

Add unbound controls to the Report Header.
=Sum(IIf([ProductLine]="Drainage",1,0))
=Sum(IIf([Support]="Installation",1,0))
etc.

You could also use:
=ABS(Sum([ProductLine] = "Drainage"))
etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top