I'm trying to suppress printing out duplicate records in the detail section of my report.
I want to say something like this pseudocode:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
When the report detail formats, hold the value of txtMyText.
Then next time the report detail formats compare then new
value of txtMyText to the old value of txtMyText.
If they are the same, then don't print that line
End Sub
Reading thru some of the other postings, I think that you probably use some combination of this event along with PrintSection, MoveLayout, NextRecord properties/methods, but what is screwing me up is how to do the comparison since everytime there is a new record, the event resets all your variables?
Ah say, there's somethin' a little "eeeeeeee" 'bout a boy who don't like basbawl...
I want to say something like this pseudocode:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
When the report detail formats, hold the value of txtMyText.
Then next time the report detail formats compare then new
value of txtMyText to the old value of txtMyText.
If they are the same, then don't print that line
End Sub
Reading thru some of the other postings, I think that you probably use some combination of this event along with PrintSection, MoveLayout, NextRecord properties/methods, but what is screwing me up is how to do the comparison since everytime there is a new record, the event resets all your variables?
Ah say, there's somethin' a little "eeeeeeee" 'bout a boy who don't like basbawl...