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

Adding items in the group and...... 1

Status
Not open for further replies.

b31luv

Technical User
Feb 21, 2002
171
US
I set up this report from a query. In the Query there is a MAIN ITEM NUMBER. IE 22, 23, 24. Each MAIN ITEM NUMBER has anywhere from 1 to 15 OPTIONS and a user may use all 15 or just one. My form is setup so that each OPTION has a heading IE 22.1, 22.2, 22.3,....22.k. What I would like to do is count all of the OPTIONS chosen for each MAIN ITEM NUMBER and use in my IIF statement.

IIF("the number of options chosen" > 1, "Comments:", "Comment:")

I think I've tried everything, so hit me with your best shot.
 
If you have a group for the MAIN ITEM NUMBER then in the Group Footer put
IIf(Count(*)>1,"Comments:","Comment:")

That may do it.

Paul
 
Thanks Paul, that works beautifully.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top