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

Adding two NumberVars Crystal 10

Status
Not open for further replies.

jrball

Technical User
Jul 19, 2005
28
US
I have a CR 10 report where I have created two NumberVars and need to add them together and can't figure out the code to do it. Here's what I have so far:

First NumberVar Formula Q1 -
WhilePrintingRecords;
If {GetSurveyReportValues;1.QuestionId} = 970 then
Shared NumberVar SE1 := Sum ({GetSurveyReportValues;1.ScorePoint}, {GetSurveyReportValues;1.QuestionText})
else
0

Second NumberVar Formula Q2 -
WhilePrintingRecords;
If {GetSurveyReportValues;1.QuestionId} = 971 then
Shared NumberVar SE2 :=Sum ({GetSurveyReportValues;1.ScorePoint},{GetSurveyReportValues;1.QuestionText})
else
0

I need to add the two SE1 and SE2 NumberVars together and assign that value to another NumberVar SE3.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top