J
JoJo
Can someone please help me figure out why the horizontal lines are not
showing up in the subreport? Below is the code for vertical and horizontal
lines used in a report for a subreport that was put into a report. The
regular report is a one column report with the subreport being a two column
report. The vertical lines in the code of the report are showing up just
fine but for some reason there is only one horizontal line showing up in the
report header of the report (not subreport). Does this make sense? Here is
the code.
Me.Line (0.0001 * 1440, 3449)-Step(0, 3350)
Me.Line (0.6856 * 1440, 3449)-Step(0, 3350)
Me.Line (1.2 * 1440, 3449)-Step(0, 3350)
Me.Line (2.9 * 1440, 3449)-Step(0, 3610)
Me.Line (3.58 * 1440, 3449)-Step(0, 3610)
Me.Line (3.85 * 1440, 3449)-Step(0, 3350)
Me.Line (4.6 * 1440, 3449)-Step(0, 3350)
Me.Line (5.1144 * 1440, 3449)-Step(0, 3350)
Me.Line (6.8144 * 1440, 3449)-Step(0, 3610)
Me.Line (7.51 * 1440, 3449)-Step(0, 3610)
Dim intNumLines As Integer
Dim intLineNum As Integer
Dim intDetailHeight As Integer
Dim intPageHeadHeight As Integer
On Error GoTo Report_Page_Error
intNumLines = 14
intDetailHeight = Me.Section(acDetail).Height
intPageHeadHeight = Me.Section(3).Height
For intLineNum = 1 To intNumLines
Me.CurrentY = (intLineNum) * intDetailHeight + intPageHeadHeight
Me.CurrentX = 0
Me.Line (0, intPageHeadHeight + intLineNum * intDetailHeight)- _
Step(Me.Width, 0)
Next
On Error GoTo 0
Exit Sub
Report_Page_Error:
Select Case Err
Case 2462 'no page header
intPageHeadHeight = 0
Resume Next
End Select
MsgBox "Error" & Err.Number & "(" & Err.Description & _
")in procedure Report_Page of VBA Document Report_Report1"
Thank you ever so much!
showing up in the subreport? Below is the code for vertical and horizontal
lines used in a report for a subreport that was put into a report. The
regular report is a one column report with the subreport being a two column
report. The vertical lines in the code of the report are showing up just
fine but for some reason there is only one horizontal line showing up in the
report header of the report (not subreport). Does this make sense? Here is
the code.
Me.Line (0.0001 * 1440, 3449)-Step(0, 3350)
Me.Line (0.6856 * 1440, 3449)-Step(0, 3350)
Me.Line (1.2 * 1440, 3449)-Step(0, 3350)
Me.Line (2.9 * 1440, 3449)-Step(0, 3610)
Me.Line (3.58 * 1440, 3449)-Step(0, 3610)
Me.Line (3.85 * 1440, 3449)-Step(0, 3350)
Me.Line (4.6 * 1440, 3449)-Step(0, 3350)
Me.Line (5.1144 * 1440, 3449)-Step(0, 3350)
Me.Line (6.8144 * 1440, 3449)-Step(0, 3610)
Me.Line (7.51 * 1440, 3449)-Step(0, 3610)
Dim intNumLines As Integer
Dim intLineNum As Integer
Dim intDetailHeight As Integer
Dim intPageHeadHeight As Integer
On Error GoTo Report_Page_Error
intNumLines = 14
intDetailHeight = Me.Section(acDetail).Height
intPageHeadHeight = Me.Section(3).Height
For intLineNum = 1 To intNumLines
Me.CurrentY = (intLineNum) * intDetailHeight + intPageHeadHeight
Me.CurrentX = 0
Me.Line (0, intPageHeadHeight + intLineNum * intDetailHeight)- _
Step(Me.Width, 0)
Next
On Error GoTo 0
Exit Sub
Report_Page_Error:
Select Case Err
Case 2462 'no page header
intPageHeadHeight = 0
Resume Next
End Select
MsgBox "Error" & Err.Number & "(" & Err.Description & _
")in procedure Report_Page of VBA Document Report_Report1"
Thank you ever so much!