Heya. I have the following relationship set up in my query:
[Unit Purchase] -> [Purchase Order]
I created the join such that All Unit Purchases are shown, and corresponding Purchase Orders that exist will be shown. Most Unit Purchases have a Purchase Order, but it is not necessary.
Purchase Orders have a supplier. I have a form that I want to allow to filter this query based on the supplier. I created this iif statement in the supplier field.
IIf([Forms]![Inventory Insert]![cboSupplier] Is Not Null,[Forms]![Inventory Insert]![cboSupplier],[Purchase Order].[Supplier>])
When this criteria was not present, all 1200 records would be shown. Those without a purchase order would, naturally, not have a supplier.
The problem is, when I added this criteria, it works properly when there is something chosen in the combo box, but the "ELSE" case causes problems. In the case that there is no Purchase order, the item is no longer displayed. This cuts my overall list down to 900 from 1200.
How could I rework this so that the cases with no purchase order could still be displayed when no supplier is specified?
Any help would be GREATLY apprecaited.
Thanks,
Enigma
[Unit Purchase] -> [Purchase Order]
I created the join such that All Unit Purchases are shown, and corresponding Purchase Orders that exist will be shown. Most Unit Purchases have a Purchase Order, but it is not necessary.
Purchase Orders have a supplier. I have a form that I want to allow to filter this query based on the supplier. I created this iif statement in the supplier field.
IIf([Forms]![Inventory Insert]![cboSupplier] Is Not Null,[Forms]![Inventory Insert]![cboSupplier],[Purchase Order].[Supplier>])
When this criteria was not present, all 1200 records would be shown. Those without a purchase order would, naturally, not have a supplier.
The problem is, when I added this criteria, it works properly when there is something chosen in the combo box, but the "ELSE" case causes problems. In the case that there is no Purchase order, the item is no longer displayed. This cuts my overall list down to 900 from 1200.
How could I rework this so that the cases with no purchase order could still be displayed when no supplier is specified?
Any help would be GREATLY apprecaited.
Thanks,
Enigma