reference a label?

fatboy95

Registered User.
Local time
Today, 04:01
Joined
Apr 2, 2002
Messages
43
I have a label I want to change on a subform but ant it to change when data on my main form changes.

frmMain
frmMainSub
and the label name would be label1 which is on frmMainSub.

How do a I reference label1?

Thanks
 
If from the main form:-
Me.frmMainSub.Form!label1.Caption = "a new caption"


If from some other forms, it requires the full path:-
Forms!frmMain!frmMainSub.Form!label1.Caption = "a new caption"
 
Last edited:
thanks that was it
 

Users who are viewing this thread

Back
Top Bottom