I have a query by form set up.
I coded and can get the fields on the form to clear by the click of a button, but how do I make the subform clear, too?
The main form has a "Clear" button and in the "event procedure" I placed the following code:
When the button is clicked, all of the criteria fields clear but I am not sure how to make it so the subform with the results below it clear, too.
I would greatly appreciate assistance.
Thank you.
I coded and can get the fields on the form to clear by the click of a button, but how do I make the subform clear, too?
The main form has a "Clear" button and in the "event procedure" I placed the following code:
Code:
Private Sub cmdClear_Click() Me.txtFname = Null Me.txtLname = Null Me.cboCountry = Null Me.cboDistribution = Null Me.cboPlatform = Null Me.cboState = Null Me.cboStatus = Null Me.cboType = Null End Sub
I would greatly appreciate assistance.
Thank you.
Comment