Vlookup type function

S

Snara

Hello - I am considering transferring our data recording system from an Excel
Spreadsheet to an Access database. I work in a school and one of the key
things we do in Excel is to enter the test scores for students and use the
lookup function in the next column to automatically lookup their score and
return their grade. Does anyone know how I can do this in Access? If I create
a table with the scores and grade boundaries in Access and link this to the
students score field it only returns grades where the students have scored
the exact grade boundary.

Does anyone have any ideas? Many thanks

Natalie
 
J

John W. Vinson/MVP

If I create
a table with the scores and grade boundaries in Access and link this to the
students score field it only returns grades where the students have scored
the exact grade boundary.

Neither VLookUp nor the Access semi-equivalent DLookUp is appropriate
here. What you can do is tweak your query a little bit, using a "Non
Equi Join". Open the query that gives the exact boundary value and
choose View... SQL and post it here - or look in it for the JOIN
clause which will have something resembling

INNER JOIN Scores ON yourtable.Score = Scores.LowBoundary

to

INNER JOIN Scores ON yourtable.Score >= Scores.LowBoundary AND
yourtable.Score <= Scores.HighBoundary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top