I have a combo box that is unbound. Its rowsource is based on a query that is based on a field in a table. I want to add 'All' as an option in the combo box. Can anyone help?
One way to do this is to add a record to your table that contains the asterik. What I like to do is have my combo box based on a Union Select statement. For example:
SELECT [TasksList].[ID], [TasksList].[Task] FROM [TasksList] UNION Select "*","*" from [TasksList];
Then in the criteria for that field in the query, I put :
Like [form1]![combo1]
I tried the way AccessSQLUser suggested and it works fine. I also tried adding 'All' in my table, having a text box which wasn't visible. and as its Control source was
'=iif([combo]="All","*",[combo])', then in my query in the criteria was 'Forms!Form![HiddenTextbox],I thought this way was quite good?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.