Posted 4 August 2017, 2:45 pm ESTOK, i have a report where i have setup 10 labels in the PageHeader section. Now these headers will be populated from a grid. But depending on some other criteria not all the labels will be populated.
The labels have been named lbl1, lbl2, lbl 3 so on till lbl10
I am trying to write some code that will populate only certain labels.
So is there a way to cycle through the labels and say like
lbl & myCount = frmRev.TDBGrid1.Columns(myCount - 1).Caption
Here myCount will be a number that will represent which column's data i am looking for. Like in the case above, i could have been populating lbl3 or lbl9 depending on what the myCount value was.
So my question is how do i get the left part of the code to work...that is where i am having trouble....THANKS A BUNCH!!!!