I agree with Allan that we need to know exactly what you're doing to "save
and clear" the form, but generically, the way you "group" controls for this
kind of manipulation is to use the little known Tag Property.
Select the controls you want to clear, then got to Properties - Other and
enter a value in the ***Tag*** Property. Don't get confused if you see a
***SmartTag*** Property! This is something else entirely!
For the purposes of this demo, we'll make the Tag Property
Fields2Clear
Enter this in the Tag Property box (without quotation marks.)
Then, in an appropriate event, use this code.
Dim ctrl As Control
For Each ctrl In Me.Controls
If ctrl.Tag = "Fields2Clear" Then
ctrl.value = ""
End If
Next
End Sub
Linq
--
There's ALWAYS more than one way to skin a cat!
Answers/posts based on Access 2000/2003
Message posted via AccessMonster.com