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

Set Counter

Status
Not open for further replies.
Mar 19, 2003
57
0
0
US
Crystal 9

Need a counter variable to start at 902 instead of 0. Does anyone know how to do this?

My formula looks like this

WhileprintingRecords;
NumberVar counter;

If not isnull(GroupName ({SERVICE.START_TIME}, "by hour")) Then counter := counter + 1
 
In the report header place a formula containing:

WhileprintingRecords;
NumberVar counter:=902;

Now you can reference the variable later in your formula with it already preset to 902.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top