Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select only the last 40 records

Status
Not open for further replies.

LouisC4

Programmer
Jul 26, 2003
54
US
Hi All,

Is there a way to do an SQL SELECT to select only the last 40 records of a table?

TIA,

Louis
 
This should work provided there are no deleted records in the table:

select * from Table where recno() > (reccount() -40)

Darrell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top