Creating a query to compile data for a report. There are two conditions when the data will be included in the report. I created a field that determines if the row should be included in the report:
INCLUDE_FLG: IIf([SumOfINVBQTYONHAND]>0 Or [QTY_TO_MFR]>0,"Y","N")
Therefore, the value is either a "Y" or an "N". At this point the query works OK.
> SumOfINVBQTYONHAND is a field created in a totalling query.
> QTY_TO_MFR is a field in this query defined as:
QTY_TO_MFR: IIf([ORDERS]![COMPLETION_FLG] Not In ("C","X") And [02 Tally Qty Mfrd]![SumOfITQUANTITY] Is Null,[ORDERS]![QTY_ORDERED],Null)
When I enter "Y" in the INCLUDE_FLG Criteria and run the query a parameter dialog box is displayed for QTY_TO_MFR.
All I wanted to do was filter out those rows that do not belong in the query.
Help!
INCLUDE_FLG: IIf([SumOfINVBQTYONHAND]>0 Or [QTY_TO_MFR]>0,"Y","N")
Therefore, the value is either a "Y" or an "N". At this point the query works OK.
> SumOfINVBQTYONHAND is a field created in a totalling query.
> QTY_TO_MFR is a field in this query defined as:
QTY_TO_MFR: IIf([ORDERS]![COMPLETION_FLG] Not In ("C","X") And [02 Tally Qty Mfrd]![SumOfITQUANTITY] Is Null,[ORDERS]![QTY_ORDERED],Null)
When I enter "Y" in the INCLUDE_FLG Criteria and run the query a parameter dialog box is displayed for QTY_TO_MFR.
All I wanted to do was filter out those rows that do not belong in the query.
Help!