Hey folks, I've got a multi-purpose form that gets called from a bunch of other different forms, and it deals with data on those forms depending on which one called it. I currently have all of the calling forms calling this multi-purpose form by passing it Me.Name, and then in the multi-purpose form I use Select Case's to get data from the calling form. In the interest of code-reuse, and as compact a front-end to this database as possible, I would like to somehow set a reference to the calling form within ONE select-case in the form_load event...so I'd like to do something like this:
dim ParentForm as Form
Select Case OpenArgs
Case "Form1"
set ParentForm = Forms!Form1.Reference
Case "Form2"
set ParentForm = Forms!Form2.Reference
end select
Is there a way to get a reference from a form like that?
Thanks,
Sam.
dim ParentForm as Form
Select Case OpenArgs
Case "Form1"
set ParentForm = Forms!Form1.Reference
Case "Form2"
set ParentForm = Forms!Form2.Reference
end select
Is there a way to get a reference from a form like that?
Thanks,
Sam.