Hi everyone. I when a specific event occurs I want all of the text boxes on my form to be cleared. Here is an example of how it is done now
Forms!frmReportCriteria!txtStartDate.Value = ""
Forms!frmReportCriteria!txtEndDate.Value = ""
Forms!frmReportCriteria!txtPress1.Value = ""
Forms!frmReportCriteria!txtPress2.Value = ""
Forms!frmReportCriteria!txtPress3.Value = ""
Forms!frmReportCriteria!txtPress4.Value = ""
Forms!frmReportCriteria!txtPress5.Value = ""
Forms!frmReportCriteria!txtCode1.Value = ""
Forms!frmReportCriteria!txtCode2.Value = ""
Forms!frmReportCriteria!txtCode3.Value = ""
Forms!frmReportCriteria!txtCode4.Value = ""
Forms!frmReportCriteria!txtCode5.Value = ""
Is there a way to make this into a loop, I'm not sure of the syntax. Can anyone help?
Forms!frmReportCriteria!txtStartDate.Value = ""
Forms!frmReportCriteria!txtEndDate.Value = ""
Forms!frmReportCriteria!txtPress1.Value = ""
Forms!frmReportCriteria!txtPress2.Value = ""
Forms!frmReportCriteria!txtPress3.Value = ""
Forms!frmReportCriteria!txtPress4.Value = ""
Forms!frmReportCriteria!txtPress5.Value = ""
Forms!frmReportCriteria!txtCode1.Value = ""
Forms!frmReportCriteria!txtCode2.Value = ""
Forms!frmReportCriteria!txtCode3.Value = ""
Forms!frmReportCriteria!txtCode4.Value = ""
Forms!frmReportCriteria!txtCode5.Value = ""
Is there a way to make this into a loop, I'm not sure of the syntax. Can anyone help?