Update a Microsoft Access Field from Another Table
Question details
Update a field in one Access table using a value selected from another table.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A user wants to assign a value from the TimeRange table to the AAA field in the ABCD table.
- Observed behavior
- The desired result is for the update query to select one appropriate BankBal value and assign it to the target field.
Confirm that ABCD.AAA and TimeRange.BankBal have compatible data types and identify which source record should supply the value. Decide whether every row in ABCD should be updated or whether you need a WHERE condition.
Use a SELECT TOP 1 subquery in an Access UPDATE query
Use this approach to assign one value from TimeRange to the selected rows in ABCD.
In Access, open the database, select Create > Query Design, and switch to SQL View.
Enter: UPDATE ABCD SET AAA = (SELECT TOP 1 BankBal FROM TimeRange); Replace the table and field names if yours differ.
If TimeRange contains multiple records, add an ORDER BY clause inside the subquery using fields that uniquely determine the intended record. Without an ordering, TOP 1 does not guarantee which value is selected.
Add a WHERE clause after the subquery if only certain ABCD records should change. Without it, the query updates every row in ABCD.
Select Run on the query ribbon, confirm the update, and open ABCD to check the AAA values.

Work with Office files alongside your Access database
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make it easy to move everyday file workflows to WPS. It does not run or repair Microsoft Access database queries.

Frequently Asked Questions
Will this query update every record in ABCD?
Yes, unless you add a WHERE clause to the UPDATE statement. Add the condition after the subquery to restrict which ABCD rows are changed.
How do I choose which BankBal value TOP 1 returns?
Add an ORDER BY clause inside the subquery using the relevant sorting fields and a unique tie-breaker. Without an ORDER BY clause, the selected row is not guaranteed.
What happens if TimeRange has no matching value?
The subquery can return Null. Check that the source contains an appropriate row and that the target field permits Null before running the update.
Should I store a copy of a value from another table?
Not always. If the value can be calculated or retrieved when needed, use a SELECT query to avoid maintaining redundant data. Store a copy when the workflow requires a snapshot or another justified record of the value.




