P
popejackson
My form has 3 list boxes that select values for a query with a command button
to run the query. The query criteria is [forms]![form1]![listbox1] for each
listbox.
IE: listbox1 - Name, listbox2 - Location, listbox3 - AccountType
I would like to search by one or all of these criteria.
The problem that I have is when I do not select a value from one of the
listbox controls my query returns nothing, although I have selected a valid
value from one or more of the listboxes.
How can I word the query field criteria to work in this case. Basically
ignore the criteria of [forms]![form1]![listbox1] when a null value exists in
the listbox on the form.
Thanks in advance for any help that may be offered. Very new to this and
hacking my way along atm.
to run the query. The query criteria is [forms]![form1]![listbox1] for each
listbox.
IE: listbox1 - Name, listbox2 - Location, listbox3 - AccountType
I would like to search by one or all of these criteria.
The problem that I have is when I do not select a value from one of the
listbox controls my query returns nothing, although I have selected a valid
value from one or more of the listboxes.
How can I word the query field criteria to work in this case. Basically
ignore the criteria of [forms]![form1]![listbox1] when a null value exists in
the listbox on the form.
Thanks in advance for any help that may be offered. Very new to this and
hacking my way along atm.