J
Jai_Friday
Morning All,
I am sure this is a simple query but I cant get my head around it,
I have an access query that checks 1 check box and a field on a form which
relate to a customer database,
The check box if ticks - shows ALL customer records
If not ticked it will show one customer record which is held in the field
the syntax i have tried is as follows
IIF([Forms]![Diary]![All customers check]=0,[Forms]![Diary]![Customer
Field],Not Null)
so if the check box is unticked filter by the customer field otherwise show
anything which is not null
This half works , when not ticked it shows me an individual customer , when
ticked it shows nothing,
In the else clause I have also tried >" " , Not "0" and still nothing....
However I tested the else clause by passing a valid customer code in it and
it returns data?
Any idea
Thanks in Advance
Jai
I am sure this is a simple query but I cant get my head around it,
I have an access query that checks 1 check box and a field on a form which
relate to a customer database,
The check box if ticks - shows ALL customer records
If not ticked it will show one customer record which is held in the field
the syntax i have tried is as follows
IIF([Forms]![Diary]![All customers check]=0,[Forms]![Diary]![Customer
Field],Not Null)
so if the check box is unticked filter by the customer field otherwise show
anything which is not null
This half works , when not ticked it shows me an individual customer , when
ticked it shows nothing,
In the else clause I have also tried >" " , Not "0" and still nothing....
However I tested the else clause by passing a valid customer code in it and
it returns data?
Any idea
Thanks in Advance
Jai