Can some one tell me if there is a way to exclude a control from this statement
'Loop through each control on the form to get its value.
For Each ctl In Me.Controls
With ctl
Select Case .ControlType
Case acTextBox
.SetFocus
I tried the following, it did not work
For Each ctl In Me.Controls
where Me.Controls <> txtfrom
With ctl
Select Case .ControlType
Case acTextBox
.SetFocus
Thanks Tim
'Loop through each control on the form to get its value.
For Each ctl In Me.Controls
With ctl
Select Case .ControlType
Case acTextBox
.SetFocus
I tried the following, it did not work
For Each ctl In Me.Controls
where Me.Controls <> txtfrom
With ctl
Select Case .ControlType
Case acTextBox
.SetFocus
Thanks Tim