Would anyone be able to tell me why I keep getting a "type mismatch" error with the following code.
Current_Form is passed to the sub as the current form.
John
Current_Form is passed to the sub as the current form.
Code:
Public Sub Clear_Details(Current_Form As Form)
Dim ctl As TextBox
For Each ctl In Current_Form
ctl.Value = ""
Next ctl
End Sub