Database Basics: Create A New Database
Database Basics: Create A New Database
Create tables
Create records
Create forms
Create queries
Create reports
3. Click the
icon.
4. When the File New Database window appears, go to your home folder and
create a new folder Practice Access Files and in the File name box, type:
Friends
5. Click the
button.
6. Click the
button.
Create tables
1. Click the Datasheet tab.
button.
Name fields
1. Click in the second box beneath Field Name.
2. Type:
First Name
3. Press the ENTER key on your keyboard.
The table should look like this:
5. Type:
Last Name
Then press the ENTER key.
The table should look like this:
Create records
1. In the Ribbon, click View, then Datasheet View.
button.
4. Type:
Elvis
5. Press the TAB key on your keyboard.
The table should now look like this:
6. Type:
Presley
then press the TAB key.
7. Type:
Baltimore
then press TAB.
8. Type:
21212
then press TAB.
9. Type:
4105551212
then press TAB.
The table should now look like this:
TIP: Notice how the cursor in the row selector has moved down to the
second (new) record.
When you move on to a new record, Access automatically saves the
previous record.
The table should now look like this, with a new blank field:
4. Type:
State
Then press the ENTER key.
5. Click inside the new State field for the first record.
6. Type:
MD
7. Press TAB until the cursor moves down to a new record.
Move fields
1. Click the Phone Number column heading.
3. When you see a thick black line between the two columns, release the
mouse button.
The Phone Number column should now rest between the Last Name and
City columns:
icon.
Create forms
1. Click the Create tab.
The new form for the Friends of Mine table should look like this:
button.
Click the
button...
When the Microsoft Office Security Options window appears, click the
Enable this content radio button...
button.
4. Type:
Bo
then press the TAB key.
5. Type:
Diddley
then press the TAB key.
6. Type:
Richmond
then press the TAB key.
7. Type:
VA
then press the TAB key.
8. Type:
23220
then press the TAB key.
9. Type:
8005557890
The form should now look like this:
10.
Note: If it doesnt look like the one above just click the button
Home Tab.
at your
Create queries
What's a query?
A query is a way to get specific information from the database.
Essentially, it's a question. You use queries to ask the database things like, "Who
are my customers in Montana?", or "How many pipe fittings have I sold this
month?"
1.
2.
When the New Query window appears, make sure Simple Query Wizard is
selected.
button.
3. When the Simple Query Wizard opens, double-click First Name in the
Available Fields list.
4. Click the
button.
This should add the Last Name field to the Selected Fields list:
This should add the Phone Number field to the Selected Fields list:
6. Click the
button.
8. Click the
button.
Create reports
1. In the Ribbon, click Report Wizard.
2. When the Report Wizard window appears, click the Tables/Queries dropdown arrow.
When the list appears, click Table: Friends of Mine.
3. Click the
button to move all the fields into the Selected Fields list.
4. In the Selected Fields list box, click ID, then click the
button.
5. Click the
button.
button.
7. When the next screen appears, click the first drop-down arrow, then click
State in the list.
8. Click the
button.
button.
2. When the next screen appears, click Equity in the list of available styles.
button.
button.