Is there a syntax in SQL that will allow me to select only the last 5 transactions record for each customer?
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Last 5 records (Access 2K)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Last 5 records (Access 2K)
- This topic has 4 replies, 3 voices, and was last updated 21 years, 1 month ago.
AuthorTopicWSkucingtidur
AskWoody LoungerMarch 31, 2004 at 2:03 pm #403068Viewing 3 reply threadsAuthorReplies-
WBell
AskWoody_MVPMarch 31, 2004 at 2:21 pm #807509That is largely dependent on the record structure. Assuming that you have a method for sorting them that shows you the most recent record first, you can use the TOP option to specify the top 1,2 5, 10 or whatever. You can also set that in the QBE view by displaying the properties for the query and replacing ALL in Top Values with 5.
-
WBell
AskWoody_MVPMarch 31, 2004 at 2:21 pm #807510That is largely dependent on the record structure. Assuming that you have a method for sorting them that shows you the most recent record first, you can use the TOP option to specify the top 1,2 5, 10 or whatever. You can also set that in the QBE view by displaying the properties for the query and replacing ALL in Top Values with 5.
-
WSShane Sargent
AskWoody LoungerMarch 31, 2004 at 2:21 pm #807511Assuming you have a time/date stamp, transaction# and customer# in the transaction table, base a new query on the transaction table and bring down the fields in the order that I listed them, making sure the time/date stamp is the furtherst to the left. Sort descending by date/time stamp. Add criteria so you select transactions for the customer you wish. Right click in the top pane of the query designer and chose Properties. You’ll see a Top Values property you can set — enter the number 5 to get the last five transactions.
-
WSShane Sargent
AskWoody LoungerMarch 31, 2004 at 2:21 pm #807512Assuming you have a time/date stamp, transaction# and customer# in the transaction table, base a new query on the transaction table and bring down the fields in the order that I listed them, making sure the time/date stamp is the furtherst to the left. Sort descending by date/time stamp. Add criteria so you select transactions for the customer you wish. Right click in the top pane of the query designer and chose Properties. You’ll see a Top Values property you can set — enter the number 5 to get the last five transactions.
Viewing 3 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Inetpub can be tricked
by
Susan Bradley
46 minutes ago -
How merge Outlook 2016 .pst file w/into newly created Outlook 2024 install .pst?
by
Tex265
2 hours ago -
FBI 2024 Internet Crime Report
by
Alex5723
3 hours, 16 minutes ago -
Perplexity CEO says its browser will track everything users do online
by
Alex5723
41 minutes ago -
Login issues with Windows Hello
by
CWBillow
14 hours, 22 minutes ago -
How to get into a manual setup screen in 2024 Outlook classic?
by
Tex265
2 hours, 16 minutes ago -
Linux : ARMO rootkit “Curing”
by
Alex5723
1 day, 1 hour ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
1 day, 2 hours ago -
Google AI is now hallucinating idioms
by
Alex5723
1 day, 2 hours ago -
april update
by
69800
4 hours, 43 minutes ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
1 day, 3 hours ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
1 day, 3 hours ago -
WuMgr not loading?
by
LHiggins
1 day, 4 hours ago -
Word crashes when accessing Help
by
CWBillow
7 hours, 44 minutes ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
1 day, 3 hours ago -
Blank Inetpub folder
by
Susan Bradley
1 day ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
1 day, 13 hours ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
1 day ago -
Wait command?
by
CWBillow
1 day, 7 hours ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
1 day, 20 hours ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
2 days, 3 hours ago -
Windows 10 finally gets fix
by
Susan Bradley
2 days, 11 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
2 days, 13 hours ago -
How to use Skype after May?
by
Joann
21 hours, 36 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
2 days, 7 hours ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
3 days, 2 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
3 days, 3 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
7 hours, 17 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
1 day, 8 hours ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
3 days, 14 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.