Hi Everyone.
I'm having trouble in trying to refer to a control in a Report through a variable
So far I have attempted this:
(i = VBA variable, txb1, txb2 ... are report's controls)
None of these works.
Any ideas on how to do it correctly?
Much thanks, inso
I'm having trouble in trying to refer to a control in a Report through a variable
So far I have attempted this:
(i = VBA variable, txb1, txb2 ... are report's controls)
Code:
Me("txb"& i).Caption = "1"
Reports!MyReport("txb"& i).ControlSource = "field" & i
Reports!MyReport!Report("txb"& i).Visible = False
Any ideas on how to do it correctly?
Much thanks, inso