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!

Formula Question 1

Status
Not open for further replies.

JasGrand

Programmer
Jan 8, 2003
144
CA
Hello, I am converting an MS Access report to a Crystal report. I have the following formula in Access:

=(Sum([REGISTRATION_COST])+Sum([Books_Cost])+Sum([travel_cost])+Sum([accomodation_cost])+Sum([exam_cost])+Sum([other_costs])+Sum([salben_costs]))

I created the following formula (called @Total) in Crystal Reports:

Sum ({ReportCompletedTraining.RegistrationCost}, {ReportCompletedTraining.CostCenter}) +
Sum ({ReportCompletedTraining.BooksCost}, {ReportCompletedTraining.CostCenter}) + Sum ({ReportCompletedTraining.TravelCost}, {ReportCompletedTraining.CostCenter}) + Sum ({ReportCompletedTraining.AccomodationCost}, {ReportCompletedTraining.CostCenter}) + Sum ({ReportCompletedTraining.ExamCost}, {ReportCompletedTraining.CostCenter}) + Sum ({ReportCompletedTraining.OtherCosts}, {ReportCompletedTraining.CostCenter}) + Sum ({ReportCompletedTraining.SalbenCosts}, {ReportCompletedTraining.CostCenter})

I did this in Crystal reports but some numbers aren't showing up. Where ever there is a missing total number there is also missing Book_Cost's that are not in the database. I was wondering if this could be an issue? If i'm doing it wrong then I was wondering how I can get all the numbers to show in the total in Crystal Reports.

Thanks again,


Jason Grandmaison
 
Woohoo!!! It was a null issue.


Thanks a lot.

Do I reward points or anything on this forum?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top