G
Guest
Hi,
I have a database with a "Company" table. A combo box on a "company" form
lists the company names. A lookup query filters the table according to the
selection in the combo box. I want to have an option in the combo box that
will list all the companies in the table rather than only one.. such as an
"Any" or "All" option. How can I do this?
I have tried passing the combo box value to a variable in an If statement
checking for the string value "Any". Anything else gets selected and it
passes the company name to the query as normal... Im sure its not as simple
as 'If value = "any" then pass "" to query' so what am i missing? I am only
a intermediate/beginner to coding in access...
Thanks for any help.
Gary
I have a database with a "Company" table. A combo box on a "company" form
lists the company names. A lookup query filters the table according to the
selection in the combo box. I want to have an option in the combo box that
will list all the companies in the table rather than only one.. such as an
"Any" or "All" option. How can I do this?
I have tried passing the combo box value to a variable in an If statement
checking for the string value "Any". Anything else gets selected and it
passes the company name to the query as normal... Im sure its not as simple
as 'If value = "any" then pass "" to query' so what am i missing? I am only
a intermediate/beginner to coding in access...
Thanks for any help.
Gary