update query

Posted on 2011-02-22
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.

Question by:gbnorton
LVL 120

Accepted Solution

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

Inner join TUBEDATA as TD
on CL.SerialNumber= TD.SerialNumber
set CL.Partnumber=TD.PartNumber
where CL.PartNumber is null

Author Closing Comment

ID: 34954748
Perfect.  Thanks!

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hit enter key to run macro 13 23
Access 2016 - Labels prompt to print 4 31
Dynamically Reorder List Box 4 38
My SQL as Backend for Access 3 14
This article is a continuation or rather an extension from Cascading Combos ( and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
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…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

770 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