Can any one help with a problem I have with a tab control form
I have a form with a two page tab control - page 1 being the main form. I have a data sheet view subform on page 2.(linked by "Parttype"
There is a part type field on page 1 and I wish to hide columns on the data sheet depending on what part type is displayed on page 1.
I have tried this
Private Sub Form_Open(Cancel As Integer)
If Me.partype = "Resistor 0.25W 5%" Then
Forms!form2![frm_subres_0_25W_spec].Form![wattage].ColumnHidden = True
Else
Forms!form2![frm_subres_0_25W_spec].Form![wattage].ColumnHidden = False
End If
End Sub
Of course it doesn't work!
I may also want to be able to hide mulitple columns - how would I achieve this.
Can any on help me out? - Cheers
I have a form with a two page tab control - page 1 being the main form. I have a data sheet view subform on page 2.(linked by "Parttype"
There is a part type field on page 1 and I wish to hide columns on the data sheet depending on what part type is displayed on page 1.
I have tried this
Private Sub Form_Open(Cancel As Integer)
If Me.partype = "Resistor 0.25W 5%" Then
Forms!form2![frm_subres_0_25W_spec].Form![wattage].ColumnHidden = True
Else
Forms!form2![frm_subres_0_25W_spec].Form![wattage].ColumnHidden = False
End If
End Sub
Of course it doesn't work!
I may also want to be able to hide mulitple columns - how would I achieve this.
Can any on help me out? - Cheers