Re: Count Items in a report
- From: MGFoster <me@xxxxxxxxxxx>
- Date: Tue, 28 Feb 2006 19:18:21 GMT
Miguel wrote:
I have a parameter query to filter by date from which I run a report. I
need to be able to count the number of times a particular product or
error type appears after the report is run from the query. The products
and error types are limited to a defined list. I need to put these
summary totals in the footer. Using the Dcount function works, but
returns all items, not those within the date range.
Any assistance would be appreciated.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You can use a running sum control in the report and the IIf() function
to count specific products & "error types." E.g.:
Set up a TextBox in the Detail section (or whichever section you are
placing the product/error type data) w/ the Running Sum property set to
Over All. Then set the Control Source property to something like this:
=IIf([product]="ironing board",1,0)
Name this control something like txtIroningBoardCount. You can set it's
Visible property to No.
In the Report Footer put another TextBox with the Control Source set to:
=txtIroningBoardCount
This TextBox will show the total count of all ironing boards in the
report. Label it something like "Ironing Boards: ".
Do the same for all other items you want to count.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBRASiBIechKqOuFEgEQL75gCeNx2NlKKONttzPhGEArnxpqA7P4cAn0XQ
ijLTLVfF1J+YChC6hibyUr12
=OpPX
-----END PGP SIGNATURE-----
.
- References:
- Count Items in a report
- From: Miguel
- Count Items in a report
- Prev by Date: Deleted column in a Table linked to 35,000 entries!
- Next by Date: Re: how do u send an email using access?
- Previous by thread: Count Items in a report
- Next by thread: Date and Time calendar
- Index(es):
Relevant Pages
|