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

Getting Totals based on meal type 1

Status
Not open for further replies.

obuspider

Programmer
Oct 31, 2002
78
US
I have a select statement to select school type, school name, enrollment, total meals and meal type from a db. I need to create a view in Crystal Reports that lists each school by school type and then lists total meals for breakfast and total meals for lunch. It would look something like this

schoolname total bfast total lunch
name (number) (number)

I have been able to do one or the other, but not both. Any ideas.
 
Write two formula's (one for breakfast and one for lunch) that evaluates the db condition and returns a 1 if true and a 0 if false. Surpress its outpust on the report. Then insert a summary that counts each formula.

James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top