B
boomtap via AccessMonster.com
Hi There. I'm trying to make a flexable query so I don't have to make a
bunch of different reports. I have some drop down boxes on a form that the
query looks at to determine what the "Criteria" will be. The query works if
I have all the drop-down boxes populated. I would like to be able to leave
some of the boxes blank if I don't want it factored into the equation. Here
is what I tried in the "Criteria" field of the query:
IIf([Forms]![mainform]![company] Is Not Null,[Forms]![mainform]![company],Is
Not Null)
So, if the drop-down box is populated, it uses the value in the box <--- thay
part works. I thought with the "is not null" command if it wasn't populated,
it would just show them all.
Any suggestions? I have to get this done for my boss pretty quickly.
Thanks.
Mike
bunch of different reports. I have some drop down boxes on a form that the
query looks at to determine what the "Criteria" will be. The query works if
I have all the drop-down boxes populated. I would like to be able to leave
some of the boxes blank if I don't want it factored into the equation. Here
is what I tried in the "Criteria" field of the query:
IIf([Forms]![mainform]![company] Is Not Null,[Forms]![mainform]![company],Is
Not Null)
So, if the drop-down box is populated, it uses the value in the box <--- thay
part works. I thought with the "is not null" command if it wasn't populated,
it would just show them all.
Any suggestions? I have to get this done for my boss pretty quickly.
Thanks.
Mike