>My application consists of a main form with 2 grids on it. From a menu I pull up a modal form. I run a process from a button on the modal form which displays a thermometer form. When I click on the close button of the modal form, I call a table update in a transaction in the destroy event of the form. Initially I was getting a section of code from the grid form being fired when the end transaction is executed. So I placed a lockscreen around the call to the transaction routine. This moved the call to the grid form to when the lockscreen was turned off.
>
>Why would a section of code on the grid form be called from the modal form during the destroy event? How do I prevent this?
>
>Jason
This sounds similar to trying to run a report by clicking in a grid. The trick is to set the focus to some other control besides the grid when you call up your other form. You can then set the focus back to your grid when you return.