Solved

update query

Posted on 2011-02-22
2
243 Views
Last Modified: 2012-05-11
I have table TUBEDATA where each record has fields PartNumber and SerialNumber.

I have a second table CURRENT LOCATION with fields PartNumber and SerialNumber.  The records all have the SerialNumber but none the PartNumber

I need an update query to update all the records in table CURRENT LOCATION with PartNumber from table TUBEDATA.

Thanks,
Brooks
0
Comment
Question by:gbnorton
[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 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 34953329
try this update query

update [CURRENT LOCATION] as CL
Inner join TUBEDATA as TD
on CL.SerialNumber= TD.SerialNumber
set CL.Partnumber=TD.PartNumber
where CL.PartNumber is null
0
 

Author Closing Comment

by:gbnorton
ID: 34954748
Perfect.  Thanks!
Brooks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

730 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