I want to acces a number of text controls on a form in a for next loop
Each control is delimited by a number eg txtAdd1, txtAdd2 etc
I was hoping a loop similar to
for lnCnt = 1 to 3
lcControlName = "txtAdd"+transform(lnCnt)
thisform.controls(lcControlName).value = lnCnt
next
obviously this does not work but what would?
many thanks
Paul
Each control is delimited by a number eg txtAdd1, txtAdd2 etc
I was hoping a loop similar to
for lnCnt = 1 to 3
lcControlName = "txtAdd"+transform(lnCnt)
thisform.controls(lcControlName).value = lnCnt
next
obviously this does not work but what would?
many thanks
Paul