P
Picos
I need a Criteria expression that take one of two options about a combobox's
value in a FormCriteria:
If the value is a City, then the Query only shows records with this value in
the IdCity field.
If the combobox is null, then show all records (Without considering the
IdCity field).
I need an expression (not VBA code), I tried this in the IdCity field:
IIF(IsNull([Forms]![formCriteria]![cmbCity]),>0,[Forms]![formCriteria]![cmbCity])
But the Query shows 0 rows If the combobox is null.
I will appreciate any help...
Thanks a lot.
And sorry for my english.
value in a FormCriteria:
If the value is a City, then the Query only shows records with this value in
the IdCity field.
If the combobox is null, then show all records (Without considering the
IdCity field).
I need an expression (not VBA code), I tried this in the IdCity field:
IIF(IsNull([Forms]![formCriteria]![cmbCity]),>0,[Forms]![formCriteria]![cmbCity])
But the Query shows 0 rows If the combobox is null.
I will appreciate any help...
Thanks a lot.
And sorry for my english.