Just to jump into this thread with a problem of my own....
Today I was writing essentially the same code
nTotList = thisform.lstOrders.Listcount
for n = nTotList to 1 skip -1
next
And the code skipped the entire for/next loop. I tried
a) hard coding the value of nTotList (it was correct)
b) changing the value of nTotList to 1 and 2
Finally I rewrote the code so I couldgo from n = 1 to nTotList. No problems.
I've repeated this on 2 different lists today. Any ideas? Obvious typos? Stupid errors?
TIA
Barbara
>But if you remove items in the middle (one of the givens) that order gets miessed up and you skip stuff, thats why Fred proposed running through backwards.