G
Guest
Hi
I have a common routine which is always called on the form open event. This
function is passed a parameter of (me.name).
The function itself interrogated the Forms collection and sets various
controls as desired.
My problem is where I have a sub form within a main form, when the main form
is loaded, it invokes the open of the sub form (which in turn activates the
open event), the value being passed over to the function is the name of the
sub form but this form is not in the forms collection (only the main form
is), which causes the finction to fail
Is there any way round this?
Many Thanks
Chris
I have a common routine which is always called on the form open event. This
function is passed a parameter of (me.name).
The function itself interrogated the Forms collection and sets various
controls as desired.
My problem is where I have a sub form within a main form, when the main form
is loaded, it invokes the open of the sub form (which in turn activates the
open event), the value being passed over to the function is the name of the
sub form but this form is not in the forms collection (only the main form
is), which causes the finction to fail
Is there any way round this?
Many Thanks
Chris