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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count Certain Records

Status
Not open for further replies.

Dilly

Technical User
May 28, 2001
41
0
0
GB
I have a report that ha a list of "Delivery Days", I am after a way of counting the number that are less than 3, 3 to 7 and 7 upwards can anybody help. I know how to create a count of the total number of records but cannot work out the syntax to seperate count by the three groups. If possible i do not want to create three groups but would to create three controls/ Text box's
:)
 
Hi!

You can use the DCount function, set the record source to:

=DCount(&quot;[Delivery Days]&quot;, &quot;YourTableOrQuery&quot;, &quot;[Delivery Days] < 3&quot;)

And similar functions for the other two.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top