Jason said:
I have added horizontal and verticle lines to a report in
order to get it to appear as a table when it is printed. I
need that "table" to continue to the end of the page even
if there are no records to fill the "cells" of that table.
Is this possible.
Another way to do what you asked is to use the section's
Format event to cause the section to be printed multiple
times.
In order to know when the format event is processing the
last record, you need to add a text box named
txtTotalDetails to the report (or group) header with the
expression =Count(*)
Next add a text box named txtCountDetail to the detail
section, set its control source expression to =1 and
RunningSum to Over All (of Over Group).
With that in place, you can use code like the following air
code in the detail section's Format event:
Dim intExtra As Integer
Sub Detail_Format( . . .
If txtCountDetail >= txtTotalDetails Then
If Me.Top < 9 * 1440 Then 'fit on page?
If intExtra = 1 Then
'first blank row
Me.txtbox1.Visible = False
Me.txtbox2.Visible = False
. . .
End If
intExtra = intExtra + 1
Me.NextRecord = False
Else
' last row on page
intExtra = 0
End If
Else
' process normal details here
End If
End Sub