andyb7901
asked on
MS Access - Update records with last date
Hello,
I have a table with multiple rows of records under the same IDs. There is probably around 20,000 different IDs with about 100'000 rows. What I would need to do is link two tables on these ID numbers, and then find only the newest records from that client. So I would just want to see who approved the account most recently, and on what date? Something like;
I have a table with multiple rows of records under the same IDs. There is probably around 20,000 different IDs with about 100'000 rows. What I would need to do is link two tables on these ID numbers, and then find only the newest records from that client. So I would just want to see who approved the account most recently, and on what date? Something like;
UPDATE tbl_Master INNER JOIN tbl_DB_Dump ON tbl_Master.SPN = tbl_DB_Dump.SPN
SET tbl_Master.Approver = [tbl_DB_Dump].[Signature Name],
tbl_Master.[Approval Date] = [tbl_DB_Dump].[Signature Time]
WHERE tbl_Master.[Approval Date] = NEWEST DATE.
Why using an update when you want to see records. Are you just looking for the most recent data from tbl_Master for each SPN?
Kelvin
Kelvin
ASKER
Yeah pretty much
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Not sure what that other table was being used for
Kelvin
Kelvin
You'll probably need a group on for Approver
GROUP ON tbl_Master.SPN, tbl_master.Approver
Kelvin
GROUP ON tbl_Master.SPN, tbl_master.Approver
Kelvin
Open in new window