megatronixs
Registered User.
- Local time
- Today, 09:33
- Joined
- Aug 17, 2012
- Messages
- 719
Hi all,
I'm looking for a solution to change the name of a label depending on wich button was selected.
I have a main form "frm_Main_Review" and inside there is a subform called "frm_QC_Main" I have 5 dates fields and next to those date fields I have 5 buttons to open 1 form (it will be the same form everytime) I called it "frm_QC_Insert" (inside the table from it, there are 5 diffrent date fields)
what I need to do is to change the title label in the "frm_QC_Insert" depending if button 1, button 2, it should change the caption to "QC Date 1" or QC Date 2"
Any way to do this?
I tried this, but no luck:
Greetings.
I'm looking for a solution to change the name of a label depending on wich button was selected.
I have a main form "frm_Main_Review" and inside there is a subform called "frm_QC_Main" I have 5 dates fields and next to those date fields I have 5 buttons to open 1 form (it will be the same form everytime) I called it "frm_QC_Insert" (inside the table from it, there are 5 diffrent date fields)
what I need to do is to change the title label in the "frm_QC_Insert" depending if button 1, button 2, it should change the caption to "QC Date 1" or QC Date 2"
Any way to do this?
I tried this, but no luck:
Code:
Me!frm_Main_Review!frm_QC_Main!frm_QC_Insert!Label401.Caption = "QC Date 1"
Greetings.