Exercise: Import cast table, and change fields to lookups

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

The answer to the exercise will be included and explained if you attend the Wise Owl courses listed below!

Category ==> Access 2010  (66 exercises)
Topic ==> Creating tables  (4 exercises)
Level ==> Average difficulty
Courses ==> Access Querying  /  Access Developers
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

You'll need to have already created a table of films and a table of actors to do this exercise.

In Access, choose to import the workbook called Cast.xlsx in the above folder into your database, to create a new table called tblCast

Rather than creating a new primary key, choose to use the existing column called CastId as the primary key.

This is what you should have when you double-click on the table to view its data:

The table of who plays what

The first few of the 833 records imported.

Now go into the table's design, and change the following fields to look up data from other tables:

Field Table to look up from Value to store Field to display
CastFilmId tblFilm FilmId FilmName
CastActorId tblActor ActorId ActorName

The first few records should look very different now when you double-click on the tblCast table (even though the values held haven't changed):

The first few films

The first few films as they should now appear.

Close this table down!

This page has 0 threads Add post