Question : Update and Join gives syntax error (missing operator)

I am using Access 2002 on Win XP(Home).

I am trying to use the following UPDATE statement to update PURCHASE_ORDER  column in MM_CUSTOMER_INFO with a column with same name and type Text(240) from MM_STMT based on an inner join on columns which are of the same type (Number). The tables have a 1:M relation in the direction of MM_CUSTOMER_INFO to MM_STMT.

UPDATE MM_CUSTOMER_INFO  
SET MM_CUSTOMER_INFO.PURCHASE_ORDER = MM_STMT.PURCHASE_ORDER  
 FROM MM_CUSTOMER_INFO  
INNER JOIN MM_STMT  
ON MM_CUSTOMER_INFO.CUST_NBR = MM_STMT.ACCT_NBR;

This syntax works in SQL SERVER 2000 on the same tables with the same data. But on Access, I keep getting the syntax error (missing operator)  at the = MM_STMT.PURCHASE_ORDER part.

What am I missinng? I know that this question has been answered many time and I have compared my syntax with almost all the accepted answers but i could not find out what is wrong ...

Answer : Update and Join gives syntax error (missing operator)

Access likes you to put the join statement before the Set such as:

UPDATE MM_CUSTOMER_INFO INNER JOIN MM_STMT  
ON MM_CUSTOMER_INFO.CUST_NBR = MM_STMT.ACCT_NBR
SET MM_CUSTOMER_INFO.PURCHASE_ORDER = MM_STMT.PURCHASE_ORDER;
Random Solutions  
 
programming4us programming4us