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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Query From Excel 2

Status
Not open for further replies.

VC2002

Technical User
Nov 15, 2002
34
IE
Hi!

I'm running a query in Excel from an Access Database.

The table in Access has a date column and a price column, and contains about 3000 records.

I want to limit the query in Excel to the 200 most recent records.

Any ideas out there?!

Thanks,

VC
 
something like

SELECT TOP 200 Connections.ID, Connections.Temp
FROM Connections;



David Lerwill
"If at first you don't succeed go to the pub"
 
To get the 200 most recent you need an order by clause otherwise you get the first 200 records found.

eg ORDER BY tran_date DESC
 
Good point :)

David Lerwill
"If at first you don't succeed go to the pub"
 
Thanks a lot to both of you!

VC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top