I have an unbound 1-column combo box (named "LimitToAnalyst") on a form named "Dashboard". LimitToAnalyst is populated by a SELECT query from a table containing analyst names. The value in this combo box is then used as a filter criteria value in a subform query:
Criteria: [Forms]![Dashboard]![LimitToAnalyst]
What I want is for the first/default value in the combo box to be "(All)", and for the subform query to then return all records. The catch is that I don't want to add an "All" row to my analysts Table because that table is used to populate other controls where "All" would be confusing. I tried setting the combobox to be blank by default, but then the query returns zero records instead of all records.
What's the best way for me to go about getting that default "all records" functionality for my subform query?
The combo box is currently set as Limit To List = Yes, but I might consider changing that if it makes this easier.
Thanks, friends!
VBAjedi
Criteria: [Forms]![Dashboard]![LimitToAnalyst]
What I want is for the first/default value in the combo box to be "(All)", and for the subform query to then return all records. The catch is that I don't want to add an "All" row to my analysts Table because that table is used to populate other controls where "All" would be confusing. I tried setting the combobox to be blank by default, but then the query returns zero records instead of all records.
What's the best way for me to go about getting that default "all records" functionality for my subform query?
The combo box is currently set as Limit To List = Yes, but I might consider changing that if it makes this easier.
Thanks, friends!
VBAjedi