Solved

update one table from another

Posted on 2013-11-18
4
234 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
  • 2
4 Comments
 
LVL 39

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Documents and settings folder 30 76
Need to Populate a MS Access Table via VBA Code 3 23
Help Required 3 90
T-SQL Default value in Select? 5 22
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

813 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now