Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inner Join update querry

Status
Not open for further replies.

billheath

Technical User
Mar 17, 2000
299
US
i have and inner join query that has been working for several years. HOWEVER, 2 OR 3 WEEKS AGO, IT BEGAN GIVING A WRONG SOLUTION TO ONE FIELD. The code is:
DoCmd.SetWarnings (False)
strsql = "UPDATE [Etrade 6473] INNER JOIN Stock_Data ON [Etrade 6473].F1 = Stock_Data.Symbol SET Stock_Data.Current_Val = [Etrade 6473].[f2];"
DoCmd.RunSQL strsql
DoCmd.SetWarnings (True)

All of the records except 1 is updating correctly. These are a list of about 50 Stock prices which I update daily.
I have checked both tables and the one not working is listed correctly.
Is there an error in the code?
Thanks
 
Paste those record(s) into Excel to see what's going on. Is there a form open to that record so it might be locked?

Duane
Vevey, Switzerland
Hook'D on Access
MS Access MVP 2001-2016
 
Thank you. That helped to find the error
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top