Here is a Brute force approach with no error trapping,<br>
<br>
<br>
Sub ClearForm()<br>
Dim frm As Form, ctl As Control<br>
<br>
' Set the current form as the target<br>
Set frm = Screen.ActiveForm<br>
' Enumerate Controls collection of each form.<br>
For Each ctl In frm.Controls<br>
' Print name of each control.<br>
If ctl.ControlType = acTextBox Then<br>
ctl = ""<br>
End If<br>
Next ctl<br>
End Sub<br>
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.