Link to home
Start Free TrialLog in
Avatar of pinkstonm
pinkstonm

asked on

Loop Logic

I need a little advice on a logic loop.  I am readin records with numeric fields which I am totalling on each time the field called sitename changes.


How would some sample code to loop through this look

fields

sitenum ---- key and when it changes I want to write a line that totals the following fields

max1
ahc1
ras1
ASKER CERTIFIED SOLUTION
Avatar of hongjun
hongjun
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pinkstonm
pinkstonm

ASKER

What happens if the last records sitnum is the same as to the second to last?
can you provide an example so it will be clearer.