Ms Access Notes
Ms Access Notes
Ms Access Notes
MICROSOFT ACCESS.
Ms-Access is a Window-based program used to manage information, which is in form of
databases.
Note. Ms-Access can be installed as a stand-alone program, but it is mainly found within the
Microsoft Office suite. It is very useful for routine and simple database management tasks.
They appear after the Menu bar. They contain icons (buttons).
The toolbars provide many of the tools you need to find, edit, and print records. You can
use the buttons in the toolbars to:
Add or delete records.
Preview and Print data.
Check spellings.
Cut, copy, or paste selected text, fields, whole records, or the entire datasheet.
Sort records.
Find or replace values, and also Filter records.
(ii). Scroll bars.
They enable the user to see data not visible on the screen.
It is a horizontal bar at the bottom of the screen that displays information about commands,
toolbar buttons, and other properties.
114
Microsoft Access 2003
You can create a Blank database & then add the Tables, Forms, Reports & other objects
later.
This requires the user to define each database element separately allowing him/her to create
a self-defined database.
1. Click New on the File menu or on the Standard toolbar (or press CTRL+N).
2. Under New, click Blank Database, then click the OK button.
3. In the File New Database dialog box, specify a name & location for the database file,
then click on the Create button to display the Database window.
Note. All Ms-Access databases are saved with an automatic extension of .mdb
4. Click on the tab that has the object you want to create, e.g., Tables, and follow the
instructions provided in the resultant dialog box.
Database window - The window that appears when you open an Ms-Access database. It
displays tabs/ buttons for the database objects, such as Tables, Queries, Forms, Reports,
Macros and Modules. These shortcuts are used for creating new database objects and
opening existing objects.
DATABASE TABLES.
A Table is a collection of data about a specific topic.
Defining the structure of a database Table.
Tables organize data into columns (called fields) & rows (called records).
E.g., in a Products table, each field contains the same type of information for every product,
such as the Product's name.
Each record in that table contains all the information about one product, such as the Product's
name, supplier ID number, units in stock, and so on.
When defining a table structure, enter the following:
(1).Field Name:
Each column in a database table is called a Field.
Field name is the name that identifies each column (i.e., it is the title of a field or column).
To enter names in the columns, for example, enter the First Name in its own column & Last
Name in a separate column.
(2).Field Type:
This specifies the type of data to be used/ stored in the field.
(3).Field Size:
Specifies the maximum no. of characters that can be typed in that column.
Field width – the no. of spaces required to hold the largest data item to be stored in the field.
115
Microsoft Access 2003
9. Hyperlink.
117
Microsoft Access 2003
1. Click New on the File menu or on the Standard toolbar (or press CTRL+N).
2. Under New, click Blank Database, then click the OK button.
3. In the File New Database dialog box, specify a name & location for the database file, then
click on the Create button to display the Database window.
4. Under Objects, click Tables, then click New on the Database window toolbar.
5. Double-click Datasheet view (or click on Datasheet view, then choose the OK button).
A blank Datasheet with rows and columns is displayed.
6. Enter the Field names.
To rename each field/column.
118
Microsoft Access 2003
Click in the column, then choose Rename Column on the Format menu. Type the Field
name, then press the ENTER key.
7. Click in the cells and enter your data. Press the TAB key to go to the next field or record.
8. After adding data to all the columns you want to use, save the Datasheet table.
9. If you do not set a Primary key before saving the newly created table, Ms-Access will ask if
you want it to create a primary key for you. If you answer Yes, Ms-Access will create an
AutoNumber primary key.
After saving the table, Ms-Access will assign data types to each field based on the kind of
data you have entered.
Note. Any columns you leave empty will be deleted when you save the Datasheet.
Customer Orders: Table
Order Number Customer ID Company Name City Required Date
11022 BSBE V B’s Beverages London 25-May
11023 HANAR Hanari Carnes Rio De Janeiro 09-May
11024 EAST C Eastern Connection London 10-May
To add or edit data in a datasheet.
1. To change data within a field, click in the field you want to edit, then type the data.
To replace the entire value, move the pointer to the leftmost part of the field until it changes
into the plus pointer, then click to select. Type the data.
Notes.
To correct a typing mistake, press the BACKSPACE key.
To cancel your changes in the current field, press the ESC key. To cancel your changes in the
entire record, press the ESC key again before you move out of the field.
When you move to another record, Ms-Access saves your changes.
To rename a field in a table in Datasheet view.
Method 1.
1. Double-click the field selector of the field that you want to change.
2. Type the new field name, then press the ENTER key to save it.
Method 2.
1. Click in the column that you want to change.
2. On the Format menu, choose Rename Column.
3. Type the new field name, then press the ENTER key.
To change the Column Width in Datasheet view.
Method 1.
1. Click in the column whose width you want to change.
2. On the Format menu, click Column Width.
3. Type the desired width in the Field Size box, then choose the OK button.
To make the column width fit an entry, click Best fit.
Method 2.
1. Point to the edge of the column whose width you want to change. The pointer becomes a
double-headed arrow.
2. Drag the arrow to increase or decrease the column width.
To change the Font, Appearance, Font Size, Colour & Underline of text in a field or record
in Datasheet view.
Method 1.
1. Select the text, Record or Field whose contents you want format.
119
Microsoft Access 2003
2. On the Formatting toolbar, click the arrows to the right of the Font, Font Size, & Font
Color button, then choose the options you want, or click the Bold, Italic, Underline button.
Method 2.
1. On the Format menu, click Font, then choose the options you want in the Font dialog box.
To change the Row Height in Datasheet view.
1. Click in the row / record whose height you want to change.
2. On the Format menu, click Row Height.
3. Type the desired height in the Row Height box, then choose the OK button.
Null - A value you can enter in a field or use in expressions and queries to indicate missing
or unknown data. Some fields, such as primary key fields, cannot contain Null values.
3. Multiple-field primary keys.
123
Microsoft Access 2003
In situations where you cannot guarantee the uniqueness of any single field, you can choose
two or more fields as the primary key.
This commonly arises in situations where a table is used to relate two other tables in a many-
to-many relationship.
1. Open a table in Design view.
2. Select the field or fields you want to define as the Primary key.
To select one field, click the row selector for the desired field.
To select multiple fields, hold down the CTRL key, then click the row selector for each
field.
3. On the Edit menu, click Primary key. (Or click the Primary Key button on the toolbar).
Note. A Primary key field cannot be left empty when editing and entering records.
Once you assign a primary key for a table, Access will prevent any duplicate or Null values from
being entered in the primary key fields.
Add a field (column) to a table in Design view.
1. Click in the row below where you want to add the field.
To add the field to the end of the table, click in the first blank row.
2. Click Insert Rows button on the toolbar (or on the Insert menu, choose Rows).
Double-click in the new column, then type a unique name for the field.
Delete a field from a table in Design view.
This permanently removes a field plus all the data in it from the database.
1. Select the field(s) you want to delete.
To select one field, click the field's row selector. To select a group of fields, drag through
the row selectors of the fields.
2. On the Edit menu, click Delete Rows (or click Delete Row on the toolbar).
Change a field's data type in Design view.
1. Click the arrow in the Data Type column of the field you want to change, then select the new
data type.
2. Click Save on the toolbar. Ms-Access converts the data type.
Caution. If the data type conversion would result in lost values, Access displays a message
telling you that errors occurred during conversion before it actually saves the changes. Click
Cancel to cancel the changes. Click OK to continue and save the changes.
Change the field size of a Text or Number field.
Field size controls the maximum no. of characters that can be entered into a text field and the
kind of numeric values that can be entered into a numeric field.
1. In Design view, click the field whose FieldSize property you want to set.
2. In the lower portion of the window on the General tab, click the FieldSize property box.
For a Text field, type the maximum no. of characters to allow in the field (up to 255).
For a Number field, click the arrow and select the desired field size.
Set the data display format for a field in a table.
1. In Design view, click the field you want to format.
2. In the lower portion of the window, click the arrow next to the Format property box, then
click a format from the list.
Set the no. of decimal places to display for a field in table Design view.
1. In Design view, click the field you want to define decimal places for.
2. In the lower portion of the window, click the arrow next to the DecimalPlaces property box,
then click the desired no. of decimal places.
Exercise (a).
1. (a). Define the following terms as used in Database Management systems:
(i). Table.
(ii). Field.
(iii). Field Name.
(iv). Field Type.
(v). Record.
(vi). Database File.
(b). Give five different field data types found in Microsoft Access and explain each.
2. What are the procedures you have to follow when designing a database?
Exercise (b).
1. Differentiate between:
(a). Table and Record.
(b). Field and Field name.
2. Create a simple record of a company, having the following fields; Company’s Name,
Address, City, State, and Phone number.
3. Create a Personal records database giving the following details; Father’s Name, Baptismal
Name, Last Name, Origin, Sex, Date of Birth, Age, Primary and Secondary schools attended,
College, Career and Hobbies.
Include the relevant field data types and formats.
4. Create a database giving the following details; Name of company, Address, Phone number,
Years of existence, Location, Number of employees, and what it does (operations).
5. Create a database of an employer who decides to keep a record of all his employees, under
the following lines; Name of employee, Sex, Age, Origin, Date he/she was employed, Salary,
Department of work, Working hours for each employee, Marital status, Education level, and
ID card number.
6. A farmer decides to keep a record of his farm produce of a certain season. Create a database
showing the following; Name of grain, Produce in tonnes.
COPY OR MOVE AN ITEM.
1. Select the items you want to copy or move.
To copy the item, click Copy on the Edit menu or on the toolbar.
To move the item, click Cut on the Edit menu or on the toolbar.
2. Click the location where you want to place the item.
3. Click Paste on the Edit menu or on the toolbar.
Copying a table.
Copying can be used to reproduce tables and/or data within tables.
125
Microsoft Access 2003
1. Select the table in Datasheet view.
2. Click Copy on the Edit menu or on the toolbar.
3. Click the location where you want to place the item.
4. Click Paste on the Edit menu or on the toolbar.
Access will then ask you to enter a name for the new table. It will then ask whether you want
to paste the structure and data or just to append the database records.
Appending refers to adding records at the bottom of an existing table or file.
To append the records, choose Paste Append on the Edit menu.
SORTING OF RECORDS.
This allows you to arrange your records in a logical order in the database. It can either be in
Ascending or Descending order – in Alphabetical, Chronological, or Numeric.
1. In Datasheet view, click in the field to be sorted.
Method 1.
Click Sort on the Record menu, then click on the order to apply; Ascending or Descending.
Method 2.
On the Standard toolbar, click A-Z button (to sort in Ascending order), or click Z-A button (to
sort in Descending order).
HIDING AND UNHIDING OF COLUMNS WHEN EDITING.
Purpose.
You may want to hide a column for 3reasons;
Prevent anybody from accessing the information.
Prevent the data in those columns from being printed.
In case you want to suppress display of some columns in a database view, i.e. reduce the size
of a database table in order to view more columns at once.
To hide columns in Datasheet view.
1. Move to the column you want to hide.
2. On the Format menu, click Hide column. The selected column disappears from the screen.
To Unhide columns.
1. On the Format menu, click Unhide column.
A list of hidden columns appears.
2. Click to select the checkboxes of all columns that you want displayed.
FREEZING AND UNFREEZING OF COLUMNS.
Freezing makes the selected column to remain fixed on the screen while scrolling. This enables
the user to see the data in a column especially in a database table with very many columns.
When a column is freezed, it stays at the left-most position while the rest of the columns continue
to move or scroll in and out of view.
Unfreeze is removing the Freeze command.
To Freeze column(s) in Datasheet view.
1. Click on the column you want to freeze.
2. On the Format menu, click Freeze column.
To Unfreeze columns.
1. Select the column to unfreeze.
2. On the Format menu, click Unfreeze All columns.
FILTERING OF RECORDS.
126
Microsoft Access 2003
Filtering refers to sieving/ examining out particular records from the database. The records you
sieve/ select out can be printed, deleted, or edited.
There are 3 types of filters in Access.
(i). Filter by Selection.
This filter allows you to choose a criteria for sieving out records by selecting them directly
from the table in Datasheet view.
1. Open the table in Datasheet view.
2. Select the cell that contains the criteria that you need,
E.g. under First Name, select Philip.
3. On the Records menu, click Filter, then choose Filter By Selection (or click Filter By
Selection on the Standard toolbar).
Access displays all the records that meet the criteria, e.g., all people in the database
whose first names is Philip.
Note. If you want to sieve in all records except the ones selected, click Filter Excluding
Selection.
(ii). Filter by Form.
This filter opens up a Form where you can give a more elaborate criterion.
1. Open the table in Datasheet view.
2. On the Records menu, click Filter, then choose Filter By Form, (or click Filter By
Form on the toolbar).
A Form will appear where you can type in or choose the criteria you want, e.g., To list
all people called Philip, click under First Name, then type ‘Philip’ or chose it from the
drop down list.
The following can be used;
First Name Last Name
Peterson Kamau It looks for a person called Peterson Kamau.
Age
>18 Displays all people above 18.
Between 25 and 30 Displays records of all people aged between 25 & 30
Country
In (Uganda, Kenya, Tanzania) Displays people from Uganda, Tanzania or Kenya.
Date
>2004/01/31 Displays all records created on the specified date and after.
Between 93/10/31 and 95/7/1 Displays all records created between the indicated dates.
Date of Birth
Date ( ) -30 Displays all records of people born 30 days ago.
Between Date ( ) and Date ( ) -30 Displays records of people born within the last 30
days.
Sports
Like *ball Displays all records with all sorts of ball games.
Not Football Displays all records of people who do not play football.
Awards
Is Null Displays all records given the award ‘Null’.
Is Not Null Displays all records that do not have the award ‘Null’.
3. On the Records menu, click Apply Filter/Sort, (or click the Apply Filter button on
the toolbar).
(iii). Advanced Filter/Sort.
127
Microsoft Access 2003
This filter allows one to sort and filter at the same time.
Note. You can sort and filter at the same time or you can perform each independently.
1. Open the table in Datasheet view.
2. On the Records menu, click Filter, then choose Advanced Filter/Sort.
Access will take you to QBE grid. From this grid, you have a field list in the top half
and the grid table.
The grid table allows you to choose fields for filtering or sorting. To insert a field(s),
double-click it from the field list (or click once in the grid, then select the field from
the drop down list).
3. When you have specified your criteria, click Apply Filter/Sort on the Records menu,
(or click the Apply Filter button on the toolbar).
That filter stays in effect until you delete it from the QBE grid.
Note. To remove a filter and get back the original table, click Remove Filter/Sort on the
Records menu.
Advanced Filter/Sort window - A window in which you can create a filter from scratch. You
enter criteria expressions in the filter design grid to restrict the records in the open form or
datasheet to a subset of records that meet the criteria.
PRINTING.
Setting up the paper.
You can change the Page Setup for your table to affect the way it will print.
1. On the File menu, choose Page Setup.
2. From the Page Setup dialog box,
Click the Margins tab, to change the margins of the printing page. To include the
headings in the printed document, select the Print Headings checkbox.
Click the Page tab, then change the Orientation of the paper, and the Paper size.
Actual Printing.
Before you sent the job for printing, make sure you have set the print options you want to apply
to your print job.
1. On the File menu, choose Print (or press CRTL+’P’).
2. From the Print dialog box,
Under Printer, click the arrow next to the Name box, then select the printer you are using.
Under Print range, select the specific pages to print.
To print only certain records in the datasheet, select the records, then click Selected
Record(s).
In the Number of Copies box, select the desired copies to be printed per page.
To change the Print Quality, Paper Type, Paper Size and Orientation, click Properties.
3. After setting the options, choose OK to send the print job to the printer.
128
Microsoft Access 2003
Defining relationships is a way of telling Ms-Access how to bring information/ data from
multiple tables back together again in a query, form, or report.
After defining the relationship, you can create queries, forms, and reports to display information
from several tables at once.
Relating two tables.
In order to relate two tables, each table should include a field or set of fields that uniquely
identifies each record stored in the table. Such a field is called the Primary key of the table.
The Primary key field relates two tables so that Ms-Access can bring together the data from the
two tables for viewing, editing, or printing.
In one table, the field is a Primary key that you set in table Design view. That same field also
exists in the related table as a Foreign key.
Products: Table
Product Name Suppliers ID Units in Stock
Chai 1 39
Chang 1 17
Aniseed Syrup 1 13
Camarvon Tiger 2 53
A Product Key - A unique ID, such as a Customer ID, that distinguishes one record from
another within a table.
In the Suppliers table, enter a Supplier ID, Company name, and so on, for each supplier. The
Suppliers ID is the primary key.
In the Products table, you include the Suppliers ID field, so that when you enter a new product,
you can identify its supplier by entering that supplier's unique ID number. The Suppliers ID is
the foreign key in the Products table.
Define relationships between tables.
When you create a relationship between tables, the related fields may not have the same names,
but must have the same data type.
This is an association between two tables in which one record in either table can relate to many
records in the other table.
To establish a many-to-many relationship, create a third table and add the primary key fields
from the other two tables to this table.
For example, an Order Details table can relate the Orders and Products tables. Its primary key
consists of 2 fields: OrderID and ProductID. The Order Details table can list many products
and many orders, but each product can only be listed once per order, e.g., 51 as shown below. So
combining the OrderID and ProductID fields produces an appropriate primary key.
130
Microsoft Access 2003
(b). What are the advantages of storing data on the computer using a database tool such as
Microsoft Access as opposed to storing in paper files.
2. Distinguish between the following terms in relation to a database:
(i). DBMS and database.
(ii). Records and Fields. (4 marks).
3. Define the term Sorting. (2 marks).
4. (a). Differentiate between Primary key and Relationship.
(b). What is the importance of the Primary key.
Exercise (b).
1. (a). What are Database management software?
QUERIES.
A Query is a question about the data stored in your tables, or a request to perform an action on
the data.
You use queries to view, change, and analyze data in different ways.
A query can find & bring together data that meets conditions that you specify from multiple
tables. It can also serve as the source of data for a Form, or a Report.
A query can also update or delete multiple records at the same time, and perform predefined or
custom calculations on your data.
There are 4 major types of queries in Microsoft Access.
(1). SELECT QUERIES.
A Select query is a query that asks a question about the data stored in your tables and returns
a result set in the form of a datasheet—without changing the data.
You use a select query to:
(i). Bring together data from one or more than one tables by using the criteria you specify
and then display the data in the order you want.
(ii). Update records in the datasheet of a select query (with some restrictions).
(iii). Group records and calculate Sums, Counts, Averages, and other types of totals.
A select query is the most common type of query.
131
Microsoft Access 2003
1. In the Database window, click Queries under Objects, then click New on the
Database window toolbar.
2. In the New Query dialog box, click Design View, then click OK.
3. In the Show Table dialog box, click the tab that lists the tables or queries whose
data you want to work with.
4. Double-click the name of each object you want to add to the query, and then click
Close.
5. Add fields to the Field row in the Design grid, and if you want, specify criteria and
a sort order.
6. To view the query's results, click View on the toolbar.
Design grid: The grid that you use to design a query or filter in query Design view or in
the Advanced Filter/Sort window.
A Crosstab query is a query that calculates a Sum, Average, Count, or other type of total
on records, and then groups the result by two types of information — one down the left side
of the datasheet and the other across the top.
Use Crosstab queries to calculate and restructure your data for easy analysis.
Note. A Crosstab query displays the same information, but groups it both horizontally and
vertically making the datasheet more compact and easier to analyze.
132
Microsoft Access 2003
• For the field whose values you want to appear as column headings, click the
Crosstab row, and then click Column Heading. You can choose Column Heading
for one field only.
You must leave the default Group By in the Total row for these fields.
• For the field whose values you want to use in the cross-tabulation, click the Crosstab
row, and then click Value. Only one field can be set to Value.
1. In the Total row for this field, click the type of aggregate function you want for the
cross-tabulation (such as Sum, Avg, or Count).
Note. When you open a select or crosstab query in Datasheet view, you are actually executing
the query.
133
Microsoft Access 2003
• Once you delete records using a delete query, you cannot undo the operation.
Therefore, you should preview the data that the query selected for deletion before
you run the query. To do this, click View on the toolbar, and view the query in
Datasheet view.
(b). Update Queries.
An Update query makes global changes to a group of records in one or more tables.
For example, you can raise prices by 10% for all dairy products, or you can raise
salaries by 5% for the people within a certain job category. With an update query, you
can change data in existing tables.
(c). Append Queries.
An Append query adds a group of records from one or more tables to the end of one or
more tables.
For example, suppose that you acquire some new customers and a database containing a
table of information on those customers. To avoid typing all this information into your
own database, you can append it to your Customers table.
Append queries also helps in:
Appending fields based on criteria. For example, you might want to append only
the names and addresses of customers with outstanding orders.
Appending records when some of the fields in one table do not exist in the other
table. For example, the Customers table has 11 fields. Suppose that you want to
append records from another table that has fields that match 9 of the 11 fields in the
Customers table. An append query will append the data in the matching fields and
ignore the others.
(d). Make-Table Queries.
A Make-table query creates a new table from all or part of the data in one or more
tables. Make-table queries also helps in creating a table to export to other Microsoft
Access databases or a history table that contains old records.
Run an action query.
Unlike select and crosstab queries, you can't view the results of an action query by opening it
in Datasheet view. However, in Datasheet view you can preview the data that will be affected
when you run the action query.
Caution It is a good idea to make a copy of the data you are changing or moving in an action
query, in case you need to restore the data to its original state after running the action query.
1. Open the action query in Design view.
2. To preview the records that will be affected in Datasheet view, click View on the toolbar and
check the records. For each action query, you will see the following:
For this query The datasheet displays
Update The fields to be updated.
Delete The records to be deleted.
Make-table The fields to be included in the new table.
Append The records to be added to another table.
3. To return to query Design view, click View on the toolbar again. Make any changes you want
in Design view.
4. Click Run on the toolbar to run the query.
Calculate amounts
You can add the values in a field or do other computations with the data by specifying the type of
calculation to perform.
• Use an aggregate function, such as Sum or Avg, to calculate one amount for all the records in
each field in the design grid.
Aggregate function - A function, such as Sum, Count, Avg, or Var, that you use to calculate
totals.
• Use Group By to calculate separate amounts for groups of records in a field.
Set the no. of decimal places to display for a field in query Design view.
1. Open a query in Design view.
2. In the query design grid, place the insertion point in the column for the field you want to
change.
3. Click Properties on the Query Design toolbar to
4. On the General tab, click the arrow next to the DecimalPlaces property box, then click the
desired no. of decimal places.
FORMS.
A Form is an Access database object on which you place controls for taking actions or for
entering, displaying, and editing data in fields.
A form is a type of a database object that is primarily used to enter or display data in a database.
To easily view, enter, and change data directly in a table, create a form. When you open a form,
Microsoft Access retrieves the data from one or more tables, and displays it on the screen with
the layout you choose in the Form Wizard, or with the layout that you created on your own in
Design view.
Notes.
A form focuses on one record at a time, and it can display fields from more than one table. It
can also display pictures and other objects.
A form can contain a button that prints, opens other objects, or otherwise automates tasks.
Most forms are bound to one or more tables and queries in the database. A form's record source
refers to the fields in the underlying tables and queries. A form need not contain all the fields
from each of the tables or queries that it is based on.
You create a link between a form and its record source by using graphical objects called
controls. The most common type of control used to display and enter data is a text box.
You can also open a form in PivotTable view or PivotChart view to analyze data. In these views,
you can dynamically change the layout of a form to present data in different ways. You can
rearrange row headings, column headings, and filter fields until you achieve the desired layout.
Each time you change the layout, the form immediately recalculates the data based on the new
arrangement.
In PivotTable view, you can view detail or summarized data by arranging fields in the filter,
row, column, and detail areas.
136
Microsoft Access 2003
In PivotChart view, you can display data visually by selecting a chart type and viewing data
by arranging fields in the filter, series, category, and data areas.
Creating a form
You can create a form quickly by using the AutoForm command or a wizard. AutoForm creates
a form that displays all fields and records in the underlying table or query. A wizard asks you
questions and creates a form based on your answers. You can then customize the form the way
you want it in Design view.
Customizing a form
In Design view
You can customize a form in Design view in the following ways:
Record source. Change the tables and queries that a form is based on.
Controlling and assisting the user. You can set form properties to allow or prevent users from
adding, deleting, or editing records displayed in a form. You can also add custom Help to a form
to assist your users with using the form.
Form window. You can add or remove Maximize and Minimize buttons, short cut menus, and
other Form window elements.
Sections. You can add, remove, hide, or resize the header, footer, and details sections of a form.
You can also set section properties to control the appearance and printing of a form.
Controls. You can move, resize, or set the font properties of a control. You can also add
controls to display calculated values, totals, current date and time, and other useful information
on a form.
In PivotTable or PivotChart view.
You can customize a form in PivotTable or PivotChart view in the following ways:
Add, move, or remove fields You can add fields to the filter, row, column, and detail areas in
PivotTable view, and to the filter, category, series, and data areas in PivotChart view. You can
also move fields from one area to another and remove fields from the view.
Filter records You can filter data displayed in the view by adding or moving a field to the filter
area. You can also filter a field in the row and column area.
Sort records You can sort items in row or column fields in ascending or descending order. You
can also sort items in custom order in PivotTable view.
Group records You can group items in row or column fields on intervals, or create custom
groups.
Format elements and change captions. In PivotTable view, you can change the font settings,
alignment, background color, and number format of a field. You can also change the captions of
fields and custom groups. In PivotChart view, you can change the chart type, format data
markers, and more.
Form view: A window that displays a form to either show or accept data. Form view is the
primary means of adding & modifying data in tables. You cannot change the design of a form in
this view.
REPORTS.
A Report is an Access database object that prints information formatted and organized according
to your specifications. Examples of reports are sales summaries, phone lists, and mailing labels.).
To analyze your data or present it a certain way in print, create a report. For example, you might
print one report that groups data and calculates totals, and another report with different data
formatted for printing mailing labels.
Use a report to create mailing labels.
Use a report to show totals in a chart.
Use a report to calculate totals.
A report is an effective way to present your data in a printed format. Because you have control
over the size and appearance of everything on a report, you can display the information the way
you want to see it.
Most reports are bound to one or more table and query in the database. A report's record source
refers to the fields in the underlying tables and queries. A report need not contain all the fields
from each of the tables or queries that it is based on.
A bound report gets its data from its underlying record source. Other information on the form,
such as the title, date, and page number, is stored in the report's design.
You create the link between a report and its record source by using graphical objects called
controls. Controls can be text boxes that display names and numbers, labels that display titles, or
decorative lines that graphically organize the data and make the report more attractive.
Creating a report
You can create different types of reports quickly by using wizards. Use the Label Wizard to
create mailing labels, the Chart Wizard to create charts, or the Report Wizard to create a
standard report. The wizard asks you questions and creates a report based on your answers. You
can then customize the report the way you want it in Design view.
Customizing a report
You can customize a report in the following ways:
Record source Change the tables and queries that a report is based on.
Sorting and grouping data You can sort data in ascending or descending order. You can also
group records on one or more fields, and display subtotals and grand totals on a report.
Report window You can add or remove Maximize and Minimize buttons, change the title bar
text, and other Report window elements.
Sections You can add, remove, hide, or resize the header, footer, and details sections of a
report. You can also set section properties to control the appearance and printing of a report.
Controls You can move, resize, or set the font properties of a control. You can also add
controls to display calculated values, totals, current date and time, and other useful information
on a report.
138