I have a form with 6 tabs. On 2 of the 6 tabs I need to clear the data and refresh it on "after_update" of a combo box. Since I'm using unbound controls, I can use the "clearing" code in the following module, but it will clear all tabs, not just the two I need to clear. Is there a way to reference just the controls on the two tabs? (Keep in mind, I'm not using subforms on the tabs, otherwise this problem would go away.)
Code:
For Each ctl In MyForm.Controls
If (ctl.ControlType = acTextBox) Then
ctl.Value = Null
End If
And so on for other control types . . .
Next ctl