Access | Creating tables 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.

Software ==> Access  (66 exercises)
Version ==> Access 2010 and later
Topic ==> Creating tables  (4 exercises)
Level ==> Average difficulty
Subject ==> Access training
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!

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads Add post