Hi All,
I want to rename column header name in subform during run time, how I will do this?
form type = Datasheet
Regards,
Selvakumar R
Hi All,
I want to rename column header name in subform during run time, how I will do this?
form type = Datasheet
Regards,
Selvakumar R
I think you need to change the the "Caption" property of the label control that is attached to the control that is used for the column.
For more help, we will need to know the name of the controls and what you want the header name changed to. Why does this need to be done at runtime?
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick
We have different module in application, for example column "State" in one module will be "State" and in other module like "Garaging State"/"Predominant State" etc... So based on the condition I need to change its header name during run time. Already I tried with "Caption", it is throwing error. Do you have any other idea how to do this?
[SubFormName].Form.State.Caption= "Garaging State"
Thanks,
Selvakumar R
Try:
Me.[SubFormName].Form.LabelName.Caption= "Garaging State"
If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
Bob Fitzpatrick
Thanks alot Bob, it is working.