Microsoft Access 2
Microsoft Access 2
1.
2.
3.
Your new database has now been created. It's a blank database with a table that is ready
to be configured.
You'll see the menu at the top, and the Ribbon below it containing various options for
customizing your database. We'll be working with them throughout this tutorial.
First, we're going to add a field to the existing table. Then we'll rename the existing field..
1.
In this case, we're telling Access to only allow Short Text in this field. If a user tries
to enter a different data type, they will receive an error.
2.
3.
Enter ArtistId.
4.
5.
1.
Create a New Table
2.
Now add 4 fields and rename the first. Set them up as follows:
ArtistId Number
GenreId Number
So now that we've established that Design View and Datasheet View are just two ways of
looking at the same table, let's go ahead and create a table in Design View.
1.
A
blank table called Table1 will be
displayed in Design View.
2.
Under that field, create a new one called Genre and select Short Text for its data type.
3.
Now, double-click in the Allow Zero Length field so that it changes to No.
We have just made the Genre field a required field — all records must have a value in
this field, and it can't just contain a blank string.
You can also click in the row, then use the small button with the down-arrow to change
the value.
Or, you can simply highlight the current value (by clicking on it) and type Yes or No over
the top of it.
4.
A primary key is the unique identifier for the table. Each value in this field will be unique
— no two records in the table can have the same value in the primary key field.
5.
You can also use Design View to edit any existing table. Whether the table was created in
Design View or Datasheet View doesn't matter. Any table can be edited in Design View.
Now we will change some field properties to the table we created previously.
1.
Open the Albums table in Design
View
You can switch back and forth between views at any time by using this method.
2.
3.
1.
Open the Albums
table and Launch the
Input Mask Wizard
Click on the
ReleaseDate
field then look to the
bottom frame. The
bottom frame
displays the properties for this field.
In the bottom frame, click somewhere in the Input Mask row. A small button with
three dots will appear. This button launches the Input Mask Wizard.
2.
The Input Wizard Mask presents you with some options for how you'd like the data to be
entered. You can select any option and test it in the Try It field at the bottom of the
wizard.
3.
Once you're happy with the input mask, click Next >.
The Input Mask Wizard will show you one last screen (and give you one last chance to
go back to change your input mask).
Once the Input Mask Wizard closes, you'll see your newly created input mask against the
Input Mask property in Design View.