Hello all,
I am trying to run a query in Access 2007 that will return the record that has highest value for a certain field.
For example, I have the following data:
Field 1
Field 2
Field 3
Field 4
In Record #1 I have the following data:
Field 1 - 10230
Field 2 - A
Field 3 - 1
Field 4 - 75
In Record #2 I have the following data:
Field 1 - 10230
Field 2 - A
Field 3 - 2
Field 4 - 23
In Record #3 I have the following data:
Field 1 - 10245
Field 2 - A
Field 3 - 6
Field 4 - 33
When field 1 has the same data, I want my query to display the records where field 4 has the greatest value. So, in the end, this query should display Record #1 (in red) and Record #3 (in blue).
How would I do this in the query design?
Any assistance would be greatly appreciated. Thank you for taking the time to read this.
Greg