My users have 3 values from a combo box to chose from which is used to isolate the data they need to a listbox. I'd like them to have the ability to retrieve all data if the combo box is blank. How can i accomplish this?
I've tried using the 'Switch', 'IIF', and 'NZ' funtions in the crieria of the query populating the data, none worked, such as:
This code above does not error out - it just doesn't provide any data to the listbox.
Any help would be appreciated.
I've tried using the 'Switch', 'IIF', and 'NZ' funtions in the crieria of the query populating the data, none worked, such as:
Code:
NZ([Forms]![FRM_MAIN]![CBO_BALANCE_STATUS],((([TBL_BALANCES].[BALANCE_STATUS])="Open" Or ([TBL_BALANCES].[BALANCE_STATUS])="Closed" Or ([TBL_BALANCES].[BALANCE_STATUS])="Closed UC")))
This code above does not error out - it just doesn't provide any data to the listbox.
Any help would be appreciated.