I have a table that basically has the following fields, Date, test_score and student ID. Date is the key field. I would like to write a vba or sql routine that would query the table and return the lowest 5 of the last 8 scores per student ID to a query. I'm stumped as to how to go about this. I'm asuming I would use Dlookup. It's been awhile since I have wrote code and I'm a little rusty. Thanks for any help.