G
Guest
I have a query that uses a Date field to select all records between
#1/1/2006# and #3/31/2006#. In the same query, I have a field named "DO_Qtr1"
(Deposits Outstanding for first quarter) that uses the following expression:
DO_Qtr1: Sum(IIf([Assistant_Retail_Manager_Activities].[Month]=(select
max(Assistant_Retail_Manager_Activities.Month ) from
Assistant_Retail_Manager_Activities),[Assistant_Retail_Manager_Activities].[Deposits_Outstanding],0))
The problem is, this expression is looking for the maximum month in the
query result set (April), but the Where criteria restricts the query to
records for January through March. So, on the DO_Qtr1 field, all that is
displayed for January, March, and April are zeroes.
What and how do I change either the DO_Qtr1 field or the Month field so that
the most recent amount for is displayed in DO_Qtr1.
Help!
#1/1/2006# and #3/31/2006#. In the same query, I have a field named "DO_Qtr1"
(Deposits Outstanding for first quarter) that uses the following expression:
DO_Qtr1: Sum(IIf([Assistant_Retail_Manager_Activities].[Month]=(select
max(Assistant_Retail_Manager_Activities.Month ) from
Assistant_Retail_Manager_Activities),[Assistant_Retail_Manager_Activities].[Deposits_Outstanding],0))
The problem is, this expression is looking for the maximum month in the
query result set (April), but the Where criteria restricts the query to
records for January through March. So, on the DO_Qtr1 field, all that is
displayed for January, March, and April are zeroes.
What and how do I change either the DO_Qtr1 field or the Month field so that
the most recent amount for is displayed in DO_Qtr1.
Help!