For Each ctl In me.Section(1).Controls '或me.Section(acHeader).controls
if ctl.ControlType=acTextBox or ctl.ControlType=acComboBox then
ctl.value = Null
End if
Next ctl
1 Dim ctl As Control
2 For Each ctl In Me.sub1.Controls
3 Select Case ctl.ControlType
4 Case acTextBox, acComboBox
5 If Left(ctl.Name, 4) = "txtA" Then
6
7 Me.sub1!ctl.ColumnHidden = -1
8
9 End Select
10 Next ctl