Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

linking data table table

Forum home » Delegate support and help forum » Microsoft Access Training and help » Linking data from table to table

Linking data from table to table

ResolvedVersion 2000

Emma has attended:
Access Introduction course
Access Intermediate course
Access Advanced course

Linking data from table to table

I would like to be able to use a drop down box to choose a field but have it related to another column in a different table?

eg.

A Company gets 5%
B Company gets 8%

the above info stored in one table

In another table I'd like to choose B Company and 8% automatically come up or that's the only number shown in the drop down box.

I'm sure this must be possible but not sure how, hope the above details my question well enough!

RE: Linking data from table to table

Hi Emma

As you probably found out you cannot create a Validation list in Excel that gets gata from another sheet.

In the attached file I used a basic formula to bring the company names from the "Percentages" sheet to the "Calculations" sheet and put them away from the main data.

The in the "Calculations" sheet I created a Data Validation list that takes the names from this list and uses them in the "Company Name" column.

Then I created a VLOOKUP that looks at the value in the "Company Name" column and then goes to the "Percentages" sheet and finds the matching Percentage.

This was combined with an IF statement that keeps the Percentage 0 until a name is placed in the "Company Name" column.

Hope this helps

Carlos

Attached files...

Linking Lists from Two Sheets.xls

Access tip:

Create a custom Close button on a Form

By default, Forms that you create in Access have a full set of control buttons, that is, a title bar with Minimize, Maximize and Close buttons in the top right-hand corner and a Control Menu in the top left-hand corner.



Sometimes Access needs to follow certain procedures or events as users close a Form (such as automatically opening another Form perhaps). So it is often a good habit to create a custom Close button on a Form for everyone to use, rather than the standard closing cross.



To create a custom Close button:

1) In Form Design View, draw a Command Button onto the Form.

2) Use the Command Button Wizard to select Form Operations under Categories, and Close Form under Actions.

3) Choose Finish.



Access then creates the button and code to close the form for you. You can add any extra code that needs to run as the Form closes to the same Close procedure.



However, the creation of a custom Close button is pointless if the closing X in the top right-hand corner of the Form remains active. To make the closing X inactive, open the Form Properties box then on the Format tab set the Close Button setting to No. This will grey out the closing X leaving it visible, but inactive.



View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.14 secs.