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

microsoft.access.courses - looking up two field

Forum home » Delegate support and help forum » Microsoft Access Training and help » microsoft.access.courses - Looking up two field in another table and merging them

microsoft.access.courses - Looking up two field in another table and merging them

ResolvedVersion Standard

Linda has attended:
Access Intermediate course

Looking up two field in another table and merging them

I am trying to write a database where sheet A displays names from sheet B , and although the names are displayed in three fields in on sheet B, they should show as one field on the sheet A. Is possible?

RE: Looking up two field in another table and merging them

Hi Linda

This sounds like a combination of performing Maketable Query on Sheet B where a concatenation calculation of the name fields in Sheet B is required to create a new table named Sheet A

Steps are as follows
1. Perform a query on table = Sheet B
2. In the Query perform a calculation similar to the following

SheetB.field1 +SheetB.field2+SheetB.field3
or
SheetA.field1 +(" ")+SheetA.field2+(" ")+SheetA.field3 if spaces are required between the names

3. Select from the Query menu > Maketable query, and name table as Sheet A
4. Select Query> Run
5 Save query for later use




RE: Looking up two field in another table and merging them

The problem is sheet A already exists. The field with the info from sheet B is just one of many. I am literally trying to format one cell in sheet A to display three other cells from a different sheet sheet B. Creating sheet A from sheet B is not really an option, because ther is also going to be a sheet C & D from which similar information will need to be extracted. Any more ideas?

RE: Looking up two field in another table and merging them

Follw the same process Orok suggested, but instead of creating a new table, simply create a lookup from table A to the new query, pointing to the field that has the 3 names merged.

Access tip:

Related tables

When you have related tables such as Customers and their Orders, the Customer table is the Primary table.

Open the Customers table in datasheet view and go to the Home Tab and Records group. Click on the More option and choose Subdatasheet and then click on Subdatasheet again. Now choose the related table (Orders) and click ok.

Now you can click the + symbol by each company to show the related orders.

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.