Jan 11 2023 03:28 PM
Hi, First time poster:
My data table has a 1:M relationship and I want to qry the highest level of 'color'
Red is Highest; Green Lowest
ID Color
1 Red
1 Green
1 Yellow
2 Yellow
3 Green
3 Yellow
4 Red
4 Yellow
My results should look like this:
1 Red
2 Yellow
3 Green
4 Red
I have tried using an IIF statement but can't seem to get it working.
Suggestion?
Jan 11 2023 08:49 PM
Jan 11 2023 08:55 PM
Solutionyou create a table (on demo ColorT) and input the colors in Ascending orders.
then create a Query (FinalQuery) that will output your result.
see the attached demo
Jan 12 2023 04:29 AM
Jan 12 2023 07:32 AM