Microsoft
Software
Hardware
Network
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
Loop through each table, then Find & Replace
In Access 2007,
Some Excel 2007 worksheets open with blue screen (previous thread no help)
Microsoft, Access, 2007, Call sub without return
After update subform, then update the main form field
OWA Exchange 2003 Not Working
Internal LAN to External Ping
Is there a way to keep track of microsoft licensing on many servers rather than manually keeping track?
SBS Backup - 'The saved selection file "Script.bks" cannot be found.'
Mersenne Primes algorithm