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.
It helps in storing information about different subjects in separate tables.
It also enables the user to add and edit records, sort, query and also print records.
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.
Starting Microsoft Access.
1. Click Start, point to Programs, then click Microsoft Access.
-OR-
Click on the Microsoft Access icon on the Microsoft Office Shortcut Bar, if it is displayed
on the desktop.
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.
(B). Create a database file using the Database Wizard.
The Database Wizard allows the user to create in one operation the required Tables,
Forms, and Reports for the type of database you choose. The wizard provides a set of
databases where the user is free to modify them according to his/her needs.
1. On the File menu, click New.
2. Under New from template, click General templates.
3. Click the Databases tab, then double-click the icon for the kind of database you want to
create, (or click the icon, then click the OK button).
4. In the File New Database dialog box, specify a name & location for the database.
5. Click on the Create button, then follow the instructions in the Wizard to define your
new database.
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.
5|Page
A Hyperlink field links the fields to another table within the same database or in a different
database.
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.
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.
8|Page
Ms-Access automatically saves the record you are adding or editing as soon as you move the
insertion point to a different record, or when you close the datasheet you are working on.
To save the data in a record while editing, click Save Record on the Records menu.
(i). FieldSize.
The FieldSize property defines/ controls the maximum no. of characters that can be
entered/ stored in a Text or Number field.
(ii). Format.
The Format property specifies how (the way) data is displayed in a field & printed.
Number & Currency fields provide predefined display formats. They include Currency,
Fixed, General, Percent, Scientific, General data, Medium date, Medium time.
(iii). Decimal places.
It is used to define the no. of decimal places in values. This option is used on fields that
already have the Fixed format such as in Number and Currency fields.
(iv). Default value.
It allows you to define a value that will automatically be inserted into the field as you add
new records. It is used in Text and Memo fields.
For example, to insert the current date in the Admission date field use “Date ( )”.
The default value affects only new records inserted.
(v). Validation Rule.
It allows you to create an expression or a formula that will test data when being entered
into the field.
It automatically rejects faulty/flawed entries, e.g., entering very large or very small figures
in the Age or Salary fields.
Validation Rule Description
Between 18 and 55 Limits an age field from 18 to 55.
<10000 Allows any value less than 10000
<=500 AND <=1000 Accepts any entry between 500 and 1000.
>Date( ) Allows entries whose dates are the current date or later.
<Date( ) Allows the current date and before.
Note. To test whether the Validation rule is applicable, choose Test Validation Rules on
the Edit menu.
(vi). Validation Text.
Defines an error message that will be displayed when the validation rule is violated/broken.
It must be typed in earlier.
Enter a useful message that can be clearly understood by the input clerk.
(vii). Required.
It controls the entry of important fields.
When this option is set to YES, an entry must be made within that field, i.e., it ensures that
the field is not left blank.
A YES option is equivalent of typing IS NOT NULL as a field Validation rule.
(viii). Input Mask.
Lets you define a pre-formatted pattern for the entry of data into a Date or a Text field.
The data in that field must conform to a pattern.
Examples of data include:
0#/0#/0# - this forces a 2-digits entries for the year, month and date in a date field.
A - Allows letters or digits into a field, but an entry is required.
9 - Allows letters or digits in a field, but no entry is required.
000000 - Allows a 6-digit number (not more or less than that).
999999 - Allows 6 or less digits.
AAAAA - only 5 characters are to be entered.
11 | P a g e
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.
13 | P a g e
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.
15 | P a g e
FILTERING OF RECORDS.
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’.
16 | P a g e
3. On the Records menu, click Apply Filter/Sort, (or click the Apply Filter button on
the toolbar).
(iii). Advanced Filter/Sort.
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.
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.
A relationship can be One-to-one, One-to-many, or Many-to-many.
Define a one-to-many or a one-to-one relationship.
1. Close any tables you have opened.
You cannot create or modify relationships between open tables.
2. Press F11 to switch to the Database window.
3. Click Relationships on the Tools menu or on the Standard toolbar.
4. If you have not yet defined any relationships in your database, the Show Table dialog box is
automatically displayed.
5. Drag the field that you want to relate from one table to the related field in the other table.
In most cases, you drag the primary key field (which is displayed in bold text) from one table
to a similar field (often with the same name) called the foreign key in the other table.
To drag multiple fields, press the CTRL key, click each field, and then drag them.
6. The Edit Relationships dialog box is displayed. Check the field names displayed in the two
columns to ensure they are correct. You can change them if necessary.
7. Set the relationship options if necessary, then click the Create button to create the
relationship.
8. Close the Relationships Window.
18 | P a g e
When you close the Relationships window, Access asks if you want to save the layout.
Whether you save the layout or not, the relationships you create are saved in the database.
Relationships window - A window in which you view, create, and modify relationships
between tables and queries.
Many-to-many relationship.
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.
(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?
20 | P a g e
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.
Design grid: The grid that you use to design a query or filter in query Design view or in
the Advanced Filter/Sort window.
You can design the query to prompt you for more than one piece of information;
For example,
You can design it to prompt you for two dates. Ms-Access can then retrieve all records
that fall between those two dates.
You can create a monthly earnings report based on a parameter query. When you print
the report, Ms-Access displays a dialog box asking for the month that you want the
report to cover. When you enter a month, Ms-Access prints the appropriate report.
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.
You can limit the records that you see in the query's results or the records that are included in a
calculation by specifying criteria.
For example;
(i). To limit the records in the query's results, enter criteria in one or more fields.
Between #6/1/01# And #6/15/01#
(ii). Use the Or row for alternative criteria in the same field.
Between #6/1/01# And #6/15/01#
Or Between #7/1/01# And #6/30/01#
(iii). Enter criteria for different fields. For example, for orders between 6/1/01 and 6/15/01 ...
Between #6/1/01# And #6/15/01#
(iv). Calculate total order amounts, but display only those that are more than $100,000.
>100000
Sort records.
You can sort the query's results by specifying a sort order in the design grid.
You can Sort by Ascending or Descending order, or remove a sort.
Show only the high or low values in a query.
You can show in a query datasheet those records with the highest or lowest values in a field or
the highest or lowest percentage of values in the field.
For example, you may want to show the top 10 Salespeople with the highest total sales for a
month, or the bottom 20 percent of students in a class by grade average.
1. Create a query in Design view.
2. In the Design grid add the fields you want to display in the query's results, including the field
you want to display top values for.
3. In the Sort cell of the field you want to display top values for, click Descending to display
the highest values or Ascending to display the lowest values.
4. Click in the Top Values box on the toolbar.
5. Enter the percentage or the number of highest or lowest values you want the query results to
display.
Note To display a percentage, enter a number followed by a percent sign (%).
6. To view the query's results, click View on the toolbar.
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.
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.
26 | P a g e
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.
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.
27 | P a g e
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.