G
Guest
In Access 2003, I have a report with 14 columns going across the top of each
page. There are 3 textboxes under 3 of the columns that can grow and shrink
because data there is of varying length (memo format). There is a horizontal
line under each row and in order to create column lines for each column, the
code I inputed is:
Private Sub Report_Page()
Dim intLineCount As Integer
Dim intColumnWidth As Integer
Dim intReportHeight As Integer
Dim intLineTop As Integer
intLineTop = 900
intReportHeight = (9 * 1150)
intColumnWidth = 1050
For intLineCount = 0 To 15
Me.Line (intLineCount * intColumnWidth, intLineTop)-Step (0, intReportHeight)
Next
Me.Line (0, intLineTop)-Step(15 * intColumnWidth, intReportHeight), , B
End Sub
Is there any way to make the column widths variable (i.e., the columns with
very little data will shrink and the columns with large amounts of data will
expand)?
Any help would be greatly appreciated.
page. There are 3 textboxes under 3 of the columns that can grow and shrink
because data there is of varying length (memo format). There is a horizontal
line under each row and in order to create column lines for each column, the
code I inputed is:
Private Sub Report_Page()
Dim intLineCount As Integer
Dim intColumnWidth As Integer
Dim intReportHeight As Integer
Dim intLineTop As Integer
intLineTop = 900
intReportHeight = (9 * 1150)
intColumnWidth = 1050
For intLineCount = 0 To 15
Me.Line (intLineCount * intColumnWidth, intLineTop)-Step (0, intReportHeight)
Next
Me.Line (0, intLineTop)-Step(15 * intColumnWidth, intReportHeight), , B
End Sub
Is there any way to make the column widths variable (i.e., the columns with
very little data will shrink and the columns with large amounts of data will
expand)?
Any help would be greatly appreciated.