Yea...I did that.
The client I work for is a little ....(you fill in the blank).
They want the report to look basically like a spreadsheet, but they only
want the Level 1 information to be displayed once on the report.
Example:
Tracking # | Description | Status | Corrective Action
_______________________________________________
|1 | Test1 | In Progress | Fix window |
| | | | Wash Car
|
| | | | Wash Dog
|
|______________________________________________|
|2 | Test2 | Completed | Paint Kitchen |
| | | | Dry Clothes
|
|__________|__________|____________|___________ |
I drew a line under each corrective action in the detail section and
placed
the other portion of the line in the Tracking number header. Since the two
lines aren't actually occuping the same space, the lines don't line up.
I thought by hiding the line periodically, I could accomplish what they
want.
bcap said:
Why don't you just group the report on Tracking Number, and have the line
(and only the line) in the group header (or the footer, if that works
better
for you)? Much easier than faffing around with code.
Thanks!!!
That works exactly how I stated it.
I may have to re-think the logic behind this.
What I really need is a way to only draw the line when the Tracking
Number
value changes or said differently...only when it is the last record for
the
same Tracking Number.
:
Something like this I think:
Option Compare Database
Option Explicit
Dim mstrPrevTrackNumber As String
Private Sub Detail_Format(Cancel As Integer, FormatCount As
Integer)
Line60.Visible = ([Tracking Number] <> mstrPrevTrackNumber)
End Sub
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
mstrPrevTrackNumber = [Tracking Number]
End Sub
Please note, I have assumed that [Tracking Number] is a string. You
will
need to change the code slightly if it's numeric.
I have a report which have set several values to "Hide Duplicates".
I have line under each row of data. I wish to hide the line if the
value
in
the previous record is repeated.
I plan on using the "On Format" for the report section to control
when
the
line is displayed using "Visible".
I have very limited experience with VB. How do I write in code the
command
that says, "If [Tracking Number] is equal to previous [Tracking
Number]
then
Line60.Visible=False
Else
Line60.Visible=True