I am still unclear, Aladin.
The "TOP 1" (that I proposed) returns at most one record: which may be not the desired outcome. It will not return multiple records when the same maximum value is available from more than one date. So I'm glad you chimed in on the thread.
Good to see you posting in the Access forum, btw. I'm sure that if you're interested in SQL you will find it rewarding & a good match for the way you think/work with datasets.
regards
Hi Fazza
I teach databases including querying (QBF/QueryGrid) and normalization as much as spreadsheets
...
<TABLE border=1 cellSpacing=0 bgColor=#ffffff>
<CAPTION>Table1</CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>
TRIX_ID</TH><TH bgColor=#c0c0c0 borderColor=#000000>
Product</TH><TH bgColor=#c0c0c0 borderColor=#000000>
Date</TH><TH bgColor=#c0c0c0 borderColor=#000000>
Amount</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#eeece1 align=right>
111123</TD><TD borderColor=#eeece1>
Apples</TD><TD borderColor=#eeece1 align=right>
7/1/2010</TD><TD borderColor=#eeece1 align=right>
$2.40</TD></TR><TR vAlign=top><TD borderColor=#eeece1 align=right>
111124</TD><TD borderColor=#eeece1>
Oranges</TD><TD borderColor=#eeece1 align=right>
8/2/2010</TD><TD borderColor=#eeece1 align=right>
$6.34</TD></TR><TR vAlign=top><TD borderColor=#eeece1 align=right>
111125</TD><TD borderColor=#eeece1>
Grapes</TD><TD borderColor=#eeece1 align=right>
8/1/2010</TD><TD borderColor=#eeece1 align=right>
$5.12</TD></TR><TR vAlign=top><TD borderColor=#eeece1 align=right>
111126</TD><TD borderColor=#eeece1>
Apples</TD><TD borderColor=#eeece1 align=right>
7/4/2010</TD><TD borderColor=#eeece1 align=right>
$3.45</TD></TR><TR vAlign=top><TD borderColor=#eeece1 align=right>
111127</TD><TD borderColor=#eeece1>
Grapes</TD><TD borderColor=#eeece1 align=right>
7/7/2010</TD><TD borderColor=#eeece1 align=right>
$8.26</TD></TR><TR vAlign=top><TD borderColor=#eeece1 align=right>
111128</TD><TD borderColor=#eeece1>
Granola</TD><TD borderColor=#eeece1 align=right>
8/1/2010</TD><TD borderColor=#eeece1 align=right>
$4.92</TD></TR><TR vAlign=top><TD borderColor=#eeece1 align=right>
111129</TD><TD borderColor=#eeece1>
Granola</TD><TD borderColor=#eeece1 align=right>
8/2/2010</TD><TD borderColor=#eeece1 align=right>
$0.85</TD></TR><TR vAlign=top><TD borderColor=#eeece1 align=right>
111130</TD><TD borderColor=#eeece1>
Granola</TD><TD borderColor=#eeece1 align=right>
7/2/2010</TD><TD borderColor=#eeece1 align=right>
$5.55</TD></TR><TR vAlign=top><TD borderColor=#eeece1 align=right>
111131</TD><TD borderColor=#eeece1>
KAD</TD><TD borderColor=#eeece1 align=right>
9/2/2010</TD><TD borderColor=#eeece1 align=right>
$10.04</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
SELECT TOP 1 Table1.Date, Sum(Table1.Amount) AS SumOfAmount
FROM Table1
GROUP BY Table1.Date
ORDER BY Sum(Table1.Amount) DESC;
<TABLE border=1 cellSpacing=0 bgColor=#ffffff>
<CAPTION>Fazza</CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>
Date</TH><TH bgColor=#c0c0c0 borderColor=#000000>
SumOfAmount</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#d0d7e5 align=right>
9/2/2010</TD><TD borderColor=#d0d7e5 align=right>
$10.04</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5 align=right>
8/1/2010</TD><TD borderColor=#d0d7e5 align=right>
$10.04</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
I named the query Fazza...
By the way, Joe's set up would do the same, explicitly.
Regards,
Aladin