Hi, i'm trying to query the last/first n records of a table and n is a variable which is entered by the user in a form. any help? thanks in advance!