I have placed a subform on a main form.
The name of the subform on the mainform is subform1.
The source object object for subform is subFormDetails
Within subformDetails I have some code running.
How do I retrieve what the subform is called on the mainform using code. The return value I want is 'subform1'.
I seem to be able to return properties about objects within the subform, but what I want are properties about the instance of the subform within the main form. This is because I want to have a couple of the same subforms on the main form but with slightly different behaviour which is controlled via code.
Any ideas.
Thanks in advance
The name of the subform on the mainform is subform1.
The source object object for subform is subFormDetails
Within subformDetails I have some code running.
How do I retrieve what the subform is called on the mainform using code. The return value I want is 'subform1'.
I seem to be able to return properties about objects within the subform, but what I want are properties about the instance of the subform within the main form. This is because I want to have a couple of the same subforms on the main form but with slightly different behaviour which is controlled via code.
Any ideas.
Thanks in advance