cheekybuddha
AWF VIP
- Local time
- Today, 03:38
- Joined
- Jul 21, 2014
- Messages
- 3,201
First try this:
Let us know whether your 'Needed' column (UnitPrice) shows in the correct order with all your other data.
Then you can work on the ranking
(I probably won't be able to look in again here until tomorrow - others may well pitch in before then)
SQL:
SELECT
ftq1.odate,
filtertable1.orderid,
ftq1.sumofunitprice,
Dcount("*", "ftq1", "sumofunitprice>=" & [sumofunitprice]) AS DayRank,
filtertable1.unitprice
FROM filtertable1
INNER JOIN ftq1
ON filtertable1.orderid = ftq1.orderid
WHERE ftq1.odate = #2024-05-27#
ORDER BY
Dcount("*", "ftq1", "sumofunitprice>=" & [sumofunitprice]),
filtertable1.unitprice DESC
;
Let us know whether your 'Needed' column (UnitPrice) shows in the correct order with all your other data.
Then you can work on the ranking
(I probably won't be able to look in again here until tomorrow - others may well pitch in before then)