Article ID: 158935
Article Last Modified on 1/19/2007
Query: qryOrders
------------------------
Field: CategoryName
Table: Categories
Field: ProductName
Table: Products
Field: OrderID
Table: Order Details
Criteria: <10300
Field: Quantity
Table: Order DetailsGlobal DupeHeader as String
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount _
As Integer)
If DupeHeader = Me![CategoryName] Then
Me![CategoryName].Visible = False
Else
Me![CategoryName].Visible = True
End If
DupeHeader = Me![CategoryName]
End Sub
In Microsoft Access 2.0:
NOTE: In the following sample code, an underscore (_) at the end of a line is used as a line-continuation character. Remove the underscore from the end of the line when re-creating this code in Access Basic.
Sub GroupHeader3_Format(Cancel As Integer, FormatCount _
As Integer)
If DupeHeader = Me![Category Name] Then
Me![Category Name].Visible = False
Else
Me![Category Name].Visible = True
End If
DupeHeader = Me![Category Name]
End Sub
Additional query words: invisible suppress
Keywords: kbhowto kbprogramming KB158935