I have a form that calls a subform with a second subform inside it. The 2nd subform is in datasheet view. I want to hide columns depending on the setting of a combobox on the first subform. I can get the fields hidden but they wont unhide when the combobox value changes. Any ideas?
'If Forms![StressInterp]![subfrmStressData]![stress_protocol] <> 5 Then
'Me.MPH.ColumnHidden = False
'End If
'If Me.stress_protocol <> "5" Then
'Me.MPH.ColumnHidden = False
'Me.Grade.ColumnHidden = False
'Me.Mets.ColumnHidden = False
'End If
'If Me.stress_protocol = "5" Then
'Me.MPH.ColumnHidden = True
'Me.Grade.ColumnHidden = True
'Me.Mets.ColumnHidden = True
'Me.Minutes.ColumnWidth = 2880
'End If
'If Forms![StressInterp]![subfrmStressData]![stress_protocol] <> 5 Then
'Me.MPH.ColumnHidden = False
'End If
'If Me.stress_protocol <> "5" Then
'Me.MPH.ColumnHidden = False
'Me.Grade.ColumnHidden = False
'Me.Mets.ColumnHidden = False
'End If
'If Me.stress_protocol = "5" Then
'Me.MPH.ColumnHidden = True
'Me.Grade.ColumnHidden = True
'Me.Mets.ColumnHidden = True
'Me.Minutes.ColumnWidth = 2880
'End If