null problems

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form and a subform. A form with 3 combo boxes, and i set a
filter/query based on the values i choose from those combo boxes.The problem
is whenever there is a blank or let me say i didnt choose one box i dont have
output on the subform.
any help?thnks so much.
 
How are you referring to the combo boxes, and what do you want to happen if
nothing is chosen?

The usual approach is if nothing's chosen from a combo box, choose
everything from that field, rather than simply which rows have that field
matching what's selected. If that's what you want, presumably you've got

WHERE Field1 = Forms!MyForm!Combo1

in your query. Change that to

WHERE Field1 = Forms!MyForm!Combo1 OR Forms!MyForm!Combo1 IS NULL
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top