ACC: Update Query on More Than One Table Gives Unexpected DataID: Q103990
|
Novice: Requires knowledge of the user interface on single-user computers.
An update query that tries to update more than one table may yield
unexpected results.
You should not update more than one table in an update query.
This behavior is by design.
If an update query in Microsoft Access is used to update two (or more) tables on the "many" side of a relationship, the resulting updated fields will be multiples of the updated value. Each value will be updated one time for each updated record in the corresponding table.
Table: Vendors
-----------------
Field Name: Name
Data Type: Text
Table: New Parts
--------------------
Field Name: Item
Data Type: Text
Field Name: Vendor
Data Type: Text
Field Name: Cost
Data Type: Number
Table: Rebuilt Parts
--------------------
Field Name: Item
Data Type: Text
Field Name: Vendor
Data Type: Text
Field Name: Cost
Data Type: Number
Name
----
Bob
Jill
Item Vendor Cost
-----------------------------
fender Bob 100.00
hood Jill 50.00
trunk Bob 100.00
Item Vendor Cost
----------------------------
Pump Bob 10.00
Fan Jill 45.00
Pulley Bob 20.00
Piston Bob 30.00
Query: Example Query
---------------------------------------------------
Type: Update Query
Join: [New Parts].[Vendor] <-> [Vendors].[Name]
Join: [Rebuilt Parts].[Vendor] <-> [Vendors].[Name]
Field: Name
Table: Vendors
Criteria: "Bob"
Field: Cost
Table: New Parts
Update To: [New Parts].[Cost] * 2.0
Field: Cost
Table: Rebuilt Parts
Update To: [Rebuilt Parts].[Cost] * 2.0
For more information about update queries, search the Help Index for "update queries," or ask the Microsoft Access 97 Office Assistant.
Additional query words: action
Keywords : QryMktbl
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 26, 1999