Dim varText As Variant
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Text = varText
End Sub
Private Sub Report_Open(Cancel As Integer)
Dim strLine As String
varText = Null
Open "C:\somewhere\something.txt" For Input As #1
Do Until EOF(1)
Line Input #1, strLine
varText = varText + vbCrLf & strLine
Loop
Close #1
End Sub
|