Hello Access gurus...
I have a subform that I initialize in different ways... I use a function to initialize the subform (a function because I on occassion I end up nesting subforms), but cannot figure out how to hand the result of the function back to the form.
.form is a read only string... so this does not work.
How can I hand my initialized subform back to the parent form? Or am I breaking good programming rules by trying to hand back and forth instances...
Thanks kindly!
I have a subform that I initialize in different ways... I use a function to initialize the subform (a function because I on occassion I end up nesting subforms), but cannot figure out how to hand the result of the function back to the form.
Code:
Dim frm As New Form_frmMainForm
Dim sfrm As Form_frmSubForm
Set sfrm = BuildSubform(frm.SubForm.Form, variousparameters)
Set frm.SubForm.Form = sfrm
.form is a read only string... so this does not work.
How can I hand my initialized subform back to the parent form? Or am I breaking good programming rules by trying to hand back and forth instances...
Thanks kindly!