Others

How to Fix Access Update Query Based on Latest Payment

Natalie TaylorNatalie Taylor Oct 29, 2026 870 views

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.

How to Fix an Access Update Query Based on the Latest Payment
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 you start

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.

Solution 1Recommended

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.

1
Create the latest payment query

Open the Query Design view and create a new query that selects the maximum PaymentDate for each client.

2
Handle duplicate dates

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.

3
Save the query

Save this query as a standalone object in your Access database, for example, 'qryLatestPayment'.

4
Build the update query

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.

Create a Saved Updateable Query and Join to Client Table
Database Design Tip: Avoid storing redundant payment totals in the client table unless there is a clear business requirement. Calculating the last payment on-the-fly is usually a better database practice.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Excel (.xlsx), Word (.docx), and PowerPoint (.pptx) formats for all your exported database reports.Lightweight design ensures fast loading times, even when handling large exported data sets.Familiar tabbed user interface makes it easy to switch from Microsoft Office without a learning curve.Free to use, offering powerful data analysis tools in WPS Spreadsheets without the subscription cost.
microsoft office alternative - wps office

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.