>>Naomi,
>>I am running the form from within the prg but at the very beginning. No tables are open before the form is loaded. All tables are opened from menu selections in the form.
>
>Look at the code in FAQ #31943 - just instantiate that as a local object, and when it goes out of scope, it will close anything that was opened after it was created.
Dragan,
years ago back in the dark days of DOS we wrote a procedure to do just that. We still use it but it requires a local array sent to the procedure by reference and both Start and End procedure calls. I think we will be phasing it out and using your method as it sure looks easy.
Thanks,
John.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn