troubleshooting Question

Create Query using Relative "VLookup" type function

Avatar of ImageryGrl
ImageryGrlFlag for United States of America asked on
Microsoft Access
4 Comments1 Solution609 ViewsLast Modified:
I am programming a bonus calculator and have one table that lists payouts based on ranges of attainment scores.  The other table calculates the attainment percentage.  What I need is a way to pull the payout index into the "Sales_results" table (or a new make-table).  I have tried a DLookup, Max combination but was not able to figure out the syntax.    In Excel, this would be a simple VLookup using a TRUE to make it relative, but I don't know how to do it in access.  

Payouts
Plan       Attainment   payout                
Plan_1    0                0
Plan_1    100            5.4
Plan_1    110            5.7
Plan_1    120            6
Plan_2 ...

Sales_Results
Empee   Plan     Quota         Results   Attainment    These should result in the following payouts
1           Plan_1    100,000   105,000    105                                                                 5.4
2           Plan_1    125,000   100,000     0                                                                     0
3           Plan_1    100,000   120,000     120                                                                 6
4           Plan_2 ....

I look forward to seeing your brilliant solutiions!  ;-)

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros