Change Caption on Another Form with VBA

bstice

Registered User.
Local time
Today, 03:26
Joined
Jul 16, 2008
Messages
55
Hello all,

I am interested in learning the VBA code that I need to write to change the caption of a label on another form. This is how I would change it on with VBA tied to a form - how would I change it on another form? THanks again.

me.label.caption = "Example"

THanks

Brennan
 
It would be

Forms!YourOtherFormName.YourLabelName.Caption = "Example"
 
Forms!formName.labelName.caption = "Whatever"
 
Or

Forms("YourFormName")("YourConrtolName").Caption = "Your Caption"
 

Users who are viewing this thread

Back
Top Bottom