Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Update query involving 2 tables

Posted on 2013-05-20
2
Medium Priority
?
304 Views
Last Modified: 2013-05-20
access 2013

I have database:
2 tables

tbl_Slang
3 fields
id-autonumber
fldSlang -text
fldDescriptor - text

tbl_Data
3 fields
id-autonumber
fldDescriptor
fldTerm

fldDescriptor is the common field between the two tables




What I need:
I need a vba routine that will update a field in tbl_Data(fldTerm)
with the data from the field fldSlang from the tbl_Slang Table


tbl_Slang:
fldSlang                                     fldDescriptor
TUG BOATS                                Switch Grip-lok Handy Box
TUGGER                                       Cable Puller
VERMITTI                                        Platform Lifter
WHIP                                          Electrode Holder

Before Update:


tbl_Data
fldDescriptor                                fldTerm
Switch Grip-lok Handy Box
Cable Puller
Platform Lifter
Electrode Holder


After Update:

tbl_Data
fldDescriptor                                fldTerm
Switch Grip-lok Handy Box           TUGBOATS
Cable Puller                                  TUGGER
Platform Lifter                              VERMITTI
Electrode Holder                           WHIP

Thanks
fordraiders
0
Comment
Question by:fordraiders
[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 22

Accepted Solution

by:
Flyster earned 2000 total points
ID: 39182201
See if this works for you:
UPDATE tbl_Data INNER JOIN tbl_Slang ON tbl_Data.fldDiscriptor = tbl_Slang.fldDescriptor SET tbl_Data.fldTerm = [tbl_Slang]![fldSlang];

Open in new window

Flyster
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 39182275
Thanks very much
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

610 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