>Thank you! It worked!!!
>_SCREEN.ActiveForm.Parent.Toolbar.Cmd.Click
>
>Where can I find the disadvantages of Formsets in this list? With the modification to the code you suggested, it work really fine!!!
Can't find anything in the documents around here, and the search server is down, so I can only speak off the top of my head.
Simply put, formsets are complicated - you have the form, but it doesn't have the dataenvironment, the formset has it. The event firing sequence is also different when you have a formset, and since very few people are using them, if something goes wrong, you may waste more time fixing it because fewer people here can help you. Also, the modality of forms in the formset is overridden by the modality of the formset - if the formset is modal, so are all its forms. Can't mix them.
A more common approach is to have a pageframe. Since you have the formset only because of the toolbar, you can simply use a container class, and copy all the buttons to it from the toolbar, and drop the container on your form. Then you can remove the formset.
>Thanks again (this is my first e-mail to this group, and I am surprised how fast I can resolve my problems!!!)
We're always here :). Welcome to UT.