I have a query linked to a combo box on a form. If the user selects "All Cost Centers" from the combo box then I want the query to show all of the cost centers. If they select a specific cost center then I want the query to show that specific cost center. Right now my criteria code looks like this:
Code:
IIf([Forms]![Update Form]![cmdCostCenter]="All Cost Centers",Like "*",[Forms]![Update Form]![cmdCostCenter])
The code works great for selecting specific cost centers. The problem is the "All Cost Centers" functionality. The query returns nothing. I feel like I am missing something very simple.