I have a text box called txtAttirubte1 and an update button in FormA. I want to update the label caption for all label name Attribute1_Lable in FormB and FormC with the WORD I type in the FormA text box, txtAttribute1. I have the following codes for the ON CLICK event of Update button on FormA.
Private Sub cmdUpdate_Click()
DoCmd.OpenForm "frm_FormB"
[Forms]![ frm_FormB]![Attribute1_Label].Caption = Me![txtAttirubte1].Value
DoCmd.Close acForm, frm_FormB, acSavePrompt
DoCmd.OpenForm "frm_FormC"
[Forms]![ frm_FormC]![Attribute1_Label].Caption = Me![txtAttirubte1].Value
DoCmd.Close acForm, frm_FormC, acSavePrompt
End Sub
However, it doesn’t work. Please help. Many thanks!
Webbi