Hi all,
Probably simple question, but Im stuck!
I have a subform on a main form wich is basically a list of parts taken from table "parts", there are 15 text boxes called "parts1","parts2", etc with link to the data in the table.
I want to set a for..next to examine these, if they are blank, then I would like to make the relevent text box invisible. If I put "parts1.visible=false" then no problem of course, BUT i want to use a variable instead of typing "part1","part2" etc
i.e.
for x = 1 to 15
tmp = "parts" & x
if tmp.value = null then tmp.visible=false
next x
now the above doesnt work as x is a value rather than a text box, if that makes sense??
TIA
CALV
Probably simple question, but Im stuck!
I have a subform on a main form wich is basically a list of parts taken from table "parts", there are 15 text boxes called "parts1","parts2", etc with link to the data in the table.
I want to set a for..next to examine these, if they are blank, then I would like to make the relevent text box invisible. If I put "parts1.visible=false" then no problem of course, BUT i want to use a variable instead of typing "part1","part2" etc
i.e.
for x = 1 to 15
tmp = "parts" & x
if tmp.value = null then tmp.visible=false
next x
now the above doesnt work as x is a value rather than a text box, if that makes sense??
TIA
CALV