显示:
Dim chk As WinForm.CheckBox
For n As Integer = 1 To 10 'n的最大值根据实际情况设定
chk= e.Form.Controls("CheckBox" & n)
Tables("表A").Cols( chk.Text).Visible = chk.Checked
Next
隐藏:
Dim chk As WinForm.CheckBox
For n As Integer = 1 To 10
chk= e.Form.Controls("CheckBox" & n)
Tables("表A").Cols( chk.Text).Visible = Not chk.Checked
Next
撤销:
Dim chk As WinForm.CheckBox
For n As Integer = 1 To 10
chk= e.Form.Controls("CheckBox" & n)
Tables("表A").Cols( chk.Text).Visible = True
Next
[此贴子已经被作者于2011-6-20 16:02:10编辑过]