I have a bunch of fields with different names, same format as txtMat# where # starts from 1 and onwards (txtMat1, txtMat2,...)
I want to write a code that's something like
If Not IsNull (txtMat#)
where the # can be controlled by a variable which increments by 1 in a do-while loop.
How can I do that?
If my # variable is called fieldNum, how can I essentially have something like
If Not IsNull (txtMat + fieldNum) where the entire entity of the bracket refers to the actual field with the name "txtMat + fieldNum"?
Thanks!
I want to write a code that's something like
If Not IsNull (txtMat#)
where the # can be controlled by a variable which increments by 1 in a do-while loop.
How can I do that?
If my # variable is called fieldNum, how can I essentially have something like
If Not IsNull (txtMat + fieldNum) where the entire entity of the bracket refers to the actual field with the name "txtMat + fieldNum"?
Thanks!