hey guys!
I have a report which contains 10 labels named label1, label2.., label10.
I need to go in each of them to set the caption property depending on the fields selected on a form.
I am using a do..while loop which sets the caption of a label to be the string contained in the variable strName. Something like this:
Reports!MyReport.Label1.Caption = strName
How can I change the number so that in each loop I will access the next label?
I have a report which contains 10 labels named label1, label2.., label10.
I need to go in each of them to set the caption property depending on the fields selected on a form.
I am using a do..while loop which sets the caption of a label to be the string contained in the variable strName. Something like this:
Reports!MyReport.Label1.Caption = strName
How can I change the number so that in each loop I will access the next label?