Why do you say "as long as your fields are unbound"?
I just did this as a test:
Private Sub Command8_Click()
Dim ctl As Control
For Each ctl In Me.Controls
If ctl.ControlType = acTextBox Then
ctl = Null
End If
Next ctl
End Sub
which uses only slightly differnt methodology, and it works fine. It's true that indexes could mess you up here, but other than that, this works just fine with bound controls, and I would assume yours does too.
Jeremy =============
Jeremy Wallace
Designing, Developing, and Deploying Access Databases Since 1995
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.