C
Claire
Hi:
My report shows many records for each group but I would only like to see the
first record per group.
I have added a text box to count the records in each group and using the
OnPrint event of the detail section I have tried to specify that the detail
section should not be visible if the count is greater than 1. Unfortunately,
all of the records are still displaying.
My code is as follows:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Me!txtRecordCount = 1 Then
Visible = True
Else
Visible = False
End If
End Sub
Can someone (wiser than I) please correct this for me?
Thanks
Claire
My report shows many records for each group but I would only like to see the
first record per group.
I have added a text box to count the records in each group and using the
OnPrint event of the detail section I have tried to specify that the detail
section should not be visible if the count is greater than 1. Unfortunately,
all of the records are still displaying.
My code is as follows:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Me!txtRecordCount = 1 Then
Visible = True
Else
Visible = False
End If
End Sub
Can someone (wiser than I) please correct this for me?
Thanks
Claire