B
BethHill
Hello,
I have the following code, which produces multiple columns in the
group_footer section. (The detail section is not visible.)
Do Until rs.EOF 'Do this procedure until the End of File is reached.
intLength = 0
stResults = ""
Do Until Len(stResults) >= 85
'rs.MoveFirst
intLength = Len(Requirement)
Do While intLength <= 35
stResults = stResults & Requirement & " "
intLength = Len(stResults)
'rs.MoveNext
Loop
text0.Value = stResults
'intLength = 0
rs.MoveNext
If rs.EOF Then Exit Do
Loop 'The text box is full
Loop 'End of File
The output is 6 columns, which is what I want, but repeats the last record
in the recordset instead of each record. Example:
ABC123 ABC123 ABC123 ABC123 ABC123......
I want it to appear like the following:
ABC123 DEF456 GHI789 JKL101 MNO123......
What am I doing wrong?
I have the following code, which produces multiple columns in the
group_footer section. (The detail section is not visible.)
Do Until rs.EOF 'Do this procedure until the End of File is reached.
intLength = 0
stResults = ""
Do Until Len(stResults) >= 85
'rs.MoveFirst
intLength = Len(Requirement)
Do While intLength <= 35
stResults = stResults & Requirement & " "
intLength = Len(stResults)
'rs.MoveNext
Loop
text0.Value = stResults
'intLength = 0
rs.MoveNext
If rs.EOF Then Exit Do
Loop 'The text box is full
Loop 'End of File
The output is 6 columns, which is what I want, but repeats the last record
in the recordset instead of each record. Example:
ABC123 ABC123 ABC123 ABC123 ABC123......
I want it to appear like the following:
ABC123 DEF456 GHI789 JKL101 MNO123......
What am I doing wrong?