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

Counting multiple fields 1

Status
Not open for further replies.

dmoran

Technical User
Feb 12, 2004
13
US
I'm drawing a blank for what I'm sure is an easy solution -
I have a report where each record has 5 fields labeled "med1" through "med5". These 5 fields may/may not contain the name of a medication. All I want to do is display a total count of entries in the report footer for all meds entered.

Thanks,
David
 
try placing 6 text box in the footer 1 to 5 as below
=Abs(Sum([med1]))*5
then the sixth a total field summing the other 5
but there must be an easier way

Hope this helps
Hymn
 
Thanks for your response hymn - that was my initial thought too. It works, I'm using "Count" instead of "Sum" though because of the text values.

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top