All; using 2010. I have a search form with a clear button. I forgot how to use the ctl vba code to reset my controls to null. Heres the code I found:
I have 4 unbound text boxes to search my subform. I remember I needed to put something in either smart tags or tag on the property of the txtboxes and reference in the code but I can't remember. can anyone help please. ThanksCode:Sub ClearFormText(frm As Form) Dim ctl As Control For Each ctl In frm.Controls If ctl.ControlType = acTextBox Then ctl.Value = "" End If Next ctl End Sub