I have a query containing a list of account numbers with payments against them and the account balance which changes on each new payment. The list also has a alpha/numeric system time stamp which increases each time a new payment is made.
What I want to do is identify the last account balance on each account so this can be used on a statement.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
query last record (Access 2k)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » query last record (Access 2k)
- This topic has 4 replies, 3 voices, and was last updated 21 years, 7 months ago.
AuthorTopicWSDesperateDan
AskWoody LoungerNovember 3, 2003 at 2:03 pm #395997Viewing 3 reply threadsAuthorReplies-
Ulrike Turner
AskWoody Plus -
Ulrike Turner
AskWoody Plus -
WSAlexya1
AskWoody LoungerNovember 3, 2003 at 2:29 pm #738906I’d do this in two queries…
First, in a Totals query… Group on the Account number field, and use Max on the Payment Date/Time field… That should give you the most recent payment date for each account…
Then I’d make a second query with an Inner Join of the original query and the totals query, joining on account number… The join will find records in both tables where the account number data matches…. In this query select the Date/Time field from the totals query and the account balance field from the original query…
This should get you what you’re looking for… HTH
-
WSAlexya1
AskWoody LoungerNovember 3, 2003 at 2:29 pm #738907I’d do this in two queries…
First, in a Totals query… Group on the Account number field, and use Max on the Payment Date/Time field… That should give you the most recent payment date for each account…
Then I’d make a second query with an Inner Join of the original query and the totals query, joining on account number… The join will find records in both tables where the account number data matches…. In this query select the Date/Time field from the totals query and the account balance field from the original query…
This should get you what you’re looking for… HTH
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
-
CD/DVD drive is no longer recognized
by
WSCape Sand
14 minutes ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
2 hours, 5 minutes ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
11 minutes ago -
What is wrong with simple approach?
by
WSSpoke36
3 minutes ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
11 hours, 35 minutes ago -
Location, location, location
by
Susan Bradley
51 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
13 hours, 1 minute ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
3 hours, 45 minutes ago -
June 2025 Office non-Security Updates
by
PKCano
23 hours, 47 minutes ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
5 hours, 50 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
23 hours, 43 minutes ago -
How start headers and page numbers on page 3?
by
Davidhs
1 day, 10 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
12 hours, 49 minutes ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
1 day, 18 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
1 day, 18 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
1 day, 8 hours ago -
Firefox 139
by
Charlie
1 day, 1 hour ago -
Who knows what?
by
Will Fastie
3 hours, 29 minutes ago -
My top ten underappreciated features in Office
by
Peter Deegan
1 day, 19 hours ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
52 seconds ago -
Misbehaving devices
by
Susan Bradley
15 hours, 16 minutes ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
3 days, 1 hour ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
21 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
3 days ago -
Discover the Best AI Tools for Everything
by
Alex5723
1 day, 23 hours ago -
Edge Seems To Be Gaining Weight
by
bbearren
2 days, 14 hours ago -
Rufus is available from the MSFT Store
by
PL1
2 days, 22 hours ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
4 days, 1 hour ago -
KB5061768 update for Intel vPro processor
by
drmark
2 days, 1 hour ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
1 day, 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.