Dec 8, 2004 #1 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
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
Dec 8, 2004 1 #2 dwlerwill Technical User May 25, 2001 329 something like SELECT TOP 200 Connections.ID, Connections.Temp FROM Connections; David Lerwill "If at first you don't succeed go to the pub" Upvote 0 Downvote
something like SELECT TOP 200 Connections.ID, Connections.Temp FROM Connections; David Lerwill "If at first you don't succeed go to the pub"
Dec 8, 2004 1 #3 cheerio Technical User May 23, 2002 606 GB 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 Upvote 0 Downvote
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
Dec 8, 2004 #4 dwlerwill Technical User May 25, 2001 329 Good point David Lerwill "If at first you don't succeed go to the pub" Upvote 0 Downvote
Dec 8, 2004 Thread starter #5 VC2002 Technical User Nov 15, 2002 34 IE Thanks a lot to both of you! VC Upvote 0 Downvote