473,385 Members | 1,275 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to link a table with multiple columns to another table

1
I have an Access Database for inventory tracking. I have a task list where someone could request a part by typing in their name/due date/part number etc...

I have created a table with the part numbers and their corresponding description. The task list I have already has a part number drop down box so users can select the part they need, however I want the corresponding part description to come up to on the task list for additional accuracy.

How can I link these two tables together so that when a user selects a part number on the task list that the correct description comes up to?
Jul 11 '18 #1
3 1139
twinnyfo
3,653 Expert Mod 2GB
qj15,

Welcome to Bytes!

The easiest way to do this is to change the RecordSource for your Combo Box. Create a query that joins the two tables, providing for the Part Number and the Descsription.

Without having any additional information on your two tables, we can't provide any more detailed responses. However, this seems to be the direction you would go.
Jul 11 '18 #2
PhilOfWalton
1,430 Expert 1GB
I would (at my peril) disagree with twinnyfo.

Set up the Combo Box (Let's call it CboParts) with 3 columns and the underlying query something like

Expand|Select|Wrap|Line Numbers
  1. SELECT PartID, PartNo, PartDescription FROM TblParts ORDER BY PartNo
  2.  
Column widths (Metric) 0,2,5. - Play with this till it is right.
Bound Column is Column 1

Then create a text box with text box with the ControlSource
Expand|Select|Wrap|Line Numbers
  1. = CboParts.Column(3)
  2.  
Note you do need the equals sign at the beginning of the ControlSource.

So Column(1) is the PartID, Column(2) is the PartNo, and Column(3) is the part description.

Phil
Jul 11 '18 #3
twinnyfo
3,653 Expert Mod 2GB
@Phil,

Not disagreeing with you here. But, your solution is exactly what I described. OP makes it sound as if the Part and additional description are in two tables....

;-)
Jul 11 '18 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Leonardo Gangemi | last post by:
How to align right a table based on another table created dinamically? Leonardo
3
by: turtle | last post by:
I have Two tables (Table1 and Table2). Both tables have a common field called part number. Table 1 contains an extra field that i would like to update table 2 to match if the part number matches....
4
by: Farraige | last post by:
Hi I need your help... I am implementing the method that updates given table (table is represented as list of lists of strings) according to other table (some kind of merging)... This method...
2
by: Bone | last post by:
Hello, first off I have generally been able to find most the info I needed by searching through the board for it. However I couldnt find anything pertianing to this so I decided it was probably time...
3
by: Ronald S. Cook | last post by:
I have a table of keywords (hundreds/thousands of records): KeywordID KeywordName --------- ----------- 1 Apple 2 Orange 3 Pear I then have a table of...
40
by: mate | last post by:
I have a table like this: ID Item1 Item2 item3 Item4 1 pen chair ruler table 2 ruler pencil chair pen 3 table ruler pen chair 4 pencil ...
1
by: LogicMechanic | last post by:
I need to add a constraint to every varchar column in an entire database to not allow '<script>' to be inserted or updated. Any resource you know of that would explain how I would go about this? I...
2
by: omar999 | last post by:
hi guys I hope the thread title is self explanatory but im basically I've got a rather large ms sql table which is populated with data taken from an excel spreadsheet. Problem is that there are...
1
by: Arielle | last post by:
Problem: I have a few related tables that collects information about a given publication. The information collected varies based on the type of collection and is stored in a few different tables. ...
4
by: webtechbharathi | last post by:
How do I send one table values to another table with new fields? <?php include("menu.php"); include("db.php"); //$id=$_REQUEST; $min=$_REQUEST; $exam=$_REQUEST; $class=$_REQUEST; ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.