S
ScardyBob
I'm having trouble referring to the Caption property of a label
attached to a subform control. Essentially what I am trying to do is
search a Yes/No Field in a subform and if no Yes values are found, a
message box appears informing the user which subform needs to have at
least one Yes selected. I've got the search part working, but I can't
figure out how to refer to the caption of the label attached to the
subform control.
I've tried many different things including,
Forms!MainForm!SubFormControl.Controls(0).Caption
which usually works for other types of controls (textbox, combobox,
etc.), but in this case it refers to the first control in the subform,
not the subform control itself.
Thanks in Advance,
Mike
attached to a subform control. Essentially what I am trying to do is
search a Yes/No Field in a subform and if no Yes values are found, a
message box appears informing the user which subform needs to have at
least one Yes selected. I've got the search part working, but I can't
figure out how to refer to the caption of the label attached to the
subform control.
I've tried many different things including,
Forms!MainForm!SubFormControl.Controls(0).Caption
which usually works for other types of controls (textbox, combobox,
etc.), but in this case it refers to the first control in the subform,
not the subform control itself.
Thanks in Advance,
Mike