How to Fix Access Update Query Based on Latest Payment
Question details
The user needs to resolve an issue where Microsoft Access reports an update query as not updateable when using grouped or totals queries to find the latest payment for a client.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Attempting to update a client table with the latest payment details using grouped or totals queries.
- Observed behavior
- Access blocks the update, stating the query is not updateable, particularly when ties on the payment date are resolved by PaymentID.
Before modifying your database queries, ensure you have a recent backup of your Access database file (.accdb or .mdb) to prevent accidental data loss during update operations.
Create a Saved Updateable Query and Join to Client Table
Bypass the 'not updateable' error by using a saved intermediate query that selects the maximum date and ID, then joining it to the target table for the update.
Microsoft Access restricts update operations on queries that contain aggregate functions (like GROUP BY or MAX). To solve this, you must separate the aggregation logic from the update logic.
Open the Query Design view and create a new query that selects the maximum PaymentDate for each client.
Add a condition in the query to select the highest PaymentID for that specific date. This ensures ties are resolved properly and only one payment per client is returned.
Save this query as a standalone object in your Access database, for example, 'qryLatestPayment'.
Create a new update query. Join your saved 'qryLatestPayment' to your main client table using the Client ID field, map the fields you want to update, and execute the query.

Prevent Invalid Duplicates at Data Entry
Ensure clean data entry so that resolving ties becomes simpler or unnecessary.
Looking for a Free, Lightweight Alternative to Microsoft Office?
While WPS Office does not include a database management tool like Access, it provides a powerful, free alternative for Word, Excel, and PowerPoint. If you frequently export your Access database reports to spreadsheets or documents, WPS Office offers seamless compatibility with Microsoft formats in a lightweight, easy-to-use package.

Frequently Asked Questions
Why does Access say my query is 'not updateable'?
Access cannot update records when the query includes aggregate functions (like GROUP BY, SUM, or MAX) because it cannot trace the aggregated result back to a single, specific row in the underlying tables.
Should I store the latest payment amount in the client table?
Generally, no. Storing a redundant value violates good database design principles (data normalization). It is usually better to calculate the last payment dynamically using a query unless database performance requires caching the value.
Can multiple payments on the same date cause query errors?
Yes, if your query relies solely on the date to find the latest record, multiple payments on the same date will cause a tie. To handle this, include a unique identifier like PaymentID to resolve ties and ensure the query returns a single record per client.




