Re: classify

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Create a table that defines the range, and you can then create a query to
look up that table and return the range number.
It takes a bit of effort to get this kind of query working.
Translation table --
Low_Avg High_Avg Classification
0 3.99 1
4.0 4.75 2
4.76 8.99 3

I find it easy, something like this --
SELECT [YourFields], [Classification]
FROM YourTable, Translation
WHERE Average Between Low_Avg AND High_Avg;

--
Build a little, test a little.


"Allen Browne" wrote:

Your ranges don't look like a simple, linear scale, so it can't be done with
a simple expression. Create a table that defines the range, and you can then
create a query to look up that table and return the range number.

It takes a bit of effort to get this kind of query working. Tom Ellision
explains how in this article:
Lookup in a range of values in a query
at:
http://allenbrowne.com/ser-58.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


"Miriam" <Miriam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B34B564E-6955-41EB-8863-EB38810773DE@xxxxxxxxxxxxxxxx
After calculating an average, I need to classify each member as 1, 2, 3,
...
10. 1 = an average of 3.99 or lower, 2 = an average of 4.0 - 4.75, etc.

How can I set a field to a particular classification, or "handicap", based
on given ranges? Does this require coding or VBA, or can it be done
through a query?


.

.



Relevant Pages

  • Re: Finally which ORM tool?
    ... know that query expressions implicitly use lambda expressions. ... It's not a given there are lambda expressions involved. ... There will always be an expression tree if you implement IQueryable ... translation which uses lambda expressions, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: classify
    ... It takes a bit of effort to get this kind of query working. ... Low_Avg High_Avg Classification ... FROM YourTable, Translation ...
    (microsoft.public.access.queries)
  • RE: IIF with multiple requirement
    ... Use the translation table in your select query as criteria on like this ... Run select query to verify results. ... i can't create each single order the a ship-to code. ... Also I have already got some SHIPTO in the SHIPTO1. ...
    (microsoft.public.access.queries)
  • RE: IIF with multiple requirement
    ... Use the translation table in your select query as criteria on like this ... Run select query to verify results. ... i can't create each single order the a ship-to code. ... Also I have already got some SHIPTO in the SHIPTO1. ...
    (microsoft.public.access.queries)
  • RE: IIF with multiple requirement
    ... I join the translation table with my other table on with criteria: ... Use the translation table in your select query as criteria on like this ... i can't create each single order the a ship-to code. ... Also I have already got some SHIPTO in the SHIPTO1. ...
    (microsoft.public.access.queries)