I have been using this line of code to dynamically update label captions for my database.
Forms(strFormID).Controls(strLabelID).Properties("Caption").Value = strlabelcaption
And I was curious if the same could be done for reports as well. I figured one way to est would to use the code below, but it didn't seem to work. Any pointers would be appriciated, thanks.
Reports(strReportName).Controls(strReportLabelID).Properties("Caption").Value = strlabelcaption
Forms(strFormID).Controls(strLabelID).Properties("Caption").Value = strlabelcaption
And I was curious if the same could be done for reports as well. I figured one way to est would to use the code below, but it didn't seem to work. Any pointers would be appriciated, thanks.
Reports(strReportName).Controls(strReportLabelID).Properties("Caption").Value = strlabelcaption