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

While ... Do

Status
Not open for further replies.

Roni1

Programmer
Dec 4, 2001
36
0
0
US
Does anybody have an example on how to use the "While ... Do" operator?

I have a count of 100, and for each record I need to capture it in a variable, and then move to the next record and capture it to another variable, and keep on doing that until I get to the record number 100.
 
I don't understand what you are trying to do, but Do While works within a record not across records.

You can use the RecordNumber special field to test which record you are on and you can use an array to collect multiple values together.
 
try to create a formula like;

shared numbervar namerecord:=namerecord+sum({table})

if these 100 records are in subreport then you have to create this formula
in subreport.


rgds,MHP
 
You could also do a running total, with a formual to determine whether it adds or not.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top