Setting properties of controls in report

johny678

Registered User.
Local time
Today, 15:28
Joined
Jun 8, 2005
Messages
28
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?
 
Sorry about that but my browser was not responding so I didn't realized that the message was sent.
 

Users who are viewing this thread

Back
Top Bottom