I have a case statement to show hide fields as applicable.
I need to hide/show a couple of fields in the subform based on the main form selection but cannot work out how i have to reference this in my statement.
Mani Form = Record
Subform = Record_Cylinders
Field to hide = QtyUsedRecovered
This is part of my case statement for the main form:
Private Sub DocumentType_AfterUpdate()
Select Case Me.DocumentType.Value
Case "Collection Note"
Me.Combo31.Visible = True
Me.Combo33.Visible = True
Me.CollectionDate.Visible = True
Me.Combo41.Visible = True
Me.Combo35.Visible = False
Me.Combo37.Visible = False
Me.Combo43.Visible = False
Me.Combo39.Visible = False
Me.ReturnDate.Visible = False
Me.DisposalType.Visible = False
Me.QtyDisposed.Visible = False
I need to hide/show a couple of fields in the subform based on the main form selection but cannot work out how i have to reference this in my statement.
Mani Form = Record
Subform = Record_Cylinders
Field to hide = QtyUsedRecovered
This is part of my case statement for the main form:
Private Sub DocumentType_AfterUpdate()
Select Case Me.DocumentType.Value
Case "Collection Note"
Me.Combo31.Visible = True
Me.Combo33.Visible = True
Me.CollectionDate.Visible = True
Me.Combo41.Visible = True
Me.Combo35.Visible = False
Me.Combo37.Visible = False
Me.Combo43.Visible = False
Me.Combo39.Visible = False
Me.ReturnDate.Visible = False
Me.DisposalType.Visible = False
Me.QtyDisposed.Visible = False