Safari Member Local time Today, 08:58 Joined Jun 14, 2021 Messages 95 May 5, 2022 #1 I HAVE DATASHEET AS SUBFORM .. I WANT TO CHANGE LABEL CAPTION ON OPEN EVENT I USED THIS CODE : ME.LABEL1.CAPTION="iTEM NAME" BUT NOT WORKING WHATS THE PROBLEM ? THANKS
I HAVE DATASHEET AS SUBFORM .. I WANT TO CHANGE LABEL CAPTION ON OPEN EVENT I USED THIS CODE : ME.LABEL1.CAPTION="iTEM NAME" BUT NOT WORKING WHATS THE PROBLEM ? THANKS
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 14:58 Joined May 7, 2009 Messages 20,681 May 5, 2022 #2 on Load Event of the datasheet subform: private sub form_load() Me!theFieldName.Controls(0).Caption = "Item Name" end sub
on Load Event of the datasheet subform: private sub form_load() Me!theFieldName.Controls(0).Caption = "Item Name" end sub
Safari Member Local time Today, 08:58 Joined Jun 14, 2021 Messages 95 May 5, 2022 #3 arnelgp said: on Load Event of the datasheet subform: private sub form_load() Me!theFieldName.Controls(0).Caption = "Item Name" end sub Click to expand... still not working Attachments Untitled.png 2.5 KB · Views: 235
arnelgp said: on Load Event of the datasheet subform: private sub form_load() Me!theFieldName.Controls(0).Caption = "Item Name" end sub Click to expand... still not working
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 14:58 Joined May 7, 2009 Messages 20,681 May 5, 2022 #4 what version of Access do you have? is the code you showed from the Subform's Load event? did you check the Name of the Textbox of the subform?
what version of Access do you have? is the code you showed from the Subform's Load event? did you check the Name of the Textbox of the subform?
Safari Member Local time Today, 08:58 Joined Jun 14, 2021 Messages 95 May 5, 2022 #5 arnelgp said: what version of Access do you have? is the code you showed from the Subform's Load event? Click to expand... 2010 yes from subform
arnelgp said: what version of Access do you have? is the code you showed from the Subform's Load event? Click to expand... 2010 yes from subform
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 14:58 Joined May 7, 2009 Messages 20,681 May 5, 2022 #6 it will not work in 2010.
Safari Member Local time Today, 08:58 Joined Jun 14, 2021 Messages 95 May 5, 2022 #7 arnelgp said: it will not work in 2010. Click to expand... how can i solve it ? is it anther way ?
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 14:58 Joined May 7, 2009 Messages 20,681 May 5, 2022 #8 try to move your code (post#1) to the Load Event of the subform (not on the Open event).
Safari Member Local time Today, 08:58 Joined Jun 14, 2021 Messages 95 May 5, 2022 #9 arnelgp said: try to move your code (post#1) to the Load Event of the subform (not on the Open event). Click to expand... ok
arnelgp said: try to move your code (post#1) to the Load Event of the subform (not on the Open event). Click to expand... ok
Safari Member Local time Today, 08:58 Joined Jun 14, 2021 Messages 95 May 5, 2022 #10 some one inform me that : 'Create child label control for text box. Set ctlLabel = CreateControl(frm.Name, acLabel, , ctlText.Name, _ "NewLabel", intLabelX, intLabelY) but i cant understated it can you explain it
some one inform me that : 'Create child label control for text box. Set ctlLabel = CreateControl(frm.Name, acLabel, , ctlText.Name, _ "NewLabel", intLabelX, intLabelY) but i cant understated it can you explain it
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 14:58 Joined May 7, 2009 Messages 20,681 May 5, 2022 #11 Safari said: some one inform me that : Click to expand... if you already have the Label on the datasheet and only what to change the Caption, you do not need to create a Label control.
Safari said: some one inform me that : Click to expand... if you already have the Label on the datasheet and only what to change the Caption, you do not need to create a Label control.
G GK in the UK Registered User. Local time Today, 06:58 Joined Dec 20, 2017 Messages 281 May 5, 2022 #12 Do you mean you want to change the datasheet column headings? This works for me (A2016) where text2 is a datasheet textbox. No labels on the form just the text boxes. Me.Text2.Properties("DatasheetCaption") = "SomeText"
Do you mean you want to change the datasheet column headings? This works for me (A2016) where text2 is a datasheet textbox. No labels on the form just the text boxes. Me.Text2.Properties("DatasheetCaption") = "SomeText"
arnelgp ..forever waiting... waiting for jellybean! Local time Today, 14:58 Joined May 7, 2009 Messages 20,681 May 5, 2022 #13 post #12 will also work with a2010.