>That isn't the complete code... I have stuff going on between those and I just copied and pasted the sections I felt necessary.
>
>What does the CLOSE DATA ALL command do?
It's short for Close database all, used to close all tables. It is often a handy command, but can not be used always. Anyway, you posted some redundant code. But I don't quite understand your problem, can you explain it better?