T
TimJames
I am generating an Access report based upon an existing hard copy form. The
form requires a grid to be drawn starting in the detail section and
continuing down the rest of the page, however not every "box" in the grid
will have information in it. Each row needs to have 7 "boxes" representing
each field of information. My field names correspond with my table names and
are:
BoxNumber
NameOfRecord
ScheduleType
ItemNumber
DateRanges
DestroyDate
Location
Currently I have tried the following code:
Private Sub Report_Page()
Dim intRows As Integer
Dim intLoop As Integer
Dim intTopMargin As Integer
Dim intDetailHeight As Integer
intRows = 18
intDetailHeight = Me.Section(0).Height
intTopMargin = 360
For intLoop = 10 To intRows
Me.Print intLoop + 1
Me.Line (0, intLoop * intDetailHeight +
intTopMargin)-Step(Me.Width, intDetailHeight), , B
Next
End Sub
but it does not draw the vertical lines that I need around each box, or
field, of information. other problems are that it goes beyond the width of
my page and includes the row numbers.
I need this grid to appear when previewed and printed. This database was
originally created in Access 2003, but I am now using Access 2007.
Thank you for any help.
~Tim
form requires a grid to be drawn starting in the detail section and
continuing down the rest of the page, however not every "box" in the grid
will have information in it. Each row needs to have 7 "boxes" representing
each field of information. My field names correspond with my table names and
are:
BoxNumber
NameOfRecord
ScheduleType
ItemNumber
DateRanges
DestroyDate
Location
Currently I have tried the following code:
Private Sub Report_Page()
Dim intRows As Integer
Dim intLoop As Integer
Dim intTopMargin As Integer
Dim intDetailHeight As Integer
intRows = 18
intDetailHeight = Me.Section(0).Height
intTopMargin = 360
For intLoop = 10 To intRows
Me.Print intLoop + 1
Me.Line (0, intLoop * intDetailHeight +
intTopMargin)-Step(Me.Width, intDetailHeight), , B
Next
End Sub
but it does not draw the vertical lines that I need around each box, or
field, of information. other problems are that it goes beyond the width of
my page and includes the row numbers.
I need this grid to appear when previewed and printed. This database was
originally created in Access 2003, but I am now using Access 2007.
Thank you for any help.
~Tim