I have a Do While -> Loop in my code. I am using the loop counter to adjust objects inside the loop.
So in a simplified way:
Do While intCounter <= 4
'example 1
.Fields("PostCode") = Trim(rs1.Fields("ADDRESS" & intCounter))
'example 2
strOnHold & intCounter = Trim(rs1.Fields("ADDRESS" & intCounter))
Loop
The problem is with example 2. How do I use the intCounter to append the number to the end of the variable?
So in a simplified way:
Do While intCounter <= 4
'example 1
.Fields("PostCode") = Trim(rs1.Fields("ADDRESS" & intCounter))
'example 2
strOnHold & intCounter = Trim(rs1.Fields("ADDRESS" & intCounter))
Loop
The problem is with example 2. How do I use the intCounter to append the number to the end of the variable?