>How do you add an independant form
>to a formset programically?
>
>CommandButton on Form1
> DO FORM form2
>
>Will this guarantee that "form2"
>is always in "Formset1".
>
>'Form2' is NOT a class.
You can "pseudo-add" a form to a formset at runtime:
1) in formset declare custom property form2
2) from somewhere in formset, issue: do form form2 name thisformset.form2 linked
It's not truly in the set, but it can reference both ways, use formset's custom props/methods, and will release when formset is released.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.