JavaJava75
Technical User
thread707-1496731
Hi,
I'm working on a database that has 22 fields per record. I'd like to be able to find the top five fields (highest values) in each record and write VBA code to hold those values (and their field names). It would look like this:
Reason: A (11), B (2), C (5), D (80), E (30), F (0)....
VBA to return the below:
Top three reasons are D (80), E (30), A(11).
I followed the thread above (thread707-1496731) but I'm not sure how to grab the column name for that field in Maximum and Max2nd, and how to handle for 3rd, 4th, etc values.
Thanks in advance for any tips you can share with me!
Hi,
I'm working on a database that has 22 fields per record. I'd like to be able to find the top five fields (highest values) in each record and write VBA code to hold those values (and their field names). It would look like this:
Reason: A (11), B (2), C (5), D (80), E (30), F (0)....
VBA to return the below:
Top three reasons are D (80), E (30), A(11).
I followed the thread above (thread707-1496731) but I'm not sure how to grab the column name for that field in Maximum and Max2nd, and how to handle for 3rd, 4th, etc values.
Thanks in advance for any tips you can share with me!