K
kentg
How do I "build" the name of an ASP control in the VB Code behind? I
would like to cycle through several comboboxes using a loop.
(cboReport1, cboReport2, cboReport3, etc.)
ie. in MS-Access I can use the following code to reference a combobox
named cboReport6 and set it's value to 1:
strForm = MyForm
strControlName = "cboReport"
intCount = 6
Forms(strForm).Controls(strControlName & intCount).Value = 1
Thanks.
would like to cycle through several comboboxes using a loop.
(cboReport1, cboReport2, cboReport3, etc.)
ie. in MS-Access I can use the following code to reference a combobox
named cboReport6 and set it's value to 1:
strForm = MyForm
strControlName = "cboReport"
intCount = 6
Forms(strForm).Controls(strControlName & intCount).Value = 1
Thanks.