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

Help with Functions (new user)

Status
Not open for further replies.

camidon

Programmer
May 9, 2000
268
US
I'm attempting to create a variable that will allow me to perform some calculations on it later, but I want to zero out this variable at the beginning of each group. Where do I need to place my formula to zero out the variable? I tried this in the suppress section of the group:

whileprintingrecords;
numbervar linenumber:=0;

But it keeps telling me that my result must be boolean. I'm using CE 8.5.

Thanks,

Chris
 
Create a formula (Insert->Field Object->Right click formulas and select new).

Then place the formula in the group header.

To increment it, create another formula in the details section:

whileprintingrecords;
numbervar linenumber:=linenumber+1

To display the results at the group footer, use another formula:

whileprintingrecords;
numbervar linenumber

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top