>>>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.
That's what I like about objects - they're perfect to keep the references in themselves, then in the end commit a seppuku and lose them, no extra coding needed.