rio
Registered User.
- Local time
- Today, 09:03
- Joined
- Jun 3, 2008
- Messages
- 124
hi.
in my form I used 2 combobox to show and hide column in subform. so can I make new table for this subform (only show column)
This is my combo code :


in my form I used 2 combobox to show and hide column in subform. so can I make new table for this subform (only show column)
This is my combo code :
Code:
Private Sub hideColumn_Change()
Select Case Me.hideColumn
Case "Test 1"
Me.Subform.Form.Test1.ColumnHidden = True
Case "Test 2"
Me.Subform.Form.Test2.ColumnHidden = True
Case "Test 3"
Me.Subform.Form.Test3.ColumnHidden = True
End Select
End Sub
Private Sub showColumn_Change()
Select Case Me.showColumn
Case "Test 1"
Me.Subform.Form.Test1.ColumnHidden = False
Case "Test 2"
Me.Subform.Form.Test2.ColumnHidden = False
Case "Test 3"
Me.Subform.Form.Test3.ColumnHidden = False
End Select
End Sub

