Hi,
In my Search form which I use to open filtered query I have placed a "Clear All" button to remove all the combobox values and start a fresh query. However, if I click the button combobox values get clear but the query fails. But if I don't use the button the query works. In the following pic I showed my form in Pic 1 and the error massage in Pic 2.
The code behind the "Clear All" (named Command6) button is
Code:
Private Sub Command6_Click()
Me.cboBrandID.Value = ""
Me.cboCatagory.Value = ""
Me.cboDes.Value = ""
Me.cboFiscalYear.Value = ""
Me.cboStation.Value = ""
Me.cboSupplierID.Value = ""
Me.txtBankValue.Value = ""
Me.cboCNF.Value = ""
End Sub
However, if I set control's .RowSource property to "", the combobox doesn't show anything at all.