The analysis done on a table or a form is usually
temporary and may be lost when you close the table or the form. Other than
that, most data analysis operations you can perform on a query are also
available on tables and forms.
Data analysis can be performed on tables, queries,
and/or forms. To analyze data, display the table or query in Datasheet
View, or the form in Form View. To assist you with data analysis, when a
table, a query, or a form is displaying in Datasheet View, the Ribbon is
equipped with a section titled Sort & Filter in the Home tab:
Also, when a table or a query displays in Datasheet
View, each column header displays a down pointing arrow button on its
right side:
|
Functions Language
Sorting and Filtering Text-Based Fields
Introduction to Data Analysis
To query the records of a database, you can use
Boolean algebra combined with some operators. Boolean Algebra works on
logical statements. A statement is a sentence that acknowledges a fact or
a possibility. That fact is eventually evaluated as being true or false.
There are three main types of logical statements:
These are the types of evaluations you make when
analyzing the records of your database.
|
Grouping Records on a Report
When creating this type of table, you may have values
that can be considered in categories, such as sold and unsold items,
discounted and not discounted items, or males and females. When preparing
a report, you can show its records by each category. For example, on a
table of students, you can show the list of girls only first. Then, after
the group of girls, you would show the list of boys. This is referred to
as grouping the records.
|
Characteristics of a Report
When a report is displaying in the Design View, the
Ribbon is equipped with a section named Page Setup:
When the report is displayed in Print Preview, the
Ribbon is equipped with a section labeled Page Layout:
The Page Layout section is equipped with a button
labeled Page Setup. When clicked, this button would open the Page Setup
dialog box that provides the same options of the Page Layout section and
more.
|
Creating a Report
As mentioned in previous lessons, a report shares many
characteristics with a form. In the Navigation Pane, a report is
represented by a green icon
Like a form, a report can be displayed in different
views but the report has more varieties.
|
Database Date and Time Values
|
Database Conditional Values
|
Numeric Values
To create a field that supports numbers:
A natural number is one that contains either only one
digit or a combination of digits and no other character, except those
added to make it easier to read. Examples of natural numbers are 122, 8,
and 2864347. When a natural number is too long, such as 3253754343, to
make it easier to read, the thousands are separated by a special
character. This character depends on the language or group of languages
and it is called the thousands separator. For US English, this character
is the comma. The thousands separator symbol is mainly used only to make
the number easier to read. You should be careful to use it in your
database.
Microsoft Access suppports different types of natural
numbers.
|
Strings
If a column has been created already and it is using a
data type other than text, to change it, click its column header or a cell
under its column. On the Ribbon, click Fields. In the Formatting section,
click the arrow of the Data Type combo box and select Text
If you are creating the table in Design View, to
configure a field that can hold any type of string, specify its Data Type
as Text:
A Text data type allows the user to type any
kind of characters or group of characters. This field can hold up to 255
characters.
|
Getting Assistance With Data Entry
The Chr() function is used to retrieve a
character based on an ASCII character number passed to the function. It
could be used to convert a number to a character. It could also be used to
break a line in a long expression. The syntax of this function is:
Chr(Number)
Based on the table of ASCII characters, a call as
Chr(65) would produce the letter A. Not all ASCII characters produce a
known letter. For example, when Chr(10) is used in a string, it
creates a "new line".
Although most of the user's data entry will be
performed on fields positioned on a form, you can display a special form
to the user and expect a value. This form (actually a dialog box) is
called an input box. To support this, Microsoft Access provides a function
called InputBox. The basic syntax of the InputBox()
function is:
InputBox(prompt) |
Subscribe to:
Posts (Atom)