bookrackonteur
New member
- Local time
- Today, 17:18
- Joined
- Aug 25, 2025
- Messages
- 7
I have a query that sums sales totals based on EventID and School ID
So
ColA(totalSales) ColB(EventID) ColC(SchoolID)
1000 154 1
1200 134 2
900 155 1
Then I have a query (that could easily be a form
that lists all the schools and their last EventID and SalesTotal using a DMAX based on EventID and SchoolID as the criteria
I can't figure out how to get the row for that School ID to show the second to last EventIDs Sales total
School Last EventSales 2ndtolastEvent Sales
1 900 1000
I'm thinking of it like an Excel problem using the Large function so I'm sure I'm just thinking of the problem backwards
thanks for any assistance
So
ColA(totalSales) ColB(EventID) ColC(SchoolID)
1000 154 1
1200 134 2
900 155 1
Then I have a query (that could easily be a form
that lists all the schools and their last EventID and SalesTotal using a DMAX based on EventID and SchoolID as the criteria
I can't figure out how to get the row for that School ID to show the second to last EventIDs Sales total
School Last EventSales 2ndtolastEvent Sales
1 900 1000
I'm thinking of it like an Excel problem using the Large function so I'm sure I'm just thinking of the problem backwards
thanks for any assistance