Retrieving X number of records

Anauz

Registered User.
Local time
Today, 22:22
Joined
Nov 14, 2000
Messages
81
Hi

I have a form where the user enters a number x), I want to use this number to return the first X records in a query. Is this possible....if so can anyone help?

Thanx in advance
 
Modify your query like this:

original query:
SELECT field1, field2 FROM qrySample
New query:
SELECT TOP X field1, field2 FROM qrySample ORDER BY field1

The new query returns the first X records returned when the queryis sorted by field1.

ntp
 
Thats great, thanks very much. Is there a way i can pass the parameter X to the query so it returns X records?
 

Users who are viewing this thread

Back
Top Bottom