Variable names

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all
If I use a combobox can I then use the value to make some test boxes visible
At the moment I have
Dim stdstring as sting
Dim i as integer
i = Me!Combobox.value
for count = 1 to i
stdstring = "Me!Text" & i &".visible"
stdstring = true ' gives the result that the sting just = true
next

What I really want that according to the value of the combobox is the number
of text fields that are visible.

Thanks
 
Murray said:
If I use a combobox can I then use the value to make some test boxes visible
At the moment I have
Dim stdstring as sting
Dim i as integer
i = Me!Combobox.value
for count = 1 to i
stdstring = "Me!Text" & i &".visible"
stdstring = true ' gives the result that the sting just = true
next

What I really want that according to the value of the combobox is the number
of text fields that are visible.


Use this kind of sybtax:

for count = 1 to i
Me("Text" & i).Visible = true
next
 
Back
Top