Docsity

Understanding Microsoft Access: Creating, Modifying, and Retrieving Data, Study Guides, Projects, Research of Computer Fundamentals

Toggle sidebar
bg1
Microsoft Access 2007 Tutorial
Lesson 1: Getting Familiar with Microsoft Access 2007 for Windows
Microsoft Access is a database software package. A database is an organized collection of records.
Telephone and address books are examples of paper databases. With Access, you can create a
computerized database. For example, you can use Access to organize the students who attend a school,
the courses they take, and the instructors who teach them.
Getting Started
You use windows to interact with Access. To begin, start Access 2007. You screen will look
similar to the one shown here.
Understanding Security
It is possible for an Access database to contain malicious code, such as a computer virus. Access
has security settings that disable code and display a security warning when you open a
database. If you know a database is trustworthy, you can perform the following steps to enable
it. You may need to enable the Northwind database.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31

Partial preview of the text

Download Understanding Microsoft Access: Creating, Modifying, and Retrieving Data and more Study Guides, Projects, Research Computer Fundamentals in PDF only on Docsity!

Microsoft Access 2007 Tutorial

Lesson 1: Getting Familiar with Microsoft Access 2007 for Windows

Microsoft Access is a database software package. A database is an organized collection of records. Telephone and address books are examples of paper databases. With Access, you can create a computerized database. For example, you can use Access to organize the students who attend a school, the courses they take, and the instructors who teach them.

Getting Started

You use windows to interact with Access. To begin, start Access 2007. You screen will look

similar to the one shown here.

Understanding Security

It is possible for an Access database to contain malicious code, such as a computer virus. Access

has security settings that disable code and display a security warning when you open a

database. If you know a database is trustworthy, you can perform the following steps to enable

it. You may need to enable the Northwind database.

To enable a database:

The Navigation Pane

To manipulate the Navigation pane:

Tables In Access, data is stored in tables. A table is a set of columns and

rows, with each column referred to as a field. Each value in a field

represents a single type of data. Each row of a table is referred to

as a record.

Queries You use queries to retrieve specific data from your database and

to answer questions about your data. For example, you can use a

query to find the names of the employees in your database who

live in a particular state.

Forms Forms give you the ability to choose the format and arrangement

of fields. You can use a form to enter, edit, and display data.

Reports Reports organize or summarize your data so you can print it or

view it onscreen. You often use reports when you want to analyze

your data or present your data to others.

Macros Macros give you the ability to automate tasks. You can use a

macro to add functionality to a form, report, or control.

Modules Like macros, modules give you the ability to automate tasks and

add functionality to a form, report, or control. Macros are created

by choosing from a list of macro actions, whereas modules are

written in Visual Basic for Applications.

 You double-click an object to open the object. You right-click an object to view a menu

of options. You can use the menu to do such things as open objects, rename objects,

and delete objects.

 Objects that are open appear on tabs. Right-click a tab to view a menu of options you

can perform, such as save the object, close the object, or change the view.

 Change Views

 A view is a way of looking at an object. For example, in Access, data is stored in tables.

Two of the possible ways you can view a table are Datasheet view and Design view. You

can see the data contained in a table in Datasheet view. You can see the design of a

table in Design view. When you open an object, buttons appear in the lower-right

corner of the Access window. You can use the View button on the Home tab to change

views, or you can click the proper button in the lower-right corner of the window.

  1. Click the Add New Field column label.
  2. Activate the Datasheet tab.
  3. Click Rename in the Fields & Columns group.
  4. Type the field name.
  5. Press Enter. Access creates the field.
  6. Type the next field name. Access creates the field. Continue until you have created all of the fields in your table.
  7. Press Enter without entering a field name to end your entries.

Name and Save a Table

After you create a table, you must name and save it.

To name and save a table:

  1. Click the Save button on the Quick Access toolbar. The Save As dialog box appears.
  2. Type the name you want to give your table.
  3. Click OK. Access names your table.

Tip : You can use the Rename option at any time to rename any column. For example,

you can rename the ID column Employee ID.

Understanding Data Types

In Access, you use data types to specify the type of data each field can capture.

Data Types

Data Type Use Notes

Text Alphanumeric data. Use for text and for numbers that are not used in mathematical calculations. Use for names, addresses, and other relatively short pieces of text. Can store up to 255 characters.

Memo Long text. Use for long pieces of text, such as notes and long descriptions. Can store up to 64,000 characters.

Number Numeric data. Use for numbers you want to use in mathematical calculations.

If you are working with currency, use the currency type.

Date/Time Use for dates and times.

Currency Use for currency. Prevents rounding during calculation.

AutoNumber Unique sequential numbers or random numbers automatically inserted when you create a record. Use to create a primary key.

Yes/No Logical data. Use when only one of two values is valid. Yes/No, True/False, etc.

To set field properties:

  1. Click the field for which you want to set the field properties.
  2. Activate the General tab in the Field Properties area.
  3. Set the properties you want to set.
  4. Repeat steps 1 through 3 until you have set all the properties for all fields.

Create a Lookup Column

If a field can contain a finite list of values, you can create a Lookup Column and users can select

the value they want from a list. For example, if the employees at a school can only work in one

of the following departments: Administration, Computer Science, English, History, or Math. You

can create a table Departments table that lists the departments and then use the list in the

Employee table to assign each employee to a department.

Departments

Department ID Department

Primary Key

1 Administration

2 Computer Science

3 English

4 History

5 Math

Access has a wizard to help you create lookup columns. Creating a Lookup column creates a

relationship between two tables. See the section Create Relationships in Lesson 3 to learn more

about relationships.

To use the Lookup Wizard to create a lookup column:

1. Open the table to which you want to add a lookup column.

2. Click the field label for the field before which you want to add a lookup column.

3. Activate the Datasheet tab. (You must be in Datasheet view.)

4. Click the Lookup Column button in the Fields & Columns group. The Lookup Wizard

appears.

5. Make sure the radio button next to “I want the lookup column to look up the values in a

table or query.” is selected.

6. Click Next. The Lookup Wizard moves to the next page.

  1. Click a radio button to select what you want to base your lookup column on. Choose from Tables, Queries, or Both.
  2. Click to select the table or query you want.
  3. Click Next. The Lookup Wizard moves to the next page.

Select fields

You choose the fields you want to appear in your lookup column. Be sure to include the primary

key.

  1. Click the field you want.
  2. Click the single right-arrow button. Access places the field in the Selected Fields column. Repeat this process to select additional fields. If you want all the fields in the table, click the double right-arrow button. Note: Use the single left-arrow and the double left-arrows to deselect fields.
  3. Click Next. The Lookup Wizard moves to the next page.

Sort fields

The Lookup Wizard allows you to sort the records in a lookup column. You can display records

in order, either ascending (alphabetical from A to Z, lowest number to highest number, earliest

date to latest date) or descending (alphabetical from Z to A, highest number to lowest number,

latest date to earliest date). You can also sort within a sort. For example, you can sort by state

and then within each state by city, and then within each city by street address. If you are

creating a sort within a sort, create the highest level sort on line one, the next level sort on line

two, and so on. In the state, city, and street address example, you create the state on line one,

the city on line two, and the street address on line three.

  1. Click the down-arrow and then select the field you want to sort by.
  2. Click to select a sort direction (the button toggles between ascending and descending). You can sort within a sort for up to four levels.
  3. Click Next. The Lookup Wizard moves to the next page.

Adjust column widths

A key column is the column that connects one table or query to another table or query. For

example, you can use the Department ID field in the Employees table and the Department ID

field in the Departments table to connect the two tables. You may, however, want to display

the name of the department when you view the table but not the department ID; if so, leave

the Hide Key Column box checked.

Name the column

Field names appear at the top of each column. On this page of the Wizard you tell Access what

you want to name your lookup column. In Access 2007, multiple values can appear in a field;

click the Allow Multiple Values checkbox if you want to allow multiple values.

  1. Type the name you want to give the column.
  2. Click if you want to allow multiple values in the field.
  3. Click Finish. Access creates the lookup column.

How do I create a lookup column by typing a list?

  1. Activate the Datasheet tab. (These instructions assume you are in the Datasheet view.)
  2. Click the Lookup Column button in the Fields & Columns group. The Lookup Wizard appears.
  3. Click the radio button next to “I will type the values I want.”
  4. Click Next. The Lookup Wizard moves to the next page.
  5. Type the number of Columns you want in the Number Of Columns field.
  6. Type the values you want under the column heading.
  7. Click Next. The Lookup Wizard moves to the next page.
  8. Type the column label you want.
  9. Click Finish. Access creates a lookup column based on your list.

Lesson 3: Working with Microsoft Access Tables

After you create an Access table, you can modify it, enter data into it manually or import data

from somewhere else, such as Excel. This lesson teaches you how to modify a table and enter

data.

Enter Records

After you have created a table, you can enter data into it.

To enter data into an AutoNumber field:

 Press the Tab key. When you make an entry into another field in the record, Access will automatically make an entry into the AutoNumber field.

To delete columns:

  1. Click and drag to select the columns you want to delete.
  2. Activate the Datasheet tab.
  3. Click Delete in the Fields & Columns group. A prompt appears.
  4. Click Yes. Access deletes the columns you selected.

Insert Columns

The Insert option inserts a column before the selected column.

To insert a column:

Lesson 4: Sorting, Filtering, and Creating Relationships

You can sort Access data so you can view records in the order you want to view them, and you

can filter data so you only see the records you want to see. This lesson teaches you how to sort

and filter an Access table.

Access data is stored in multiple tables. Relationships join tables together so you can work with

the data from multiple tables. This lesson also teaches you how to create relationships.

Sort a Table