I have an application that involves calculating a score based on a number of
defects. Simplified example of the scoring:
No_Defects Score
1-3 A
4-15 B
16-25 C
over 25 X
In Excel this is easy using a vlookup with its bin system
No_Defects Score
0 A
4 B
16 C
25 X
In Excel, if No_defects=5, it will search down column 1 and retrieve the
score corresponding to the last number before the 5, in this case, "B".
I cannot find a way to do this in Access. The closest I have come is to
create a table with all possible numbers of defects and corresponding scores
but this is not workable, especially when considering decimal numbers.
Is there an elegant way to do this using a function or am I pounding my head
against a wall?
Fred
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----