I am trying to concatenate a integer that increases by one each time a loop runs to the end of two Me.txtBox's. I am not sure of the syntax to do this, and I couldn't find anything in help, any of the books I have, or any of these forums.
I know this is wrong, but here is what I have:
Do Until rst1.EOF
rst1.MoveNext
int1 = int1 + 1
Me.txtQuestionID & int1 = rst1![fldQuestionID]
Me.txtQuestion & int1 = rst1![fldQuestionTxt]
Loop
What it is doing is looping through a recordset and filling in text boxes on a form that are labeld txtQuestionID1, txtQuestionID2, etc. The number of questions is dynamic, so I am having to make it where it will fill in and make visible the necessary boxes bases on how many there actually are. Any ideas on the syntax? Thanks!
I know this is wrong, but here is what I have:
Do Until rst1.EOF
rst1.MoveNext
int1 = int1 + 1
Me.txtQuestionID & int1 = rst1![fldQuestionID]
Me.txtQuestion & int1 = rst1![fldQuestionTxt]
Loop
What it is doing is looping through a recordset and filling in text boxes on a form that are labeld txtQuestionID1, txtQuestionID2, etc. The number of questions is dynamic, so I am having to make it where it will fill in and make visible the necessary boxes bases on how many there actually are. Any ideas on the syntax? Thanks!