Hi, I have a update query in which I only want to update all records within my main table that is equal to the criteria set in the second table of USD. My problem is that since the CURRENCY field doesn't exist in the main table, the update query loops over and over again. My main table has 126007 but when I try to update, the query is updating 997097 records. See below the update query...Thanks in advance....
UPDATE Calculation_Strategy_Price_Tbl INNER JOIN Strategy_Off_Invoice_Rebate_Tbl ON (Calculation_Strategy_Price_Tbl.CUSTOMER_SOLD_TO_NUMBER = Strategy_Off_Invoice_Rebate_Tbl.CUSTOMER_CODE) AND (Calculation_Strategy_Price_Tbl.PRODUCT_FAMILY = Strategy_Off_Invoice_Rebate_Tbl.PRODUCT_FAMILY) SET Calculation_Strategy_Price_Tbl.OFF_INVOICE_REBATE_OFFSET = [Strategy_Off_Invoice_Rebate_Tbl].[REBATE_VALUE]
WHERE (((Strategy_Off_Invoice_Rebate_Tbl.CURRENCY)="USD"));
UPDATE Calculation_Strategy_Price_Tbl INNER JOIN Strategy_Off_Invoice_Rebate_Tbl ON (Calculation_Strategy_Price_Tbl.CUSTOMER_SOLD_TO_NUMBER = Strategy_Off_Invoice_Rebate_Tbl.CUSTOMER_CODE) AND (Calculation_Strategy_Price_Tbl.PRODUCT_FAMILY = Strategy_Off_Invoice_Rebate_Tbl.PRODUCT_FAMILY) SET Calculation_Strategy_Price_Tbl.OFF_INVOICE_REBATE_OFFSET = [Strategy_Off_Invoice_Rebate_Tbl].[REBATE_VALUE]
WHERE (((Strategy_Off_Invoice_Rebate_Tbl.CURRENCY)="USD"));