Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count records in detail footer section

Status
Not open for further replies.

schumarg

Technical User
Joined
Sep 7, 2001
Messages
7
Location
US
Hi,

Trying to count and show the records in a detail footer section that have a dollar value of $0.00 in the detail section. Report is grouped by a joined field, but can't see where that should matter if I'm only trying to count records. Have tried the following but it returns the count of all records within the detail section. Don't understand why it's not working. Any help or hints would be appreciated.

Example:

Name Order Date Amount
R. Smith 100012 01/01/01 $123.98
B. Smith 100001 01/02/01 $133.33
G. Smith 100233 03/03/01 $ 0.00

Count should = 0, but is returning a count = 3

=Count([GKSTI]=0)

Thanks,
Bob

ps: This post is a followup on a previous DCount post.
 
try:

=DCount("[fieldName]","tableName","[fieldName] = 0.00")

Nick
 
Hi,

Tried that one, however it returns a count of all records with an amount of $0.00 for the entire report. I used this for the cover sheet, but would like to show the count within the footer section for each group.

Thanks,
Bob
 
=DCount("[fieldName]","tableName","[MyGroupFieldName]=[MyGroupFieldControlName] AND [fieldName] = 0.00") Joe Miller
joe.miller@flotech.net
 
Thank you!!

Working great now.

Bob

s-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top