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!

Running total based on beginning parameter value

Status
Not open for further replies.

Corinne30

Programmer
Mar 24, 2011
18
US
I am trying to figure out the following:

My users need to be able to input a beginning number through a parameter and then number the rows in the detail section starting at that number. ie. if the beginning parameter number is 50 then the first row would be 50 , next 51 next 52 and so on. I have tried doing this with setting a parameter field and then writing a formula:

WhilePrintingRecords;

If {?InheritanceTaxNumber} = Previous({?InheritanceTaxNumber}) Then

NumberVar MyRunningTotal := tonumber({?InheritanceTaxNumber}) + 1;

MyRunningTotal;

All this does is incremate the parameter {?InheritanceTaxNumber} by 1 for every row.

Has anyone tried doing something similar to this and can give me some feedback?

Thanks in advance

Corinne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top