Looking to display the last 100 records entered in database

Trisha

Registered User.
Local time
Today, 03:34
Joined
Jan 24, 2013
Messages
18
Hello,
I seem to be banging my head of the wall with this one but I am looking for a way to either display through a query with an expression or any other alternative that someone may have to display the last 100 records entered maybe based on date entered or something.
At the moment i have a query and report going form start date to end date but would also like a query/report that will just show me the last 100 records entered. :banghead:
 
Hmm, something like...

Code:
SELECT TOP 100 * FROM [YourTableNameHere] ORDER BY YourDateFieldHere
DESC;
 
Hi Ginawipp,

Not really the top 100 by date but the last 100 records entered rather than having to enter from date to date. If i am explaining myself correctly. Sorry if i am vague.
 
When you put the query in the QBE Grid you should be able to add your Between() statement but leave the date descending part, i.e.

Code:
WHERE BETWEEN [Enter Start Date] AND [Enter Ending Date]
 
It seems in this case the date has no bearing. So like Dan asked there should be an autonumber sequence that would help in determining the last 100.

The code from Gina is fine, you just need to swap the date field for the auto incremented field. If you don't then you would have to use Last.
 
Please post the SQL of your query here and let's see what you have.
 
Thanks GinaWhipp will do when i get back to office
Thank you so very much,
 

Users who are viewing this thread

Back
Top Bottom