A
Arvin Villodres
Good day to everyone.
I have three tables in an update query and their fields are
as follows:
tblTransactionDetails tblTransactions tblCustomers
TransNo TransNo(PK) CustomerID(PK)
SubtotalSales CustomerID TotalSales
QtySales
Amount
I want to update TotalSales in tblCustomers with the sum of
SubtotalSales from tblTransactionDetails.
The Update To looks like this:
DSum("[SubtotalSales]","tblTransactionDetails",_
"[CustomerID]=" & [CustomerID])
but if I run this query this error appears "The specified
field '[CustomerID]' could refer to more than one table
listed in the FROM clause of your SQL statement."
I tried using ..."tblTransaction.[CustomerID] =" _
& tblCustomer.[CustomerID]) but the same error happens or
lock key or validation key error happens.
What should I do? Thanks for your help.
I have three tables in an update query and their fields are
as follows:
tblTransactionDetails tblTransactions tblCustomers
TransNo TransNo(PK) CustomerID(PK)
SubtotalSales CustomerID TotalSales
QtySales
Amount
I want to update TotalSales in tblCustomers with the sum of
SubtotalSales from tblTransactionDetails.
The Update To looks like this:
DSum("[SubtotalSales]","tblTransactionDetails",_
"[CustomerID]=" & [CustomerID])
but if I run this query this error appears "The specified
field '[CustomerID]' could refer to more than one table
listed in the FROM clause of your SQL statement."
I tried using ..."tblTransaction.[CustomerID] =" _
& tblCustomer.[CustomerID]) but the same error happens or
lock key or validation key error happens.
What should I do? Thanks for your help.