43
1. Click the Create tab. 2. Rest the mouse cursor on the Tables bar.

MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

1. Click the Create tab.

2. Rest the mouse cursor on the Tables bar.

Page 2: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

3. Rest the cursor on the Forms bar.

4. Rest the cursor on the Reports bar.

5. Rest the cursor on the Other bar.

Create tables

1. Click the Datasheet tab.

2. In the Ribbon, click View.

Page 3: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

3. When the menu appears, click Design View.

4. When the Save As window appears, type:

Friends of Mine

in the Table Name box.

Page 4: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

Then click the 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:

Page 5: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

4. Click in the next box beneath First Name.

5. Type:

Last Name

Page 6: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

Then press the ENTER key.

The table should look like this:

6. In the next box down, type:

City

then press ENTER.

7. In the next box down, type:

Zip

then press ENTER.

8. In the next box down, type:

Phone Number

then press ENTER.

The table should now look like this:

Page 7: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

Notice the icon beside the ID field.

This means the ID field is the table's "key" field.

What is the key field?

Page 8: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

A table's key field can't contain any duplicates.

Every table should have a key field.

For example, if a hospital keeps a database, each patient can have a

unique ID number in the key field.

That way, if it has more than one patient named John Baker, it can easily

distinguish John Baker, ID #326 in for a checkup, from John Baker, ID #298

who needs his gall bladder removed.

Create records

1. In the Ribbon, click View, then Datasheet View.

2. When the alert window appears, click the button.

Page 9: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

3. Click in the box under the First Name column header.

4. Type:

Elvis

5. Press the TAB key on your keyboard.

The table should now look like this:

Page 10: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

6. Type:

Presley

then press the TAB key.

7. Type:

Baltimore

then press TAB.

7. Type:

21212

then press TAB.

8. Type:

4105551212

then press TAB.

The table should now look like this:

Page 11: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

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.

Add new fields

1. Right-click the Zip column heading.

2. When the menu appears, click Insert Column.

Page 12: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

The table should now look like this, with a new blank field:

3. Right-click the column heading.

When the menu appears, click Rename Column.

Page 13: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

4. Type:

State

Then press the ENTER key.

5. Click inside the new State field for the first record.

6. Type:

Page 14: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

MD

7. Press TAB until the cursor moves down to a new record.

Record number 1 is saved and complete.

Move fields

1. Click the Phone Number column heading.

2. Place the cursor on the Phone Number column heading.

Then drag the column so the cursor rests between the Last Name

and City columns.

Page 15: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

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:

4. On the Title Bar, click the icon.

Create forms

1. Click the Create tab.

Page 16: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

2. In the Ribbon, click Form.

The new form for the Friends of Mine table should look like this:

Page 17: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

Add a new record

1. In the form window, click the button.

Page 18: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

A blank record should appear:

Page 19: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

TIP: If you see a Security Warning bar above the form...

Page 20: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

Click the button...

When the Microsoft Office Security Options window appears, click

the Enable this content radio button...

Page 21: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

...then click the button.

2. In the Ribbon, click View, then Form View.

Page 22: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

3. Click the First Name box.

Page 23: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

4. Type:

Bo

then press the TAB key.

5. Type:

Diddley

then press the TAB key.

6. Type:

Richmond

then press the TAB key.

Page 24: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

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:

Page 25: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

9. Press the TAB key again.

The form should progress to a new, blank record:

The old record has been saved.

Page 26: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

10. In the Navigation Pane, double-click the Friends of Mine table.

Page 27: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

It should look like this:

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. Click the Create tab.

In the Ribbon, click Query Wizard.

2. When the New Query window appears, make sure Simple Query

Wizard is selected.

Page 28: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

Then click the button.

3. When the Simple Query Wizard opens, double-click First Name

in the Available Fields list.

Page 29: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

First Name should appear in the Selected Fields column:

4. Click the button.

This should add the Last Name field to the Selected Fields list:

Page 30: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

5. Double-click Phone Number.

This should add the Phone Number field to the Selected Fields list:

6. Click the button

Page 31: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

7. When the final screen appears, type:

Names and Numbers

8. Click the button.

The query is automatically saved and executed.

It should look like this:

Create reports

1. In the Ribbon, click Report Wizard.

Page 32: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

2. When the Report Wizard window appears, click the Tables/Queries

drop-down arrow.

When the list appears, click Table: Friends of Mine.

Page 33: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

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.

The ID field should be removed.

Page 34: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

The report wizard should now look like this:

5. Click the button.

6. When the next screen appears, click the button.

Page 35: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

7. When the next screen appears, click the first drop-down arrow, then

click State in the list.

8. Click the button.

Choose layout and style

1. When the next screen appears, make sure Tabular is checked in the

Layout section.

Page 36: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

Then click the button.

2. When the next screen appears, click Equity in the list of available

styles.

Then click the button.

Page 37: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

View the report

1. When the final screen appears, type:

My Friends

in the box.

Then click the Preview the report radio button.

2. Click the button.

The report is automatically created, saved and opened.

It should look like this:

Page 38: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column
Page 39: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

3. On the Title Bar, click the icon to exit Microsoft Access.

4. Save changes before exiting Access.

Page 40: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

Practice: Database Basics

1. Open Microsoft Access.

2. Create a blank Access database in the Practice Access Files folder

called Music Library.

3. Create a new table with these fields:

CD Title

Artist

Genre

Date Purchased

Number of Songs

TIP: Do this in Design View.

4. Save the table as CDs.

Allow Access to create a Primary Key.

5. Rename the ID field (the Primary Key) Album ID.

7. Enter these data into the table to create the first record:

CD Title: Pearls on a String

Artist: Dusty Trails

Genre: Folk

Date purchased: 05/10/2001

Number of Songs: 14

TIP: Do this in Datasheet View.

It should look like this:

Page 41: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

8. Close the CDs table.

9. Create a form for inputting data into the CDs table.

10. Save it as CDs Table Data Input.

It should look like this:

11. Use the form to enter information for four more CDs.

TIP: Feel free to make things up.

Page 42: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

12. Create a query that pulls out this information:

CD Title

Genre

Number of Songs

13. Save the query as Quick CD Notes.

14. Run the query.

It should look like this:

Create a report based on the CDs table.

15. Include all the fields of the CDs table in the report, and sort the

records based on Genre.

TIP: Format the report using the Flow style.

15. Name the report CD Inventory.

It should look like this:

Page 43: MS access 2007 - nathantharumam.files.wordpress.com · When you move on to a new record, Access automatically saves the previous record. Add new fields 1. Right-click the Zip column

16. Close the report.

17. Exit Microsoft Access.