Stuart said:
I would like to print a 1 dimensional array, which
contains simple text. The size of the array is
potentially very large, so putting it all into a single
label will not work. Any suggestions?
As long as you're not trying to use sorting and grouping,
let's try an unbound report for this. Add a textbox to the
detail section and make the section only as tall as the text
box.
The logic to control this kind of report is to initialize
the array (or a recordset) in the report's Open event using
module level declarations.
Dim thearray(xx) As whatever
Dim lngLoopCounter As Long
Sub Report_Open(
' initialize the array values and sort them if needed
. . .
lngLoopCounter = 0
End Sub
Sub Detail_Format(
Me.textbox = thearray(lngLoopCounter)
lngLoopCounter = lngLoopCounter + 1
If lngLoopCounter <= UBound(thearray)
Me.NextRecord = False
End If
End Sub
If there's any cleanup to do, do it in the report's Close
event.