G
Guest
Hi everybody,
Suppose i have a combo box for every column on a form (say 5-6 combo boxes)
which filter the records acording to combo box values. I tried to methods 1.
use comboobox values as filters and use "form.filter" property and 2. use
these values in SQL statement as where clause and assign it to
"form.recordsource" property.
Actually these 2 methods both work fine, but the problem arrise when a combo
box is empty, because I use "AND" statement between every combo box value.
What is the best way to ignore empty comboboxes ?
Thank you.
Suppose i have a combo box for every column on a form (say 5-6 combo boxes)
which filter the records acording to combo box values. I tried to methods 1.
use comboobox values as filters and use "form.filter" property and 2. use
these values in SQL statement as where clause and assign it to
"form.recordsource" property.
Actually these 2 methods both work fine, but the problem arrise when a combo
box is empty, because I use "AND" statement between every combo box value.
What is the best way to ignore empty comboboxes ?
Thank you.