Hi, as a beginner in VBA and Access I created a table with 6 fields named:
Lid_Name_01
Lid_Name_02
.......
Lid_Name_06
I also created a new function in a module to process the table.
I wrote code to process the 6 fields indivually but it must be possible to do this in a loop.
My statements lookes like:
In1![Lid_Name_01] = <new value>
In1![Lid_Name_02] = <new value>
...............
In1![Lid_Name_06] = <new value>
Now I want to create a loop where the last digit of the fieldname (1-6) must be substituted by a variable. Like:
For iCount = 1 to 6
In1![Lid_Name_0<value of iCount>] = <new value>
Next iCount
I tried several things, but without success so far.
Who can help me solve this problem?