K
Kay
I have code which unhides the columns on a subform based on a selection made
in the main form. It works fine, but now I need to do the same thing but
include two columns. I need to hide both TargetAudience and ProductMarketed.
Can I use "and" or do I have to reference the other control independently.
I am not including all of the code but just what I need to change I think.
Dim frm As Form
Dim ctl As Control
Dim ctlLbl As Control
Dim ctlHld As Control
Set ctl = Forms!frmPaymentEntryforDC![sbfEventsDC
subform].Form![sbfDCEventDatails subform].Form!ProductMarketed
Set ctlLbl = Forms!frmPaymentEntryforDC![sbfEventsDC
subform].Form![sbfDCEventDatails subform].Form!ProductMarketed_Label
in the main form. It works fine, but now I need to do the same thing but
include two columns. I need to hide both TargetAudience and ProductMarketed.
Can I use "and" or do I have to reference the other control independently.
I am not including all of the code but just what I need to change I think.
Dim frm As Form
Dim ctl As Control
Dim ctlLbl As Control
Dim ctlHld As Control
Set ctl = Forms!frmPaymentEntryforDC![sbfEventsDC
subform].Form![sbfDCEventDatails subform].Form!ProductMarketed
Set ctlLbl = Forms!frmPaymentEntryforDC![sbfEventsDC
subform].Form![sbfDCEventDatails subform].Form!ProductMarketed_Label