>Jim, How can I put the enable command in the release form. The Command button is on the main form where I call secondary form. Do you mean to say that enable command should be in the secondary form. If so, how can I set the path of the command button of the main form.
>
>Please suggest !
Saif,
Personally, I like Martin's approach better. However, if the calling form is named 'Form1' and the Command button is named cmdForm2,
Form1.cmdForm2.Enabled = .T.
should work.
Regards,
Jim