>Believe it or not this is how I solved the problem....hardly elegant....After I calculate lz I check to see if the totime is 12:15pm and then increment lz by 1. This by itself caused the following problem...The 12:30pm record was operated on....So I then check the ldCheckTime to see if it is < = the tTotTime and if so operate on record and if not don't. I am using VFP 8.0...I am going to see if the behavior exists in VPF7 and VFP6.
>
Hi Peter,
What would happens if you process records in backward order?
FOR lx=lz TO 1 STEP -1
--sb--