A armesca Registered User. Local time Today, 03:10 Joined Apr 1, 2011 Messages 45 Jul 19, 2011 #1 Is there any way to set all of the text boxes/combo boxes, etc to null values all at once in VB as opposed to clearing each one individually.
Is there any way to set all of the text boxes/combo boxes, etc to null values all at once in VB as opposed to clearing each one individually.
M michaeljryan78 Registered User. Local time Today, 03:10 Joined Feb 2, 2011 Messages 165 Jul 19, 2011 #2 If the form is unbound, then you may want to try this: Code: Dim ctl As Control For Each ctl In Me.Controls If ctl.ControlType = acComboBox Or ctl.ControlType = acTextBox Then ctl.Value = Null End If Next ctl
If the form is unbound, then you may want to try this: Code: Dim ctl As Control For Each ctl In Me.Controls If ctl.ControlType = acComboBox Or ctl.ControlType = acTextBox Then ctl.Value = Null End If Next ctl