>>
>>I stuck the cursor back in temporarily while I was testing some things, and I tried putting the ENDFOR right after the COPYTO, after the CLOSETABLE, and where it currently is in the code above.
>
>Well, I'm stumped. The CloseTable() is after the ENDFOR so it should not get hit until after the second time through the loop. Can you put a wait window or messagebox in the for loop after you've assigned the value to m.bn displaying what m.bn is and see if that displays twice? If not, then I'm afraid there must be something that WestWind does to cause the loop to exit that I am unable to think of.
Ok, I just tried sticking a messagebox after this line:
m.bn = PADL(GetWordNum(m.bnin, i, ","),7,"0")
I only get the first number I put in and then it just gives me my export message.
I do appreciate all the help. I'll check out James' suggestions next.