Question : Rquire simpler than multiple iif, or, and combination

I require guidance to find a simpler and quicker solution than a serie of iif (and and or) statements.

Each record (100,000) has 2 quantitative entries each from 1 to 15.  (X and Y values).
In a table (15X15), each intersection correspond to a 'qualitative' expression.

I can query the records with iif statements as follow:
iif(x<=7, "very good', iif (x=6 and y>8, "could be better", iif(.........

That solution is extremely slow.  For some reason, I cannot get my head around a solution in VBA either..

Can someone point me in the right direction?

Thanks

Answer : Rquire simpler than multiple iif, or, and combination

That's right. The same number of cells your matrix have. Anyway your data have 100000 records and you will have to write all the combinations in some way.

Using queries your code is simpler and the performance of your application profits from the years of investigation in SQL optimization.
Random Solutions  
 
programming4us programming4us