>>Ali, Don't forget to to set this property to NULL before you close the form. If you forget (like me in this code) the form wouldn't close.
>>Thanks Nadya.
>
>Reset to NULL is not necessary.
Just in case and as I said toNadya it prevents some wrong results if you forget to set it to form.ActiveControl in When event of the control
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.