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 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
-
ARMO rootkit “Curing”
by
Alex5723
3 minutes ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
9 minutes ago -
Google AI is now hallucinating idioms
by
Alex5723
40 minutes ago -
april update
by
69800
1 hour, 12 minutes ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
1 hour, 35 minutes ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
1 hour, 47 minutes ago -
WuMgr not loading?
by
LHiggins
2 hours, 23 minutes ago -
Word crashes when accessing Help
by
CWBillow
5 hours, 28 minutes ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
1 hour, 26 minutes ago -
Blank Inetpub folder
by
Susan Bradley
10 hours, 6 minutes ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
11 hours, 58 minutes ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
18 minutes ago -
Wait command?
by
CWBillow
5 hours, 14 minutes ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
18 hours, 36 minutes ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
1 day, 1 hour ago -
Windows 10 finally gets fix
by
Susan Bradley
1 day, 10 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
1 day, 11 hours ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
1 day, 5 hours ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
2 days ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
2 days, 1 hour ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
24 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
6 hours, 36 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
2 days, 12 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
2 days, 16 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
2 days, 16 hours ago -
Unable to eject external hard drives
by
Robertos42
1 day, 3 hours ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
14 hours, 44 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
12 hours, 37 minutes ago -
Synology limits hard drives
by
Susan Bradley
3 days, 20 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
2 days, 23 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.