I have a query to filter the results of my data based on a combo box located on a form. The form Combo Box is called cbo_Status. The code I have in the Criteria section of the query is
When I run the query, with a status selected in the Combo Box the proper results are returned. However when the Combo Box is empty, only records that have data in the Status field of the data table are returned. When the Status Combo Box is empty, I want all the data to be displayed in the query results. I have used this method before but for some reason it's not working.
Any suggestions?
Thanks,
Jim
Code:
[Forms]![frm_Main]![cbo_Status] Or Like [Forms]![frm_Main]![cbo_Status] & "*"
Any suggestions?
Thanks,
Jim