Making the Recordings Table

You have come a long way.  Now we're going to make a table that keeps track of the recordings in your collection.  In the "Database Window", Choose "Create table in Design view" again.  Hit "New" and follow the steps we did in the first lesson.

Below are the names of the fields you will need.

You'll notice that the RecordingNumberID is the Primary Key.  Just as we did in the Artist Table, you can establish the Primary Key last.  Essentially, the RecordingNumberID is what I use to make each record unique.  I recommend that you use the Access "Auto Number" feature as we did last time we established a Primary Key. If you're really serious about your music, you can use the Recording number issued on the CD or recording cover or case.  If you choose the latter, your "Data Type" will be "Text" as you see in the example above, rather than "Auto Number", but it will still need to be your Primary Key as it is unique.

Making the Primary Key for the Recordings Table

To establish the Primary Key for the Recordings Table, make a new Field Name called RecordingNumberID as I have done.  Press Enter or Tab and choose "Auto Number" as your "Data Type. Hit the little key icon in the toolbar or select "Edit => Primary Key", and you've got a Primary Key for this table.  Save your table. 

Let's add some records to our new Recordings Table.  Click on "View => Datasheet View" and you'll switch to "Datasheet View" where you may enter your records.  Enter a few records and save your table.  You must enter the correct ArtistID in the Recordings Table.  If you don't, you will have problems creating a relationshipe between your two tables.  

By the way, there are icons in the toolbar that allow you to switch views.  More Zoped.

Now, we're ready to establish a relationship between the two tables. 

Forming Relationships

Save and close all your tables and make sure the Database Window is open.

Click on the little relationships icon in the toolbar or go to "Tools => Relationships..." in the menu bar.  A large, blank window opens.  Now you will see another little icon in the toolbar.  You can click that icon or go to "Relationships => Show Tables..." to select the tables you want to place in the Relationships window.  Below is what you will see.

Relationships in Access can get messy and confusing!  (Not like in real life, eh?)  For an explanation of the Primary Key concept along with examples and illustrations, see the website "Access to Relationships"  in this series of tutorials. 

Now, you can enter records into either of your Tables.  The next lesson will show you how to make a form for easier data entry.  For now, you've earned a break.

Go on to Creating a Form.