Link to home
Start Free TrialLog in
Avatar of pdvsa
pdvsaFlag for United States of America

asked on

Update Qry

Experts,

I need to update the tblLetterOfCredit.Amount to the value from Import_LC_Amount but only for tblLetterOfCredit.Currency = USD.

tblLetterOfCredit.Currency has a row source qry of:
SELECT tblCurrencyExchange.CurrencyID, tblCurrencyExchange.Currency FROM tblCurrencyExchange;

this is what I have now joined on [LCNo] to [JP Morgan Reference] and need the USD part:
UPDATE IMPORT_LC_AMOUNTS INNER JOIN tblLetterOfCredit ON IMPORT_LC_AMOUNTS.[JP Morgan Reference] = tblLetterOfCredit.LCNo SET tblLetterOfCredit.Amount = [Import_LC_Amount].[Issued amt];

anything else please let me know
Thank you
ASKER CERTIFIED SOLUTION
Avatar of markterry
markterry

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pdvsa

ASKER

I guess I had it wrong.  I am updating tblLetterofCredit

Update tblLetterOfCredit
SET tblLetterOfCredit.Amount = [Import_LC_Amount].[Issued amt];
from tblLetterOfCredit
Where tblLetterOfCredit.Currency = [Import_LC_Amount].[Currrency]

See something wrong with that?
Avatar of markterry
markterry

Should work
As always, backup your database before making any mass updates like that.