JamesFlowers
Programmer
I have a recordset of 420 records grouped by ordernumber with values based upon different dates (to represent increase in prices)
There are three valid dates for currency with these records
as below
ORDERNO LINENO VALUE DATE
0000001 01 1.00 01/01/2001
0000001 01 2.00 01/02/2001
0000001 01 3.00 01/03/2001
0000002 01 1.50 10/01/2001
0000002 01 1.75 10/02/2001
0000002 01 1.85 10/03/2001
I am running this report at a current date (in this case 15/02/2001.
this is the data I require.
ORDERNO LINENO VALUE DATE
0000001 01 2.00 01/02/2001
0000002 01 1.75 10/02/2001
to elimnate the last line I can do
{CURRENTDATE}<{DATE}
which results in
ORDERNO LINENO VALUE DATE
0000001 01 1.00 01/01/2001
0000001 01 2.00 01/02/2001
0000002 01 1.50 10/01/2001
0000002 01 1.75 10/02/2001
How can i now restrict it to choose the required dates (I cant use MAXIMUM, as this results in the
ORDERNO LINENO VALUE DATE
0000002 01 1.75 10/02/2001
as being the only date returned!
I thank anyone in advance
James Flowers
There are three valid dates for currency with these records
as below
ORDERNO LINENO VALUE DATE
0000001 01 1.00 01/01/2001
0000001 01 2.00 01/02/2001
0000001 01 3.00 01/03/2001
0000002 01 1.50 10/01/2001
0000002 01 1.75 10/02/2001
0000002 01 1.85 10/03/2001
I am running this report at a current date (in this case 15/02/2001.
this is the data I require.
ORDERNO LINENO VALUE DATE
0000001 01 2.00 01/02/2001
0000002 01 1.75 10/02/2001
to elimnate the last line I can do
{CURRENTDATE}<{DATE}
which results in
ORDERNO LINENO VALUE DATE
0000001 01 1.00 01/01/2001
0000001 01 2.00 01/02/2001
0000002 01 1.50 10/01/2001
0000002 01 1.75 10/02/2001
How can i now restrict it to choose the required dates (I cant use MAXIMUM, as this results in the
ORDERNO LINENO VALUE DATE
0000002 01 1.75 10/02/2001
as being the only date returned!
I thank anyone in advance
James Flowers