Changing Labels on Subforms

J

Jeff

What is the procedure to change the caption of a label that exists on a
subform?
I want to do this from a button on the main form.
 
W

Wayne Morgan

Me.sfmNameOfSubformControl.Form.lblNameOfLabel.Caption = "text"

sfmNameOfSubformControl is the name of the control on the main form that holds the
subform, not the name of the subform itself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top