Hi,
I have a listbox that is populated using this query (the row source)
So when the form is open, the listbox will have its records. But what I want is when I press a button, it will add filter/condition clause so it will show records that based on the filter (for example, add WHERE TblCustOrder.CustOrderDate>10/05/2012, so the listbox will only show records that has custOrderDate later than 10/05/2012)
how can I do that?is it possible to do this?
I have a listbox that is populated using this query (the row source)
Code:
SELECT TblCustOrder.CustOrderID, TblCustOrder.CustomerID, TblCustomer.CustomerName, TblCustOrder.PONumber, TblCustOrder.JobName, TblCustOrder.CustOrderDate
FROM TblCustomer INNER JOIN TblCustOrder ON TblCustomer.CustomerID = TblCustOrder.CustomerID
ORDER BY TblCustOrder.CustOrderDate DESC;
So when the form is open, the listbox will have its records. But what I want is when I press a button, it will add filter/condition clause so it will show records that based on the filter (for example, add WHERE TblCustOrder.CustOrderDate>10/05/2012, so the listbox will only show records that has custOrderDate later than 10/05/2012)
how can I do that?is it possible to do this?