P
Philip Martin
I have a Report, based on query. The problem is that I need to be able to
call up the query, with a filter on a field (the same field from either
source) from one of two forms. I have tried the following SQL in the WHERE
command line:
WHERE
(((OrdersTbl.PurchaseOrderID)=IIf(IsNull([Forms]![OrdersFrm]![PurchaseOrderI
D]),[Forms]![POSelectorFrm]![Combo0],[Forms]![OrdersFrm]![PurchaseOrderID]))
);
But it doesn't work
(
What I want is to be able to call the query from either source, but not have
the other popup box requesting an input. I have also tried the OR comand
line on the Criteria line, without success.
Any one know how I can do this?
TIA,
Philip Martin.
call up the query, with a filter on a field (the same field from either
source) from one of two forms. I have tried the following SQL in the WHERE
command line:
WHERE
(((OrdersTbl.PurchaseOrderID)=IIf(IsNull([Forms]![OrdersFrm]![PurchaseOrderI
D]),[Forms]![POSelectorFrm]![Combo0],[Forms]![OrdersFrm]![PurchaseOrderID]))
);
But it doesn't work
What I want is to be able to call the query from either source, but not have
the other popup box requesting an input. I have also tried the OR comand
line on the Criteria line, without success.
Any one know how I can do this?
TIA,
Philip Martin.