N
Nigel
I have a field in a report called FlightNo. Hide Duplicates=Yes. Thus if I
have four records with the same FlightNo the FlightNo field is only displayed
beside the first.
I want a horizontal line to appear above each occurance of FlightNo. I've
drawn it in the report. Name = FlightSeparatorLine. Visible = Yes. I've
added the following code to the Detail section but it doesn't seem to work.
The line is still appearing between every record. What am I doing wrong?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Start:
On Error GoTo FlightLineError:
If Me![FlightNo].IsVisible = True Then
Me![FlightSeparatorLine].Visible = True
Else
Me![FlightSeparatorLine].Visible = False
End If
GoTo Finishup:
FlightLineError:
Me![FlightSeparatorLine.Visible] = False
MsgBox ("There was an error")
Finishup:
End Sub
have four records with the same FlightNo the FlightNo field is only displayed
beside the first.
I want a horizontal line to appear above each occurance of FlightNo. I've
drawn it in the report. Name = FlightSeparatorLine. Visible = Yes. I've
added the following code to the Detail section but it doesn't seem to work.
The line is still appearing between every record. What am I doing wrong?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Start:
On Error GoTo FlightLineError:
If Me![FlightNo].IsVisible = True Then
Me![FlightSeparatorLine].Visible = True
Else
Me![FlightSeparatorLine].Visible = False
End If
GoTo Finishup:
FlightLineError:
Me![FlightSeparatorLine.Visible] = False
MsgBox ("There was an error")
Finishup:
End Sub