Question : Syntax Error in FOXPRO 6.0

I get syntax error in Visual Foxpro 6.0,

Error: missing (

Any help:

Update EMP SET Card_ID = (Select ACCT.card_acces from ACCT,EMP where upper(EMP.last_name) =
upperACCT.last) AND upper(EMP.first_name) =
upper(ACCT.first))

Really appreciate, any quick response

Answer : Syntax Error in FOXPRO 6.0

I am sure this kinf of update query does not work in VFP 6. If you switch to VFP 9 then you may use following syntax:

Update EMP SET EMP.card_id = ACCT.card_acces ;
  from ACCT ;
 WHERE upper(ACCT.last) = upper(EMP.last_name) ;
   AND upper(ACCT.first)= upper(EMP.first_name)
Random Solutions  
 
programming4us programming4us