I have a standard search form with a sub form that is in datasheet view on load/open. I want this datasheet to be blank before the user enters a selection in the various search text boxes of the main form. However, I don't believe this is possible with a datasheet view. The next best thing would be to hide the sub form until a search criteria is made in the main form. How can I achieve this please. The code I am using in the search button is:
Code:
Private Sub btnSearch_Click()
' Update the record source
Me.subfrm_InterimDataSearch.Form.RecordSource = "SELECT * FROM qry_Interim_Cert_Data " & BuildFilter
' Requery the subform
Me.subfrm_InterimDataSearch.Requery
End Sub [code]
I have attached (ww.box.net url access below) a picture of the form with the sub form as it currently opens.