L
Lez
Hi Guys,
I have a form the an option box that I want to select what data displays
subject to the option box selected. This is the code I am trying but it does
not work and fails, I am targeting correctly ? or is my problem something
else?
Private Sub Report_Open(Cancel As Integer)
With CodeContextObject
If (.[frmEditQuote].[optPayType] = 1) Then
.GroupHeader1.Visible = True
End If
If (.[frmEditQuote].[optPayType] = 1) Then
.GroupHeader2.Visible = False
End If
If (.[frmEditQuote].[optPayType] = 1) Then
.GroupHeader3.Visible = False
End If
End With
End Sub
Many thanks
Lez
I have a form the an option box that I want to select what data displays
subject to the option box selected. This is the code I am trying but it does
not work and fails, I am targeting correctly ? or is my problem something
else?
Private Sub Report_Open(Cancel As Integer)
With CodeContextObject
If (.[frmEditQuote].[optPayType] = 1) Then
.GroupHeader1.Visible = True
End If
If (.[frmEditQuote].[optPayType] = 1) Then
.GroupHeader2.Visible = False
End If
If (.[frmEditQuote].[optPayType] = 1) Then
.GroupHeader3.Visible = False
End If
End With
End Sub
Many thanks
Lez