Solved

update one table from another

Posted on 2013-11-18
4
235 Views
Last Modified: 2013-11-18
Hello, I need a little assistance with a simple update statement.

Update [dmr tracking] Set  [dmr tracking].PartCost  = [trna part number].[Piece Cost]
Where [dmr tracking].[part number] = [trna part number].[Part Number]

What am I doing wrong?
0
Comment
Question by:gogetsome
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Expert Comment

by:lcohan
ID: 39657731
update [dmr tracking]
      set [dmr tracking].PartCost  = [trna part number].[Piece Cost]
from [trna part number]
Where [dmr tracking].[part number] = [trna part number].[Part Number]
0
 

Author Comment

by:gogetsome
ID: 39657740
Hello, I'm getting the following error.

syntax error (missing operator) in query expression '[trna part number].[piece cost] from [trna part number]'.
0
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39657743
or this:


Update [dmr tracking], [trna part number] 
Set  [dmr tracking].PartCost  = [trna part number].[Piece Cost]
Where [dmr tracking].[part number] = [trna part number].[Part Number]

Open in new window

0
 

Author Closing Comment

by:gogetsome
ID: 39657748
Thanks man! You rock!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question