displaying last/first n records where n is a variable (1 Viewer)

ivanteo

Registered User.
Local time
Today, 23:22
Joined
Mar 5, 2002
Messages
31
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!
 

David R

I know a few things...
Local time
Today, 17:22
Joined
Oct 23, 2001
Messages
2,633
SELECT TOP N....

You'll have to specify what the sort order is, and (I believe) build your query in VBA, since you can't pass variables directly from VBA to stored queries.
 

ivanteo

Registered User.
Local time
Today, 23:22
Joined
Mar 5, 2002
Messages
31
Thank you for your reply!
i'm not very familiar with VBA codes and was wondering if you could help me?
 

Users who are viewing this thread

Top Bottom