Yep, see event firing sequence in help to find out what events are invoked when a form closes.
>I have a form with a table in the forms data environment.
>
>When the form is closed by the user I would like to pack the table.
>
>I tried placing some code in the destroy event of the form, but the form still seems to have the table open.
>
>Is there another event that fires after the tables are closed?
>
>Or should I force them to close in the destroy event.
>
>ie. in the destroy event
>
>select MyTable
>use
>use MyTable excl
>pack
>use
>
>tia
Ronald Suen
Epic Information Solutions Inc.
Ph: (780) 488-4418
Fax: (780) 488-0402