A
Alex
Hi anyone,
I have two combo boxes in the form:
Customer ID and Order ID.
If the customer id is chosen, then the OrderID displays
only the orders related to that customer.
If there is no customer chosen, then the OrderID combo
displays all orders...
How to do it?
In the query for the Order ID I put:
IIf(([tbl_Orders].[CustomerID])=IsNull([Forms]!
[frm_hlp_Invoices]![cmbCustomer]),True,[Forms]!
[frm_hlp_Invoices]![cmbCustomer]))
With the customer chosen in the combo CustomerID, the
OrderID combo displays all related to that customer
Orders,
with the combo CustomerID empty, the OrderID combo
displays nothing.
where is my mistake?
How to make the OrderID combo display all Orders if the
CustomerID combo is not activated?
thanks for your advice..
I have two combo boxes in the form:
Customer ID and Order ID.
If the customer id is chosen, then the OrderID displays
only the orders related to that customer.
If there is no customer chosen, then the OrderID combo
displays all orders...
How to do it?
In the query for the Order ID I put:
IIf(([tbl_Orders].[CustomerID])=IsNull([Forms]!
[frm_hlp_Invoices]![cmbCustomer]),True,[Forms]!
[frm_hlp_Invoices]![cmbCustomer]))
With the customer chosen in the combo CustomerID, the
OrderID combo displays all related to that customer
Orders,
with the combo CustomerID empty, the OrderID combo
displays nothing.
where is my mistake?
How to make the OrderID combo display all Orders if the
CustomerID combo is not activated?
thanks for your advice..