accessisnew
Technical User
I have a form with rows of data that I want to process one field at a time. When I built the form each field is assigned a sequential "Textxx" number e.g. Text1, Text2, Text3, etc. The form and fields are not bound and the form is populated by running a VBA module that retrieves the data, populates the fields, and after displaying the form, there will be updates performed based on user changes.
I can process each field by using the "Textxx" name which means using the same code and changing the "xx" resulting in long repetitive code. I really want to use a loop to process all the fields so I don't have a lot of repeated code (I know, cut and paste, but I want to be more efficient).
A sample of the form layout:
Text1 Text2 Text3
Text4 Text5 Text6
Text7 Text8 Text9
Text10 ...
.
.
.
I've tried Using "Text" & 1 and it doesn't work. I read two other threads that, to me, refer to a similiar situation but nothing I've tried works.
Help please.
I can process each field by using the "Textxx" name which means using the same code and changing the "xx" resulting in long repetitive code. I really want to use a loop to process all the fields so I don't have a lot of repeated code (I know, cut and paste, but I want to be more efficient).
A sample of the form layout:
Text1 Text2 Text3
Text4 Text5 Text6
Text7 Text8 Text9
Text10 ...
.
.
.
I've tried Using "Text" & 1 and it doesn't work. I read two other threads that, to me, refer to a similiar situation but nothing I've tried works.
Help please.