J
JK
A couple of guys helped me create a function that takes the 8,000+ customers
in my customer table and using the "Invoiced This Year" field ($) creats
another table with five break points. I'm using this new table to create a
five star rating system. Based on the Invoiced This Year field in my customer
table (which is updated nightly) the function does a calculation on the
entire table and gives me a min - max for each break point 1 - 5 (see below.)
So now I have a table called "ScoresTable" and it looks like this in
datasheet.
TopX MaxBreak MinBreak
5 18790390.9 4594.24
4 4594.24 2223.6
3 2223.6 1082.98
2 1082.98 450
1 450 .12
My main customer table is called tblCompanies and the field in question is
called InvThisYr; it's a Number - Decimal field.
If the customer's InvThisYr value is $500 I want to compare it against the
ScoresTable and display the number 2; If a customer's InvThisYr amount is
$3000, I want to display 4 - and so on...
Any idea how I could do this comparison? I thought this part of the project
was going to be easier that it appears to be. And I don't want to ask the
guys that initially helped me becuase they've done a lot already.
Any help would be appreciated.
in my customer table and using the "Invoiced This Year" field ($) creats
another table with five break points. I'm using this new table to create a
five star rating system. Based on the Invoiced This Year field in my customer
table (which is updated nightly) the function does a calculation on the
entire table and gives me a min - max for each break point 1 - 5 (see below.)
So now I have a table called "ScoresTable" and it looks like this in
datasheet.
TopX MaxBreak MinBreak
5 18790390.9 4594.24
4 4594.24 2223.6
3 2223.6 1082.98
2 1082.98 450
1 450 .12
My main customer table is called tblCompanies and the field in question is
called InvThisYr; it's a Number - Decimal field.
If the customer's InvThisYr value is $500 I want to compare it against the
ScoresTable and display the number 2; If a customer's InvThisYr amount is
$3000, I want to display 4 - and so on...
Any idea how I could do this comparison? I thought this part of the project
was going to be easier that it appears to be. And I don't want to ask the
guys that initially helped me becuase they've done a lot already.
Any help would be appreciated.