My update query performs correctly, but I'm concerned about why when I test it with the warnings set as true, the number of rows referred to is zillions more than are actually being updated - well actually 146 when two were updated and 5183 when about 70 were updated!). The following is the SQL:
UPDATE BankingReturnqry INNER JOIN Receipts ON BankingReturnqry.PayingInNo = Receipts.PayingInNo SET Receipts.VATcode = [Forms]![BankingReturnfrm]![Combo29]
WHERE (((Receipts.VATcode)=[Forms]![BankingReturnfrm]![Combo33]) AND ((Receipts.IncomeType)=[Forms]![BankingReturnfrm]![Combo30])) OR (((Receipts.IncomeType)=[Forms]![BankingReturnfrm]![Combo30]) AND (([Forms]![BankingReturnfrm]![Combo33]) Is Null));
BankinReturnqry is based on fields in the table Receipts - Is this where the problem lies??
I'd be most grateful for ant assistance.
Ted.
UPDATE BankingReturnqry INNER JOIN Receipts ON BankingReturnqry.PayingInNo = Receipts.PayingInNo SET Receipts.VATcode = [Forms]![BankingReturnfrm]![Combo29]
WHERE (((Receipts.VATcode)=[Forms]![BankingReturnfrm]![Combo33]) AND ((Receipts.IncomeType)=[Forms]![BankingReturnfrm]![Combo30])) OR (((Receipts.IncomeType)=[Forms]![BankingReturnfrm]![Combo30]) AND (([Forms]![BankingReturnfrm]![Combo33]) Is Null));
BankinReturnqry is based on fields in the table Receipts - Is this where the problem lies??
I'd be most grateful for ant assistance.
Ted.