Form 2 Full Notes
Form 2 Full Notes
WordProcessing is the art of text manipulation. MsWord is a Word processing program. It helps in creating
professional-looking documents that can be printed, e.g., letters, reports, memos, essays, projects, books,
etc,.
Microsoft Word is one of the components of Microsoft Office. Microsoft Office is an integrated software
with a number of interrelated programs, which include; Microsoft Word, Microsoft Excel (a spreadsheet),
Microsoft Access (a database management system), Microsoft PowerPoint (a presentation package), etc.
Each program allows the user to solve a variety of common computer related tasks.
Microsoft Office allows the user to work with programs that have the same basic structure and interface. It
also allows the users to share information quickly and easily between different programs.
There are several versions of Microsoft Word, the most common being Word 97, Word 2000, Word XP, and
Word 2003. These versions of Microsoft Word are found in Microsoft Office 97, 2000, XP and 2003 suites
respectively.
Method 1.
Click the Start button, point to Programs (or All Programs, if you are using Windows XP), then click
Microsoft Word from the programs menu.
Method 2.
Click on the Microsoft Word icon on the Microsoft Office Shortcut Bar, if it is displayed on the desktop.
SAVING A DOCUMENT
This is the process of making a document exist in your PC storage media, or on secondary storage.
NB; PC stands for Personal Computer.
Saving Commands
Save – this command saves the document without changing the file name or the location.
Save as – this command allows the user to save the document for the first time, change the file name or
save on a different location.
Saving with Password – a password is a string of characters used to prevent from unauthorised users. A
password is case sensitive always note the combinations of characters used.
CLOSING A DOCUMENT
On the “File” menu.
Click “Close”
NB; shortcut key Ctrl + F4
@Ochieng’GK 2022 31 Computer Studies F2
OPENING / RETRIEVING A DOCUMENT
This refers to opening a document which has already been created and saved.
On the “File” menu.
Click the “Open” (Open dialog box is displayed).
Select the location of the file from “Look in”.
Click the name of the document you want to open.
Click the “Open” button.
NB; shortcut key Ctrl + O
You can also open a file from a recently used file list on the “File” menu. Word keeps a list of recently used
files on the “File” drop down menu.
EXITING MSWORD
This refers to quitting the MS-Word program completely
On the “File” menu.
Click the “Exit”.
NB; shortcut key Alt + F4
EDITING A DOCUMENT
Editing – refers to making necessary changes to an existing document.
Text Selection
Selecting text using the Keyboard
To select one word, move the insertion pointer to the beginning or end of the word then press
“Shift+Ctrl+Right” or left arrow.
To select one line, press “Shift+Up” or “Shift+Down” arrow key. Alternatively, move the insertion point
to the end or beginning of the line then press “Shift+Home” or “End” keys respectively.
To select an entire page, press “Shift+Page Down” or “Shift+Page Up”.
To select the entire document, press “Ctrl+A” or place the cursor at the beginning of the document, then
press “Shift+Ctrl+End”.
VIEWING DOCUMENTS.
Ms-Word provides different ways to view your work, depending on the task at hand.
Print Layout View: Displays how a document or other object will appear when printed. It shows how text,
graphics, headers, footnotes, columns, textboxes and other elements will be positioned on the printed
page. This view is useful for editing headers and footers, for adjusting margins, and for working with
columns and drawing objects. To switch to print layout view, click Print Layout on the View menu.
Web layout view: Shows how a document will appear in a Web browser. In Web layout view, the document
appears as one long page (without page breaks), while text and tables wrap to fit in the window. To
switch to Web layout view, click Web Layout on the View menu.
Full Screen mode: In this mode, Ms-Word removes distracting screen elements, such as toolbars and scroll
bars so that it displays as much of your document as possible on the screen. To switch to full-screen
mode, click Full Screen on the View menu.
DELETING TEXT.
Backspace Key: It has a backward arrow (←) marked on it. Used to erase characters to the left of the cursor.
When pressed, it makes the cursor move one space backwards and the immediate letter / number is erased.
To delete a character from the right to the left, place the insertion point on the right of the word, then
press the Backspace key.
To erase one word to the left of the cursor, press CTRL+ Backspace.
Delete Key.
Erases characters to the right of the cursor.
To delete a character to the right of the cursor position, place the insertion point on the left of the word,
then press the Delete key.
TYPING MODES.
There are 2 typing modes in a word processor that assist the user in typing or editing text documents.
Insert mode
This is the default typing mode in most word processors. In Insert mode, Ms-Word inserts characters as you
type, and any new text you enter in the middle of a line is inserted between existing texts, characters or
@Ochieng’GK 2022 33 Computer Studies F2
words. The Insert mode pushes existing text away as new characters are inserted at the location of the
cursor without replacing it.
Overtype mode
To Overtype is to replace existing characters as you type. Therefore, if Overtype mode is turned on, tying
new text between existing words or characters automatically replaces the existing text by deleting it.
Overtype mode deletes the current text at the cursor position and replaces the existing characters with new
text.
Drag-and-Drop editing.
1. Select the text you want to move.
2. Point to the selection, press & hold down the left mouse button.
3. While still holding down the left mouse button, move the mouse pointer to the required location. The
dimmed insertion point that moves in the document shows you the position to which the selected text
will be transferred when you release the left mouse button.
4. Then release the mouse button.
Note. Drag-and-drop editing is suitable when you are moving text over a short distance, e.g., within one
page. It is clumsy to use when moving text across several pages.
Ms-Word will place whatever you had selected into a temporary storage area within the computer called the
‘Clipboard’ from where it is available to any application in Windows.
3. Click where you want the cut text to be placed. To move the item to another document, open or switch
to the document.
4. Click Paste on the Standard toolbar or Edit menu (or press CTRL+V).
Ms-Word inserts the contents of the clipboard at the position of the cursor.
Note. In Moving, all the selected text is transferred to a new location, while in Copying, the original text is
left intact.
@Ochieng’GK 2022 34 Computer Studies F2
FINDING & REPLACING TEXT
The Find and Replace features are used to search for a specific word or phrase that you want to review or
edit and automatically replace with other text. When you need to search for a word or phrase in a large
document, use the Find command. In case you wish to replace a word or phrase, use the Replace option.
You can click the More button to display and specify search options.
Match case: Identifies only text that has the same case with that typed in the Find What box, e.g., it will
not find the word DEEN if you typed deen and selected the Match Case option.
Whole Word: Searches for a word or phrase that is whole. If it is part of another word, it will not be
found, e.g., the word ever will not be found in words like however, whenever, etc during the search.
Use wildcards: Wildcards are special symbols such as * and ? that are used to represent a set of words
that have some similar characteristics. E.g., names like Jeff, Joe, Jane can be represented using a wildcard
as J*, which means all names starting with J.
Like: Searches for words which are similar in pronunciation, e.g. Fare and Fair.
1. Click where you want to insert the symbol or the special character.
2. On the Insert Ribbon, click Symbol or Equation
3. Then select the required symbol or Equation
PROOFREADING.
Proofreading refers to checking whether the document has typographical or grammar errors.
Importance.
√ To remove mistakes and improve document wording selections.
Ms-Word provides the following tools for proofreading a prepared document; Spelling and grammar
checker, Thesaurus, AutoComplete and AutoCorrect.
For example; if you mistype a word but the result is not a misspelling (e.g., typing "from" instead of "form"
or "there" instead of "their"), the spelling checker will not mark the word. To identify those types of
problems, the document should be carefully proof-read just before and after printing.
Ms-Word uses wavy red underlines to indicate possible spelling mistakes & wavy green underlines to
indicate possible grammatical mistakes.
Click Spelling and Grammar button on the Standard toolbar (or Press F7).
Choose a button in the Spelling and Grammar dialog box to make your changes.
(a). Change - accepts the current selection in the Suggestions box.
When the selected error is a repeated word, this button changes to Delete so you can easily remove
the second instance of the word.
(b). Change All – corrects all the occurrences of the misspelled word.
(c). If the intended word is not in the Suggestions box, you can correct spelling and grammar directly in
the document while the Spelling and Grammar dialog box is still displayed. Click in the
document & type your correction, and then click Resume to continue checking the spelling and
grammar.
(d). Ignore Once - Leaves the highlighted error unchanged (if the highlighted word is a valid word) &
finds the next spelling or grammar error.
@Ochieng’GK 2022 36 Computer Studies F2
This button changes to Resume if you click in the document to make a change in the document.
(e). Ignore All – retains all the occurrences of the same word or phrase in the document from another
language, e.g., a Kiswahili.
(f). Add - Adds the highlighted word in the Suggestions box to the Custom dictionary.
(g). Explain - gives a detailed explanation of a grammar flag.
(h). Ignore Rule –Leaves all instances of the highlighted error unchanged throughout the document and
continues to check the document.
When the Spelling and grammar check is complete, Ms-Word displays a message to that effect. To
return to your document when you finish checking on grammar, click OK.
Note. There are two types of dictionaries that are used by a spell checker program:
Main (Standard) dictionary.
Custom dictionary.
4. To replace the word with a synonym, click the replacement word from the list.
To replace a word or phrase with an antonym, select the word or phrase enclosed in brackets.
5. Click the Replace button.
6. To look up alternatives for a particular word, click it in the Replace with synonyms box, then click the
Look Up button that will enable you search through a wide range of synonyms and related words until
you find exactly the word you want.
Note. It is not possible to replace all occurrences of a word using the Thesaurus. One would have to select
each word individually and choose a synonym for it.
AutoComplete feature.
The AutoComplete feature displays a complete word when the user types the first few characters of the
word.
This enables the user to type faster/quickly by completing a word that the user has already started typing
automatically.
AutoCorrect feature
The AutoCorrect feature can be used to automatically detect and correct wrongly spelled words, and
replace them with the correct ones as set by the user. e.g. if you type teh plus a space, AutoCorrect replaces
it with "the.", or if you type This is theh ouse plus a space, AutoCorrect replaces it with "This is the
house."
AutoCorrect can also be used to quickly insert symbols that are included in the inbuilt list of AutoCorrect
entries. E.g., type (c) to insert ©.
AutoCorrect can automatically detect and correct incorrect capitalization. It can also capitalize the first
word in a sentence, the names of days of the week, the first letter of text in a table cell, etc.
Question: Distinguish between the AutoComplete and the AutoCorrect feature in word processing.
AutoComplete – helps a person to type quickly by completing a word that the user has already started to be
type automatically.
AutoCorrect – automatically replaces mistyped words with the correct ones as set by the user.
Undo mistakes.
To quickly undo/reverse recent actions one at a time, CTRL+Z
Exercise.
1. (a). Explain the importance of proofreading a document.
(b). Give two methods of proofreading a prepared document.
2. Give two types of dictionaries that are used by the spell-checker program. Which one is likely to have
non-English words, and Why?
3. Name and explain the use of any FOUR buttons found in a Spell check dialog box.
4. Explain how to do Word Count.
5. Explain how you would look up for a word in your computer dictionary.
6. What is a Thesaurus?
7. Distinguish between the AutoComplete and the AutoCorrect feature in word processing.
8. Explain the use of Undo and Redo commands.
9. In Spelling and Grammar check, what do the following buttons do?
Ignore All.
Add.
Change.
FORMATTING A DOCUMENT.
Formatting refers to applying various styles or features to enhance the appearance of a document. It can
also mean making a document attractive or enhancing the appearance of a document by bolding, italicizing,
bordering, coloring, etc.
√ To create professional documents by using different colours, and adding special effects like dropped
capitals, Superscripts and Subscripts.
√ To draw attention to important words or sentences by making them Bold, Italic or Underlined.
√ To draw attention to titles and headings by making them larger and changing their font type.
√ To draw attention to some important paragraphs and text by creating additional effects with the text in a
document.
√ To make the overall document appealing to the eye as you read through.
Note. Before you enhance a particular portion of a document, you must select the portion first.
Text Formatting.
Text formatting refers to features such as changing font types & font style, changing size of characters,
changing text color, underlining, bolding, italicizing, text alignment, etc.
Or
Using the Home ribbon.
1. Select the text whose format you want to change.
2. On the Home ribbon, click Font tab
In the Font dialog box, click a font type.
In the Font Style box, click Bold, Italic or Bold Italic.
To change the size of text, click a point size in the Font Size box.
To change the text color, click the arrow next to the Font Color box, then select a color.
In the Underline style list, click the style you want. In the Underline color list, click the color you
want.
When you select a formatting option, Ms-Word displays a preview of what you have selected.
3. Click the OK button.
To ensure that any new document you open uses the font settings you have selected, click the Default
button, then choose Yes from the resulting prompt.
Apply Special text Effects such as embossed, engraved, outlined, or shadow formatting to text.
1. Open the Font dialog box.
2. Under Effects, select the checkbox for the options you want, then click the OK button.
PARAGRAPH FORMATTING.
Capitalization of Text.
@Ochieng’GK 2022 39 Computer Studies F2
You can capitalize letters by changing their case, or by creating a large letter at the beginning of a
paragraph.
Drop Cap
Drop is fancy first character in a paragraph. A Drop cap is used to attract the reader’s attention by making
the first character in a sentence large, taking more space in the next line. It also emphasizes a particular
starting word in a paragraph.
1. If you are in a different view, switch to Print Layout view. This will allow you to view the dropped
capital letter, as it appears in the document.
2. Click in the paragraph you want to begin with a dropped capital letter. The paragraph must contain text.
3. On the Insert ribbon, click Drop Cap icon. This opens the Drop Cap dialog box.
4. Choose Dropped or In Margin or Drop Cap Options to specify the number of dropped lines
Select the font you want to apply to the dropped capital letter and the amount of space you want to leave
between the dropped capital letter and the text in the paragraph.
The Dropped option positions the dropped capital letter in line (flush) with the left margin, inside the
main text area. The In Margin option positions the dropped capital letter in the left margin.
5. Click the OK button.
TEXT ALIGNMENT
Text Alignment refers to how text is positioned (lined up) in a paragraph relative to the left, right, or centre
of the page.
Or
Use the alignment icons from the Home Ribbon
Line spacing:
Line spacing refers to the vertical distance between two lines of text in a paragraph. The amount of space
from the bottom of one line of text to the bottom of the next line.
Line spacing determines the amount of vertical space between two lines of text in a paragraph. If a line
contains a large text character, graphic, or formula, Ms-Word increases the spacing for that line so that it can
be accommodated.
Indentation
Indentation refers to moving the text away from the margin. Page margins determine the distance (or the
space) between the text & the edge of the page, while paragraph Indents and alignment determines the
distance of the paragraph from either the left or right margins.
Note. To remove the indent, press Backspace before moving the insertion point (or click Undo on the Edit
menu).
Importance.
√ Tab stops enable the user to line up text to the left, move the text to the right, or center it.
√ Tabs also allow easy entry of tabulated data.
√ The user can also automatically insert specific characters, such as periods or dashes, called Tab leaders,
before the tabs.
Tab leaders – are characters usually dots or hyphens, that fill the space between words separated by tabs.
They are intended to draw the reader’s eye across a line, as in Tables of Contents.
Once you no longer need the Tab stops, open the Tabs dialog box, then click the Clear All button.
However, if the user wants a page to begin at a particular spot (even before the end of the page), he/she can
insert a page break manually. Such a page break is referred to as a "Manual" (or Hard) page break.
When a manual page break is inserted, Ms-Word automatically adjusts the automatic page breaks that
follow. In Normal view, a page break is indicated by a dashed line across the page from left to right.
PAGE SETUP
Page setup has options that allow the user to specify the size of the margins, paper size, and
layout/appearance of a printed page.
Normally, text & graphics are inserted in the printable area inside the margins. However, items such as
headers, footers, and page numbers can be positioned in the margins.
E.g., to print on a Letterhead, change the top margin so that it is slightly larger than the pre-printed part of
the letterhead.
Gutter margins
@Ochieng’GK 2022 44 Computer Studies F2
They are used to add extra space to the left or top margin of a document you want to bind. It ensures that
the printed text is not hidden by the binding.
Note. You cannot print in portrait and landscape orientation on the same page.
Note. Top usually aligns the text starting from the top margin downwards.
Note. Headers and footers appear only in Print layout view, and in printed documents.
To remove the border, under Settings, click None, then click the OK button.
Note. To remove a background color, click Format, point to Background, then click No Fill.
On the Page Layout ribbon, choose either Insert Footnote or Insert Endnote
Type the text
Then double click the main text
A Table is a feature in Ms-Word made up of rows & columns which intersect to form cells that the user can
enter text and graphics.
A Cell is a box formed by the intersection of a row & column in a worksheet or a table, in which the user
can enter information.
A Row is a horizontal arrangement of cells; a Column is a vertical arrangement of cells.
Using the Draw Table tool for creating more complex tables.
On the Insert Ribbon, click Table.
Click on the Draw Table from the drop down dialog box. The Tables and Borders toolbar appears, and
the Mouse pointer changes to a Pencil.
Drag the pointer to draw the outline of the table. eg, to define the outer boundaries for the table, draw a
rectangle.
Draw the column and row lines inside the rectangle.
After creating the table, click in a cell and start typing text.
To move the text cursor from one cell to the next in the same row, press the TAB key.
To move text cursor one column to the left in the same row (to move to the previous cell), press SHIFT
+ TAB.
1. Point on the boundary of the row whose height you want to change until the pointer becomes a double-
headed arrow, and then drag the boundary.
Tip. To quickly add a row at the end of a table, click in the last cell of the last row, then press the TAB
key.
To insert Columns;
1. Select the same number of columns as the number you want to insert.
2. On Layout ribbon, then click Columns to the Right or Columns to the Left.
1. Select the cells, rows or columns whose contents you want to clear, then press DELETE key.
√ You can merge several cells horizontally to create a table heading that spans several columns.
√ To create larger cells in a table without increasing the height or width of existing cells.
1. Select the cells you want to merge. This can be adjacent rows or adjacent columns.
2. Click on Table, then choose Merge Cells.
Note. When you merge several cells in a column to create a vertically oriented table heading that spans
several rows, you can change the orientation of the heading text.
1. Select the heading text that you want to span several rows.
2. On the View menu, point to Toolbars, then click Tables and Borders.
3. Click the Change Text Direction button.
You can adjust the table to make sure that the information appears as you want it to when the table spans
multiple pages. To split a table into 2 parts;
1. Click the row that you want to be the first row of the second table.
2. On the Layout ribbon, choose Split Table.
Sorting in tables.
Sorting refers to arranging of text, numbers or data in a list or table according to some predetermined
sequence.
1. Click on any cell in the table you want to sort.
2. On the Layout ribbon, choose Sort icon.
3. Select the type of data to be used when sorting, i.e., Text, Number or Date.
4. Under Sort By, select the column number corresponding to the column you want to use as the basis for
sorting.
5. Select the Ascending or Descending option button.
Ascending will sort in increasing order (lowest to highest or A–Z); Descending will sort in decreasing
order (highest to lowest or Z–A).
6. If you want to use additional columns for sorting, enter the column in the Then by boxes.
@Ochieng’GK 2022 50 Computer Studies F2
7. Click the OK button.
Review questions
1. Define a Cell, Row and Column while working with tables?
2. Identify two importance of creating tables in Microsoft Word.
3. Differentiate between:
a). Drawing and inserting a table in a document.
b). Deleting a table and Clearing a table.
4. What would happen to the cursor in a table when the following actions are done:
(a).Pressing the TAB key.
(b).Pressing the SHIFT+TAB key.
(c). Pressing the ENTER key.
5. (a). Define the term “Merging of cells” as used in tables.
(b). Give a reason why it may be necessary to merge cells in a table.
6. Describe how would you do the following:
(a). Insert a blank row in your table.
(b). Insert borders around your table.
(c). Delete two rows from your table.
7. Explain how you can convert some typed text into a table using Microsoft Word.
8. What is a Function when working with calculations in word processing?
9. Define the term sorting text.
MAIL MERGING
Mail merging is the process of generating personalized letters or documents by combining a standard
document, e.g., a letter, with a list of addresses, and producing several copies of the standard document, but
addressed to different recipients.
The standard document (letter) is referred to as the ‘Main Document’ and the list of addresses is referred to
as the ‘Data Source’.
The Main document contains the text & graphics that are the same for each version of the merged
document, e.g., the return address or salutation.
2. Create the Data source or Open an existing Data source, with individual recipient information.
Data source (or Addresses file) is a file of data records of the people that will receive the form letter.
The Data source contains the information or data that varies in each copy of a merged document. E.g.,
the list of names & addresses you want to use in a mail merge.
Review questions.
1. Describe the procedure of creating an envelope heading. Show how you can make it bold & size 12.
2. (a). What is the meaning of the word Mail merging?
(b). Give two advantages of Mail merging.
3. Define each of the following:
(i). Main document / Form letter.
(ii). A Data source.
4. Explain the THREE basic steps required to Mail merge a document.
5. List four ways of merging a document with its data source.
Importance.
√ Information presented graphically is easy to understand, e.g., if you have a lot of information,
representing it graphically is more effective than using text only.
√ Graphics & drawings can be used to enhance Ms-Word documents, e.g., one can use arrows to draw
attention to certain data.
√ A well-placed picture can help illustrate a point clearly, and can transform a plain looking document into
an interesting document.
Types of Graphics.
There are 3 basic types of graphics that you can use to enhance your Ms-Word documents:
1. Drawing objects
2. Pictures
3. Charts
Drawing objects.
A Drawing object is any graphic that is drawn or inserted into a document, and can be changed or
improved.
Drawing objects include AutoShapes and WordArt.
AutoShapes is a group of ready-made graphic images or shapes. AutoShapes usually have predefined
shapes, and the user can draw by selecting it, then dragging its size on the screen. Examples of AutoShapes
are; rectangles, circles, Lines, Connectors, Block arrows, Flowchart symbols, Stars, etc.
Pictures.
Chart.
A Chart is a graphical presentation of data in a table. Charts are used to summarize data in a document in a
pictorial way.
Callouts
These are special AutoShapes into which you can add text. They can be used to draw attention to an
important point or to highlight information that you want to emphasize.
@Ochieng’GK 2022 53 Computer Studies F2
PRINTING A DOCUMENT
Previewing a document (Display each page as it will look when printed).
Before you print a document, it is important to make sure that it will be printed the way you want it.
Previewing a document enables you to see exactly the way the pages will appear when printed, and where
necessary, make any changes to the document.
A Spreadsheet is a ledger sheet that lets the user enter, edit, and manipulate numerical data. A Spreadsheet
usually consists of a series of rows & columns in which data entries can be made.
Types of Spreadsheets:
There are 2 types of spreadsheets:
Review Questions.
1. Define a Spreadsheet.
2. Differentiate between the traditional analysis ledger sheet and an electronic spreadsheet.
3. Name three commonly spreadsheet packages.
COMPONENTS OF A SPREADSHEET
A spreadsheet has 3 main components, namely;
(a). Workbook.
(b). Database.
(c). Graphs / Charts.
Workbook:
When working in any spreadsheet program, you use workbook files to hold your information. A Workbook
is a file in a spreadsheet package that contains one or more worksheets. The worksheets are made up of
rows & columns in which you work and store your data. A Workbook allows the user to organize various
kinds of related information in a single file.
Database:
Spreadsheet programs such as Excel have special features, which can be used to manage data values entered
in the cells of the spreadsheet. These features, which are found on the Data menu, were incorporated in
Excel but they belong to Database Management System software.
Examples of such features include: Filtering of records, use of Forms, calculating of Subtotals, data
validation, Pivot tables and Pivot chart reports.
@Ochieng’GK 2022 55 Computer Studies F2
Example:
If related data values are entered on the same row, they form a Record. Hence, a worksheet can be
manipulated as a database that has data records entered in it.
Graphs/Charts:
A Chart is a graphical/pictorial representation of data in a worksheet. Charts are used to summarize data in
a worksheet in a pictorial form. They enable the users to present complex data elements from a worksheet in
a simple format that they can understand.
Charts make it easy for users to see comparisons, patterns, and trends in data, e.g., instead of having to
analyse several columns of a worksheet, one can see at a glance whether sales are falling or rising.
Examples of charts are: Pie charts, Line graphs, Bar charts, Histograms, Column charts, etc.
Review Questions.
1. Name and describe the three components of a spreadsheet.
2. Explain the following terms as used in spreadsheets.
i) Workbook.
ii) Chart.
Note. Most spreadsheet programs come with inbuilt functions such as SUM, AVERAGE, PRODUCT,
etc, which enable the Accountant to carry out his/her daily accounting tasks easily.
2. Data management.
A spreadsheet enables information to be produced easily and kept up-to-date.
For example;
It enables the user to create, edit, save, retrieve and print worksheet data & records.
It enables data to be arranged neatly in tabular structure.
Related data can be typed on the same worksheet. If the data is on different worksheets, the
worksheets can be linked so that the data can be accessed easily.
Some of the data management functions include:
Sorting (i.e., arranging worksheet records in a particular order so as to easily access the data items).
Filtering (i.e., displaying only the records that meet a given condition).
Use of Forms to enter & view records.
Use of Total/Subtotal function.
3. Scientific Applications.
Spreadsheet programs can be used by Scientists & Researchers to compile & analyse their results.
Review Questions.
1. Explain five application areas where spreadsheet software can be used.
2. Explain the concept of “What if” analysis.
Review Questions.
@Ochieng’GK 2022 57 Computer Studies F2
1. Describe any five features of a spreadsheet program.
2. State five features of spreadsheets that are useful in financial modelling.
3. How does a spreadsheet differ from a Calculator?
MICROSOFT EXCEL
This is a Spreadsheet program that enables users to create electronic worksheets that can be used to perform
simple & complex calculations using a computer.
Ms-Excel has inbuilt functions that are used as shortcuts for performing mathematical, financial and
statistical calculations.
(b). Column Identifiers (or Column headers) – Letters that identify the columns.
(c). Row Identifiers (or Row headers) – numbers that identify the rows.
A Worksheet has a total of 256 columns & 65,536 rows.
(d). Active (Current) cell – the cell in which the selection box (Cell pointer) is placed.
(e). Cell Pointer.
(f). Gridlines - the thin lines that indicate the cell boundaries in a worksheet.
(g). At the bottom of the window,
Status bar - displays different indicators about the current working environment.
To display or hide the Status bar, click Status bar on the View menu.
Sheet tabs – these are names of the sheets that appear at the bottom of the workbook window.
Tab scrolling buttons - They enable the user to select and use a different sheet.
Scroll bar, scroll box & the scroll arrows.
Scroll bars are the shaded bars along the right side and bottom of a window. To scroll to another part
of the file, click the arrows in the scroll bar or drag the scroll box.
THE WORKSHEET:
This is the primary document in a Spreadsheet program that is used to store & work with data. A Worksheet
is a tool that is used for maintaining numeric data in a tabular form, simplifying numerous calculations and
presenting numerical data graphically.
A worksheet is basically a page stored in a workbook, and acts as the working area.
A Worksheet consists of cells that are organized into columns & rows in which data entries are made.
Columns: – These are fields that make up the worksheet of a Spreadsheet. A Column is a vertical
arrangement of cells.
Rows: – These are records that form a worksheet. A Row is usually a horizontal arrangement of cells.
@Ochieng’GK 2022 58 Computer Studies F2
Cell: A box formed when a row & a column intersect in a worksheet or a table, where the data is entered.
A cell is referred to or identified by use of the column letter heading & the row number heading (e.g.,
A1 refers to the first cell).
To Delete worksheets.
1. Select the worksheet(s) you want to delete.
2. Right Click on the sheet to be deleted, then click Delete Sheet.
To Hide a worksheet.
1. Select the sheet(s) you want to hide.
2. On the View ribbon, click Hide.
(1).Labels (Text).
Labels are texts consisting of alphanumeric characters that can be entered into a cell. e.g., Item
codes such as Salary, Names such as John.
Labels are made up of alphanumeric character strings. In Excel, Text is any combination of
numbers, spaces, & nonnumeric characters. e.g., 10A19, 27AXY, 12-976, 208 4675.
(2).Values (Numbers).
Values consist of numerals & mathematical formulas entered into a cell.
In Excel, a number can contain only the following characters: digits 0 to 9 + - ( ) / $ %.
(3).Formulas.
A Formula is a sequence of values, cell references, functions & arithmetic operators whose
calculation results to a numeric value.
It is an equation that performs operations on worksheet data.
Formulas can perform mathematical operations such as addition, subtraction, division and multiplication.
A Formula is used to tell Ms-Excel how you want a particular value to be computed.
(4).Functions.
It is a special command, which you can type into your formula to perform arithmetic operations.
It is an inbuilt equation that is used for calculations.
A Function is a short predefined (inbuilt) formula used to perform a given specific task.
Functions can be used to perform both simple and complex calculations.
SAVING WORKBOOKS.
√ In order to use the worksheet at a later time.
√ If the saving is done periodically, say every 1 minute, it helps prevent data loss in case of power failure.
When you save a workbook for the first time, you assign a file name and indicate where you want to store
the file on your computer’s hard disk or in another location. Each time you subsequently save the
workbook, Ms-Excel updates the workbook file with your latest changes.
1. Choose Open on the Application Control Checkbox, or press CTRL+O to display the Open dialog box.
2. In the Look in drop down list, click the drive or folder that contains the file you want to open.
3. In the folder list, locate and open the folder that contains the file.
4. Double-click the file you want to open (or click the file, and then click the Open button).
Note. To open a recently opened file, select it from the bottom of the File menu.
To Insert Rows.
1. To insert a single row, select a row (or click a cell in the row) immediately below where you want the
new row to appear.
For example, to insert a new row above row 5, click a cell in row 5. To insert multiple rows, select the
same no. of rows as you want to insert.
2. On the Home menu, click Rows.
To Insert Columns.
1. To insert a single column, select a column (or click a cell in the column) immediately to the right of
where you want the new column to appear.
For example, to insert a new column to the left of column B, click a cell in column B. To insert multiple
columns, select the same no. of columns as you want to insert.
2. On the Home menu, click Insert.
Exercise (b).
1. What is the meaning of each of the following concepts?
(i). Labels.
(ii). Values.
(iii). Formula.
(iv). Function.
2. Distinguish between Labels and Formulae with respect to Spreadsheets.
Exercise (c).
1. List FOUR types of information that can be entered into a cell. (4 marks).
2. Explain THREE cell data types in spreadsheet. (6 marks).
POSITIONING (ALIGNING) DATA IN A CELL.
√ Adjusting the alignment of the cell contents, helps to distinguish different types of information in cells.
Usually when you enter text data into a worksheet, it is normally aligned to the left in a cell, while
numbers, dates & times are aligned to the right.
The borders, shades and patterns that you have specified all apply to the range you had selected.
Exercise.
1. Explain step-by-step how you would perform the following operations on a worksheet in Microsoft
Excel.
(i). Enter data into a worksheet cell.
(ii). Edit cell contents.
(iii). Make text in a cell Bold, Italic and double-underlined.
(iv). Adjust a column width to accommodate the longest cell entry in a range of cells.
2. Explain what are Label prefixes in spreadsheets. (10 Mk)
3. A worksheet table has columns A through N. The Chief Accountant doesn’t require the information
contained in columns E, F and G. Give a step-by-step procedure on how to make sure that only the
columns with the required information are printed.
4. You have the number 435273.7865 in a cell. How will it look if you format the cell as commas and 2
decimal places?
FINDING RECORDS.
√ Suppose you wanted to view records that meet given conditions, you would have to sort the table
according to the conditions so as to find out where those records appear in the list. Such conditions are
referred to as ‘Criteria’.
1. Click on any cell in the table that contains the records you want to search for.
2. On the Data menu, choose Filter, then select AutoFilter from the submenu.
A downward arrow appears on the right of each field name.
3. Click the down arrow on a column to display the conditions that can be set. Select a condition (Criteria)
from that list.
Note. If the criteria you want is not in the list or if you want to enter two conditions, then perform the
following steps:
(i). Select the column / field to search by clicking on the down arrow to the right of the field name.
The Custom AutoFilter dialog box appears.
(ii). In the Show rows where: box, select the conditions to use by clicking on the down arrow. The list
includes ‘is greater than’; ‘is less than’, etc.
(iii). Enter the Value to compare the contents of the field width. You could type or select it from a drop
down list of values available in the database.
4. Click the OK button to complete the task.
Note. To redisplay the records, click on the down arrow to the right of the field name that you had selected,
and select the option All.
Suppose you want to view all the sales that exceed 100 Shillings but are below 150 shillings from a week’s
list of sales records.
The field to use for the search would be Amount. So, click on the down arrow on the right of the
Amount field.
The Operator would be is greater than, and the value would be 100.
Enter the second criteria, as Amount is less than 150, then click the OK button.
All the records whose amount is between 100 and 150 will be displayed (Only the records matching the
criteria are displayed).
A B C D
1 Date Person Item Amount
3 28-Mar- Albert Take Away 136
97
5 09-Mar- Susan Breakfast 112
97
7 12-Apr-97 Richard Snacks 118
8 15-Mar- Peter Bar 114
97
10 01-Mar- James Bar 167
97
PIVOT TABLES.
√ A Pivot table helps us to summarize and analyze large amounts of existing data, from a list or table,
using the format and calculation methods of your choice.
Suppose we wanted the daily totals for each of the sales persons along with the total sale for each day: A
PivotTable can help us get that kind of information much more easily.
Note. To refresh the PivotTable whenever you open the workbook, click Options on the PivotTable menu
of the PivotTable toolbar. Under Data source options, select the Refresh on open checkbox.
REFERENCING OF CELLS.
A cell is identified by use of the Column letter heading & the Row number heading. To refer to a cell, enter
the column letter followed by the row number. For example, B2 refers to the cell at the intersection of
column B & row 2.
A Function is a special command, which you can type into a formula to perform arithmetic operations. A
Worksheet function is a special inbuilt formula that performs an operation on the values that you provide.
It is an inbuilt equation that is used for calculation.
4. Statistical functions.
Perform calculations (statistical analysis) on ranges of data. e.g., AVERAGE - calculates the average
(arithmetic mean) of a set of values in a range.
STDEV – Estimates Standard Deviation based on a sample. Standard Deviation is a measure of
how widely values are dispersed from the Average value (Mean).
Syntax: STDEV(number1,number2,….)
5. Logical functions.
Calculate the results of logical formulas. e.g., the IF Function.
7. Database functions.
Perform statistical calculations and queries on database tables. For instance, DSUM will find the total of
values in a particular field (column).
8. Information functions.
Return information about cells, ranges, the operating system, and some Ms-Excel tools, or to mark
places where information is missing or incorrect. eg., CELL - returns information about the formatting,
location or contents of a cell.
For example, the formula ‘=SUM(D1:D7)’ uses a function to add the values in the range D1:D7. It
gives the same result as the formula ‘=D1+D2+D3+D4+D5+D6+D7’.
Operator - A sign or a symbol that specifies the type of calculation to perform on the elements of a formula.
Excel includes 4 different types of calculation operators:
(i). Arithmetic (Mathematical) operators.
(ii). Logical (Comparison) Logical operators.
(iii). Reference operators.
(iv). Text concatenation operators.
Reference operators.
Combine ranges of cells for calculations.
Reference operator Meaning Example.
: (colon) Range operator; produces one B5:B9
reference to all the cells between
two references, including the two
references.
Following the equal sign are the elements to be calculated called Operands or Arguments. The Arguments
are separated by calculation operators, and enclosed by an opening & closing parentheses (brackets).
1. Click on the cell in which you want to enter the formula.
@Ochieng’GK 2022 68 Computer Studies F2
2. Type the = (equal sign) to activate the Formula bar. The equal sign (=) tells Ms-Excel that you are
entering a formula in the cell.
3. Type the formula directly into the Formula box.
To tell Ms-Excel where to find the data that will be used in the calculation, type a cell reference.
4. Press the ENTER key. Ms-Excel immediately calculates & shows the result in the cell, while the
formula is displayed in the Formula bar.
Notes.
A Formula can refer to other cells on the same worksheet.
Ms-Excel calculates a formula from left to right, according to a specific order for each operator in the
formula.
You can change the order of operations by using parenthesis. E.g., to calculate B4+25, then divide the
result by the sum of the values in cells D5, E5 and F5, the formula would be: =(B4+25)/SUM(D5:F5)
In this example, the parentheses around the first part of the formula forces Ms-Excel to calculate B4+25
first, then divide the result by the sum of the values in cells D5, E5, and F5.
Note. The structure of a function begins with an Equal sign (=), followed by the Function name, & the
Arguments for the function. The Arguments are separated by commas or a colon, and enclosed in an
opening & closing parenthesis.
USING FUNCTIONS
A B C D E F G H
Honoraria
Ag Basic House Commuter (% of Basic Honorari Gross
1 Name e Salary Allowance Allowance Salary) a Amount Salary
2 John Okello 45 34,450 10%
3 Samwel Otieno 16 28,290 9%
3 Justus Omwami 29 27,700 8%
4 Jane Kisia 25 32,000 9.5%
5 Judith Amondi 23 28,000 9%
6 Uhuru Kipngeno 37 34,200 10%
8 Total
9 Average
10 Maximum
11 Minimum
12 Median
Functions Table Data
Example 2: Using the Sum function find the sum of Basic Salary in the Functions Table data above
Solution: C7=SUM(C2:C6)
Example 2: Using the Average function find the average of Basic Salary in the Functions Table data
above
Solution: C8=AVERAGE(C2:C6)
Example 2: Using the Product function find the product of Basic Salary in the Functions Table data
above
Solution: G2=PRODUCT(C2,F2)
Example 2: Using the Maximum function find the maximum value of Basic Salary in the Functions
Table data above
Solution: C9=MAX(C2,C6)
Example 2: Using the Maximum function find the maximum value of Basic Salary in the Functions
Table data above
Solution: C10=MIN(C2,C6)
Syntax: COUNT(value1,value2,...)
Value1, value2, ... are the arguments that can contain or refer to a variety of different types of data, but only
numbers are counted.
Note. Empty cells, logical values, text, or error values in the reference are ignored.
Example 1: Using the Count function count the cells in the Functions Table data above
=COUNT(A2:H6)
This counts all the cells within the specified range that have value entries.
Note: - COUNTA – Counts the number of cells that are not empty.
The IF function.
IF is used to conduct conditional tests on values and formulas. It evaluates a condition and returns one of
two values, depending on the result of the evaluation. If the condition is TRUE, IF returns one value. If the
condition is FALSE, IF returns the other value.
Note. The condition is usually a logical formula. e.g., A5=100 is a logical expression; if the value in cell
A5 is equal to 100, the expression evaluates to TRUE. Otherwise, the expression evaluates to
FALSE.
Example 1.
Cell A2 contains the value 50.
On a budget sheet, cell A5 contains a formula to calculate the current budget.
=IF(A2<=100,"Within budget","Over budget")
If the result of the formula in A5 is less than or equal to 100, then the function displays “Within budget”.
Otherwise, the function displays “Over budget”.
Example 2. In this example, if the value in cell A2 is 100, then the condition is TRUE, and the total value
for the range B5:B15 is calculated. Otherwise, condition is FALSE, an empty text ("") is
returned that leaves the cell that contains the IF function blank.
=IF(A2=100,SUM(B5:B15),"")
Example 3: Using the IF Function Display a remark in Column I of “Retire” or “Continue” in Column I if
the age is above 35 years in the Functions Table data above
=IF(B1>35,COUNT(A2:H6)
Example 4: Suppose an expense worksheet contains in A2:A4 the data for “Actual Expenses” for January,
February, and March: 1,500, 500 and 500. Cells B2:B4 contains the data for “Predicted Expenses” for the
same periods: 900, 900, and 925.
A B C
1 Actual Expenses Predicted Expenses
2 1500 900
3 500 900
4 500 925
Note. When a function is used as an argument, it must return the same type of value that the argument uses.
For example, if the argument returns a TRUE or FALSE value, then the nested function must return a TRUE
or FALSE. If it doesn’t, Ms-Excel displays a #VALUE error value.
Example 5.
=IF(SUM(K10:K19)>=5000,10%,5%)
In this example, the SUM function is being nested. Assume that the result of the SUM function is 935.
Since the sum of the range K10:K19 is not greater than or equal to 5000, the result is 5%.
Example 6. Cells A2, A3 and A4 contain the values 45, 90, 78.
Example 6: Suppose you want to assign letter grades to numbers referenced by the name AverageScore.
See the table below.
In the above formula, the second IF statement is also the value_if_false argument to the first IF statement.
Similarly, the third IF statement is the value_if_false argument to the second IF statement.
For example, if the first logical_test / condition (AverageScore>89) is TRUE, "A" is returned. If the first
logical_test is FALSE, the second IF statement is evaluated, and so on.
num_digits – specifies the no. of digits to which you want to round the no.
Notes.
If num_digits is greater than 0 (zero), then number is rounded to the specified no. of decimal places.
If num_digits is 0 (zero), the number is rounded to the nearest Integer (whole no.).
If num_digits is less than 0 (zero), then number is rounded to the left of the decimal point.
Example 1:
Formula Description Result
=ROUND(2.15,1) 2.2
=ROUND(2.149,1) 2.1
=ROUND(21.5,-1) num_digits is less than 0 (zero), 20
=ROUND(A3,0) Rounds 5.9 up, because the fractional part is greater than .5 6
=ROUND(A4,0) Rounds -5.9 down, because the fractional part is less than -.5 -6
=ROUND(-1.475,2) -1.48
Example 3: Using the ROUND function find the Round Off the Basic Salary in the Functions Table
data above to 2 decimal places
C11=MEDIAN(C2-C6)
Syntax: MEDIAN(number1,number2,...)
Number1, number2, ... are numbers for which you want the median.
Notes.
Cells with the value zero are included.
If there is an even number of nos. in the set, then MEDIAN calculates the average of the two numbers in
the middle.
Example 2: Using the Median function find the median value of Basic Salary in the Functions Table
data above
C11=MEDIAN(C2-C6)
Syntax: MODE(number1,number2,...)
Number1, number2, ... are the arguments for which you want to calculate the mode.
Note.
Cells with the value zero are included.
If the data set contains no duplicate data points, MODE returns the #N/A error value.
Description Formula
Mode, or most frequently occurring no. in the list =MODE(A2:A7)
Tip. In a set of values, the Mode is the most frequently occurring value; the Median is the middle value;
and the Mean is the average value.
The PMT Function
PMT calculates the payment on a loan (principal) at a given interest rate for a specified no. of payment
periods (term).
Principal and Terms are values. Interest is a decimal or percentage value greater than -1.
Example;
A businessman took out a Ksh. 800,000 loan for 4 years at an annual Interest Rate of 26%, compounded
monthly. If the monthly installments are paid on the last day of each month, determine the installment to be
paid.
=PMT(800000,0.26/12,48)
Note. The Interest is divided by 12 in order to get the monthly rate, and term (in years) is multiplied by 12
to convert it into months.
Number - is the number for which you want the square root. If number is negative, SQRT returns the
#NUM! error value.
Example 1: Cell B2 contains the number 215; to get the square root, type:
Syntax: POWER(number,power)
Note. The up carat (^) operator can be used instead of POWER to indicate to what power the base no. is to
be raised.
The FV Function
FV calculates the future value of a fixed investment earning a fixed interest over a specified period.
E.g., let’s say, you want to plan for your retirement in 20 years and decide to invest Ksh. 20,000 each year.
If the investment pays 20% interest compounded annually, the formula would be:
=FV(20%,20,-20000)
You would collect Ksh. 3,733,760 after 20 years.
Syntax: LOG(number,base)
Number -is the positive real no. for which you want the logarithm.
Base -is the base of the logarithm. If base is omitted, it is assumed to be 10.
Formula Result
=LOG(10) 1
=LOG(8, 2) 3
=LOG(86, 2.7182818) 4.454347
Syntax: LOG10(number)
Number -is the positive real number for which you want the base-10 logarithm.
Formula Description Result
=LOG10(86) Base-10 logarithm of 86 1.934498451
=LOG10(10) Base-10 logarithm of 10 1
=LOG10(10^5) Base-10 logarithm of 10 power 5 5
@Ochieng’GK 2022 75 Computer Studies F2
The MOD Function
The MOD function gives the remainder after a number is divided by a divisor. Usually, the result has the
same sign as the divisor.
Syntax: MOD(number,divisor)
Number -is the number for which you want to find the remainder.
Syntax: COS(number)
Number - is the angle in radians for which you want the cosine. If the angle is in degrees, multiply it by
PI()/180 to convert it to radians.
Syntax: SIN(number)
Number -is the angle in radians for which you want the sine. If your argument is in degrees, multiply it by
PI()/180 to convert it to radians.
Syntax: TAN(number)
Number- is the angle in radians for which you want the tangent.
Syntax: TRUNC(number,num_digits)
Syntax: NOT(logical)
Logical1, logical2, .. are the conditions you want to test that can be either TRUE or FALSE.
Note. The arguments must evaluate to logical values such as TRUE or FALSE, or the arguments must be
references that contain logical values. If the specified range contains no logical values, AND returns
the #VALUE! error value.
Example 1.
Formula Description Result
=AND(TRUE, TRUE) All arguments are TRUE TRUE
=AND(TRUE, FALSE) One argument is FALSE FALSE
=AND(2+2=4, 2+3=5) All arguments evaluate to TRUE TRUE
Formula Result
=AND(1<A2,A2<100) TRUE
Suppose you want to display A3 if it contains a number strictly between 1 and 100, and you want to display
a message if it is not. If A3 contains 104, then:
Formula Result
=IF(AND(1<A3,A3<100), A3,"The value is out of range.") “The value is out of range”.
@Ochieng’GK 2022 77 Computer Studies F2
If A3 contains 50, then:
Syntax: OR(logical1,logical2,...)
Logical1,logical2,... are conditions you want to test that can be either TRUE or FALSE.
Notes.
The arguments must evaluate to logical values such as TRUE or FALSE, or references that contain
logical values. If the specified range contains no logical values, OR returns the #VALUE! error value.
If a reference argument contains text or empty cells, those values are ignored.
ERROR VALUES.
If a formula cannot properly evaluate a result, Ms-Excel will display an error value. For example, error
values can be as a result of using text where a formula expects a numeric value, deleting a cell that is
referenced by a formula, or using a cell that is not wide enough to display the result.
1. #####
Causes.
- This error value occurs when the cell contains a number, date or time that is wider than the cell.
-OR-
- It occurs when the cell contains a date or a time formula that produces a negative result.
Suggested action.
a) Increase the width of the column by dragging the boundary between the column headings.
b) Apply a different number format in the cell to make the number fit within the existing cell
width. E.g., decrease the no. of decimal places after the decimal point.
c) Ensure that the data and time formulas are correct. When you subtract dates and times, make
sure you build the formula correctly.
If a formula has a result of a negative value, you can display the value by formatting the cell with a
format that is not a date or time format.
Click Cells on the Format menu, click the Number tab, then select a format that is not a date or
time format.
2. #N/A
The #N/A error value occurs when a value is not available to a function or formula.
3. #DIV/0!
This error value occurs when you enter a formula that contains a division by zero (0).
E.g., =5/0. It may also occur when you divide a cell by another cell that is blank.
Suggested action.
Change the divisor to a number other than zero.
4. #NULL!
The #NULL! error value occurs when you specify an intersection of two areas that do not intersect. i.e.,
using an incorrect range operator or using an incorrect cell reference.
Suggested action.
(i). Use the correct range operator. For instance, to refer to two areas that don’t intersect, use the
Comma.
E.g. if the formula sums two ranges, separate the two ranges with a comma.
=SUM(A1:A9,C1:C6).
5. #NAME?
The #NAME? error value occurs when Ms-Excel doesn’t recognize text in a formula.
6. #NUM!
This occurs when a problem occurs with a number in a formula or function. E.g., Entering a formula
that produces a number to a number that is too large or too small to be represented in Ms-Excel.
Suggested action
(i). Change the formula so that its result is between – 1*10307 and 1*10307.
7. #VALUE!
The #VALUE error value occurs when the wrong type of argument or operand is used.
8. #REF!
The #REF error value occurs when a cell reference is not valid. For instance, deleting cells referred to
by other formulas, or pasting moved cells over cells referred to by other formulas.
@Ochieng’GK 2022 79 Computer Studies F2
Suggested action
(i). Change the formulas, or restore the cells on the worksheet by clicking Undo immediately after you
delete or paste the cells.
Exercise.
1. You have entered a formula to add the contents of B5 and C4 in cell F5. What will it become when you
copy it to cell H8?
Explain the reason for your answer.
2. What causes the following error messages in Microsoft Excel. Show how we can solve them.
(i). #####
(ii). #VALUE!
(iii). #DIV/0!
(iv). #NAME?
3. The first column in the table below contains formulas as entered into the cell D46. In the second
column, enter the formulas as they would appear when copied to B56.
Formula in D46 Formula when copied to B56
=D1
=F5*C10
=H$46+J40
=$E12-
D$14*$F$2
DATA SORTING.
Sorting is the process of arranging data within a range in a particular order.
Purpose.
√ Sorting helps in arranging data in some order of priority, i.e., from lowest to highest or from highest to
lowest.
√ It also helps to quickly locate the highest or lowest value in a list.
When you sort, Ms-Excel rearranges rows, columns, or individual cells by using the sort order that you
specify. You can sort a list in Ascending (1-9, A-Z) or Descending order (9-1, Z-A). You can perform a
sort based on the contents of one or more columns.
To sort rows in ascending or descending order based on the contents of one column.
1. Click a cell in the column by which you want to sort. The column on which the list is arranged is known
as the Key.
2. To arrange the data from lowest to highest, click on the Sort Ascending button on the toolbar. To
arrange the data from highest to lowest, click on the Sort Descending button on the toolbar.
-Or-
On the Data menu, click Sort. In the Sort by box, click the column you want to sort and then choose
the sort order.
Examples:
(i). A teacher may arrange pupil’s records according to the marks scored in a test, starting with the highest
to the lowest in order to assign class positions.
(ii). An Accountant may arrange a list of financial records according to the date of the transaction and
customer name in order for him to be able to quickly locate any record using the transaction date and
name of customer.
(iii). Arranging a telephone list according to alphabetical order of last name in order to easily locate a name
and phone number. If there are several people with similar last names, you can specify two keys such
that the records are arranged in order of first name as well.
LINKING WORKSHEETS.
Purpose.
√ Sheets are normally independent. If a change in a value in one sheet is intended to affect other values in
different sheets, it is advisable to link the sheets so that Ms-Excel will automatically update the affected
values if you make any changes.
Alternatively, you can calculate the new values and manually make the changes to all the other sheets. This
would be unreliable & cumbersome especially if this is to be done for many values in many large
worksheets.
When typing in a formula that refers to a cell in another sheet, include the name of the sheet before that
particular cell reference separated by a colon.
Example 1:
The formula =G6*Sheet1!B6 (instead of =G6*B6) will refer to B6 in Sheet 1 rather than in the current
sheet.
Example 2:
Typing the formula =Salesinfo!A10 in cell A10 of Sheet2 will cause the contents of cell A10 in the Sheet
named Salesinfo to be also the contents of A10 in Sheet2.
CREATING CHARTS.
Charts are used to present data effectively. They make relationships among numbers easy for users to see
because they turn numbers into shapes that can be compared to one another.
For instance, rather than having to analyze several columns on worksheet numbers, you can see at a glance
whether sales are falling or rising over quarterly periods, or how the actual sales compare to the projected
sales.
If the cells you want to select for your chart are not in a continuous range,
Select the first group of cells that contain the data you want to include.
Hold down the CTRL, then select any additional cell groups you want to include. The nonadjacent
selections must form a rectangle.
3. On the Insert menu, click Chart (or click the Chart Wizard button on the Standard toolbar). Then
use the Chart Wizard to help you through the process of choosing the chart type and the various chart
options.
Axis - A line that borders one side of the plot area, providing a frame of reference for measurement or
comparison in a chart. For most charts, data values are plotted along the value axis, which is usually
vertical (Y-axis), and categories are plotted along the category axis, which is usually horizontal (X-axis).
Note. Ms-Excel creates the axis values from the worksheet data.
Note. When you click one of the Placement options, the legend moves, and the Plot Area (area bounded
by the axes) automatically adjusts to accommodate it.
To move an item, point to the item, then drag it to another location of the sheet.
To resize a chart item, point to a Sizing handle. When the pointer changes to a double-headed arrow, drag
the sizing handle until the item is the size you want.
To change the Font, font Size, font Colour of text in a chart or make the text Bold, Italic or
Underlined.
1. Click the chart text, or select the individual characters you want to format.
2. On the Formatting toolbar, click a button for the format you want.
Tip. To print an embedded chart without its associated worksheet data, click the embedded chart to select
it, and then follow the above instructions for chart sheets.
PRINTING A WORKSHEET.
√ Whenever you need a paper copy of the worksheet to present to other people.
√ If you maintain a paper filing system alongside the computer filing system.
PAGE SETUP.
You can control the appearance or layout of printed worksheets by changing options in the Page Setup
dialog box.
Purpose.
√ To define where one page ends and another page starts.
√ To print a large worksheet to fit on a single page.
√ To add descriptive information to be printed with your worksheet.
√ To define rows and columns you want to print on each page of the output.
√ To change the order in which various worksheets should print.
You can also tell Ms-Excel to automatically position your worksheet at the center of the page, both
horizontally (across) and vertically (downwards) by clicking the options under Center on Page.
Tip. To see how the margins will affect the printed document, click Print Preview before the document
is printed.
Print preview displays the printed page so you can adjust columns and margins. The way pages appear in
the preview window depends on the available fonts, the resolution of the printer, and the available colors.
A database is a collection of data stored in a computer system in some organised manner to make the
retrieval of the data easy.
Disadvantages
Unnecessary duplication of data.
Boredom and time wasting while searching for a record.
Misleading reports due to poor data entry.
Poor update of records.
Computerised database
This database use database management system software to manipulate data. Examples of DataBase
Management Software (DBMS) include: MS-Access, Oracle, Fox Pro, Dbase IV
Functions of a DBMS
Allow the user add or delete records.
Update or modify existing records.
Organise data for easy access, retrieval and manipulation.
Ensure security for data in the database.
Keeps statistic of data items in database.
Database Models
a) Flat files – this model of database holds only one set of data and is not any different from the manual
files e.g. the library catalogue.
b) Hierarchical model – in this model items are arranged in hierarchical (tree) form. To access level one
data items, you have to first access level one data items. A specific single path leads to each item at
lower levels.
c) Network model – in this model, lines are used to express the relationship between different data items,
forming a network of items. Access of one item can be through many paths and from any item.
d) Relational model – in this model, related data items are stored together in structures called relations or
tables. Relationship can be created between tables such that a record or records from one table relates to
another in another table.
e) Object oriented model – in this model, database is a complete program built to hold a collection of
objects, which have both properties and behaviour.
Components of a DBMS
a) Tables/file structure – this is database structure that is used to hold related records.
b) Queries – this is a tool used to search for or question a database on specific records.
c) Form/Screen input – this is a graphical interface that resembles the ordinary paper form used to collect
data. It enables the user to view and enter data into a table.
d) Report – database provides the user with a tool for generating reports from a table or query.
e) Modules – this tool is like the macro but it’s more precise in the sense that you have control over the
actions taken.
f) Macro – this tool enables the user to automate frequently performed procedures or tasks.
In a datasheet, each column represents a Field. One field holds one piece of data. E.g., in a Student
record, the possible fields are Name, Admission number, and Age. All the fields for one student
constitute a Record.
(a). Field Name:
This is the name that indicates each column (field).
It is the column title/ heading or a label for a field.
(b). Field Type:
It is the type of data stored in a field.
2. Record.
A group of logically related fields treated as a unit. It can be a collection of data about a person, a
place, an event, or some other item.
A set of all the fields for one row in a table.
Each record contains fields for storing your information. For example,
Name Age Origin Sex
John 23 Machakos Male
In a database table, each row represents a Record.
Ms-ACCESS Database
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.
Before using Ms-Access to build tables, queries, forms, and other objects, it is advisable that you first sketch
out and rework the design on a paper.
When determining the fields that are needed, ensure that the following design principles are observed:
Include all of the information you will need.
Store the information in the smallest logical parts. E.g., a name is usually split into 2 or 3 fields;
First Name, Middle Name & Last Name. This makes it easy to sort the data.
The Fields should not be similar to each other.
e.g., in a Suppliers table, you should not create fields such as Product1, Product2, & Product3,
because it will be difficult to find all suppliers who provide a particular product. This will also force
you to change the design of your database if a supplier provides more than 3 products.
In the Products table, you need only one field for Products.
e.g., if you have a HireDate field, its subject is an employee, and so it belongs in the Employees table.
You might have a table for Customers, a table for Products, and a table for Orders.
This requires the user to define each database element separately allowing him/her to create a self-defined
database.
Note. All Ms-Access databases are saved with an automatic extension of .mdb or accdb depending on the
version of MsOffice you are using.
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.
b) Field Type:
This specifies the type of data to be used/ stored in the field.
c) 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.
2. Memo.
A Memo field is used to store lengthy text & numbers that are more than 255 characters, such as notes or
descriptions. A Memo field can store up to 65,536 characters.
3. Number.
A Number field is used to store numeric data that would be included in mathematical calculations. Stores
1, 2, 4, or 8 characters.
Note. A Number field only stores Whole numbers (i.e., numbers without decimal values) from 0 to
255.
4. Currency.
A Currency field is used for currency values or to store any calculations that involve money or that
require a high degree of accuracy. This prevents rounding off during calculations. Stores 8 characters.
A Currency field is accurate to 15 digits to the left of the decimal point & 4 digits to the right.
5. Date/Time.
A Date or Time field is used to store dates and times depending on the formats chosen. It stores 8
characters.
6. Yes/No.
Used for data that can be only one of two possible values, such as Yes/No, True/False, On/Off. Stores
1 character.
7. AutoNumber.
AutoNumber is a field data type that automatically stores a unique number for each record as it is added
to a table.
It automatically numbers the records in the table. It is used for unique Sequential (incrementing by 1) or
Random numbers that are automatically inserted when a record is added.
It stores 4 characters.
8. OLE Object.
An OLE Object field allows one to bring data & files from another program into the current field.
Used for OLE objects (such as Ms -Word documents, Ms -Excel spreadsheets, Pictures, or Sounds) those
were created in other programs using the OLE (Object Linking and Embedding) protocol.
9. Hyperlink.
A Hyperlink field links the fields to another table within the same database or in a different database.
Note. A field's data type defines what kind of values you can enter in a field. E.g., if you want a field to
store numerical values or data that you can use in calculations, set the field’s data type to Number or
Currency. A field whose data type is Text can store data consisting of either text or number
characters.
How?
• Click in the Field Name column and type a unique name for the field.
• Click the arrow in the Data Type column, and select the data type you want.
• In the Description column, type a description of the information the field will contain. The
description is optional.
5. Define a primary key field before saving your table.
Primary key - One or more fields that can be used to identify each record in a table. A primary key is
used to refer to related records in other tables (it is used to relate a table to foreign keys in other tables).
Note. If you do not define a primary key, Ms-Access asks if you want Access to create one for you
when you save the table.
6. To save your table, click Save on the File menu or on the toolbar, then specify a name for the table.
7. Switch to Datasheet view, then start entering records.
FIELD PROPERTIES.
The table’s Design view is divided into two parts. The lower part is used to display and assign field
properties to selected fields.
b) 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.
c) 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.
d) 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.
e) 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.
Note. To test whether the Validation rule is applicable, choose Test Validation Rules on the Edit
menu.
f) 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.
g) 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.
h) 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.
j) Caption.
This is an alternative name used (other than the fieldname) in order to appear in the fieldname header
button in Table datasheet view and as a label in Forms. They provide a neat and descriptive name
since the fieldname should be kept small for practical use.
k) Indexed.
[Yes (Duplicates OK)] – Gives sorted, indexed field and can allow data duplicates.
[Yes (No duplicates)] – Gives sorted, indexed field but cannot allow data duplicates.
Note. It is not available for Memo or OLE object data types.
l) New Values.
Applies only to AutoNumber fields.
Ms-Access can increment the AutoNumber field by 1 for each new record, or fill in the field with a
randomly generated no., depending on the New Values property setting that you choose.
Note. To check the Field properties set for the records in a table, click Properties on the Edit menu.
Primary Key
Primary key is a field that uniquely identifies each record in a database table.
Examples of key fields include - Identification numbers, Registration numbers, User codes, etc.
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.
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.
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.
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 (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.
Copying a Table.
Copying can be used to reproduce tables and/or data within tables.
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.
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.
In Datasheet view, click in the field to be sorted.
@Ochieng’GK 2022 96 Computer Studies F2
Method 1: Click Sort on the Home ribbon, then click on the order to apply; Ascending or Descending.
To Unhide columns.
a) On the Records Tab of Home ribbon, select Advanced button, on the advanced drop down list box
select Unhide Column
A list of hidden columns appears.
b) Click to select the checkboxes of all columns that you want displayed.
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.
To Unfreeze columns.
1. Select the column to unfreeze.
2. On the Records Tab of Home ribbon, select More button, on the advanced drop down list box select
Unfreeze.
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.
Note. You can sort and filter at the same time or you can perform each independently.
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.
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.
Note. To remove a filter and get back the original table, click Remove Filter/Sort on the Records
tab of Home menu.
Relationship - An association established between common fields (columns) in two tables. 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.
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.
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.
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.
Delete a relationship.
1. Close any open tables.
2. Press F11 to switch to the Database window.
3. Click Relationships on the Tools menu or on the toolbar.
4. If the tables whose relationship you want to delete are not displayed, click Show Table on the toolbar
and double-click each table you want to add. Then click Close.
5. Click the relationship line for the relationship you want to delete (the line will turn bold when it is
selected), then press the DELETE key.
Exercise (a).
a) 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.
In Design view, you specify the data you want to work with by adding the tables or queries that contain
the data, and then by filling in the Design grid.
• You add fields to the design grid by dragging them to the field lists.
• What you will see in the query's results will be determined by the fields, sort order, and criteria you
add to the design grid.
In the Database window, click Queries under Objects, then click New on the Database window
toolbar.
In the New Query dialog box, click Design View, then click OK.
In the Show Table dialog box, click the tab that lists the tables or queries whose data you want to
work with.
Double-click the name of each object you want to add to the query, and then click Close.
Add fields to the Field row in the Design grid, and if you want, specify criteria and a sort order.
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.
b) PARAMETER QUERIES
A Parameter query is a query that when run displays its own dialog box prompting you for
information, such as criteria for retrieving records or a value you want to insert in a field.
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.
Notes.
• With delete queries, you always delete entire records, not just selected fields within records.
• 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.
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.
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.
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.
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.
d) CROSSTAB QUERIES.
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.
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.
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).
For example, in column headings containing the months of the year, you can display the months
chronologically rather than alphabetically. Or, you can limit the columns to just January through June.
1. Open the crosstab query in Design view.
2. Click the background of query Design view, outside the design grid and the field lists.
3. On the toolbar, click Properties to display the query's property sheet.
4. In the ColumnHeadings property box, enter the column headings you want to display, in the
order in which you want to display them. Between the column headings, type a comma.
5. To view the query's results, click View on the toolbar.
Note. When you open a select or crosstab query in Datasheet view, you are actually executing the query.
Notes.
A join line between field lists tells Microsoft Access how the data in one table is related to the data in the
other.
You drag a field from the field list to a column in the design grid to show the field in the query results.
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.
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.
In some cases, you can edit data in query Datasheet view to change the data in the underlying table. In other
cases, you cannot.
Set the number 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.
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.
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.
Print preview -A view of a document as it will appear when you print it.
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.
Introduction
Data & Information must be protected against unauthorized access, disclosure, modification or damage.
This is because; it is a scarce & valuable resou
rce for any business organization or government. It is mostly used in transactions, it can be shared, and has
high value attached to it.
Confidential data or information – this is data or information held by a government or organization about
people. This data/information may be seen by authorized persons without the knowledge of the owner.
However, it should not be used for commercial gain or any other unofficial purpose without the owner being
informed.
Review Questions
1. Differentiate between private and confidential data.
2. Why is information called a resource?
3. a) Explain the term ‘Information security’.
b) Recently, data and information security has become very important. Explain.
Sources of viruses.
a) Contact with contaminated systems:
If a diskette is used on a virus infected computer, it could become contaminated. If the same
diskette is used on another computer, then the virus will spread.
b) Use of pirated software:
Pirated software may be contaminated by a virus code or it may have been amended to perform
some destructive functions which may affect your computer.
c) Infected proprietary software:
A virus could be introduced when the software is being developed in laboratories, and then copied
onto diskettes containing the finished software product.
d) Fake games:
Some virus programs behave like games software. Since many people like playing games on
computers, the virus can spread very fast.
e) Freeware and Shareware:
Both freeware & shareware programs are commonly available in Bulletin board systems. Such
programs should first be used in controlled environment until it is clear that the program does not
contain either a virus or a destructive code.
f) Updates of software distributed via networks:
Viruses programs can be spread through software distributed via networks.
a). Eavesdropping:
This is tapping into communication channels to get information, e.g., Hackers mainly use
eavesdropping to obtain credit card numbers.
b). Surveillance (monitoring):
This is where a person may monitor all computer activities done by another person or people. The
information gathered may be used for different purposes, e.g., for spreading propaganda or sabotage.
c). Industrial espionage:
Industrial espionage involves spying on a competitor so as to get or steal information that can be
used to finish the competitor or for commercial gain. The main aim of espionage is to get ideas on
how to counter by developing similar approach or sabotage.
d). An employee who is not supposed to see some sensitive data gets it, either by mistake or design.
e). Strangers who may stray into the computer room when nobody is using the computers.
f). Forced entry into the computer room through weak access points.
g). Network access in case the computers are networked & connected to the external world.
4). Theft
The threat of theft of data & information, hardware & software is real. Some information is so valuable
such that business competitors or some governments can decide to pay somebody a fortune so as to steal
the information for them to use.
Review Questions
1. Explain any three threats to data and information.
2. Give two control measures one would take to avoid unauthorized access to data and information.
3. Explain the meaning of ‘industrial espionage’.
4. a) Define a computer virus.
b) Give and explain two types of computer viruses.
c) List three types of risks that computer viruses pose.
d) List and explain five sources of computer viruses.
e) Outline four symptoms of computer viruses.
f) Explain the measures one would take to protect computers from virus attacks
5. How can one control the threat of user’s errors to data and information?
COMPUTER CRIMES
A computer crime is a deliberate theft or criminal destruction of computerized data. The use of computer
hardware, software, or data for illegal activities, e.g., stealing, forgery, defrauding, etc. Committing of illegal
acts using a computer or against a computer system.
Trespass.
Trespass refers to the illegal physical entry to restricted places where computer hardware, software &
backed up data is kept. It can also refer to the act of accessing information illegally on a local or remote
computer over a network. Trespass is not allowed and should be discouraged.
Hacking.
Hacking is an attempt to invade the privacy of a system, either by tapping messages being transmitted along
a public telephone line, or through breaking security codes & passwords to gain unauthorized entry to the
system data and information files in a computer.
Such people are able to break through passwords or find weak access points in software. They are involved
in propagating computer viruses.
Tapping.
Tapping involves listening to a transmission line to gain a copy of the message being transmitted. Tapping
may take place through the following ways:
a) A person may send an intelligent program to a host computer that sends him/her information from the
computer.
b) Spying on a networked computer using special programs that are able to intercept messages being sent
& received by the unsuspecting computer.
Cracking.
Cracking is the use of guesswork by a person trying to look for a weakness in the security codes of a
software in order to get access to data & information. These weak access points can only be sealed using
sealed using special corrective programs called Patches, which are prepared by the manufacturing company.
A program patch is a software update that when incorporated in the current software makes it better.
NB: Cracking is usually done by people who have some idea of passwords or user names of the authorized
staff.
Piracy.
Software, information & data are protected by copyright laws. Piracy means making illegal copies of
copyrighted software, data, or information either for personal use or for re-sale.
Fraud.
Fraud is the use of computers to conceal information or cheat other people with the intention of gaining
money or information. Fraud may take the following forms:
a). Input manipulation: Data input clerks can manipulate input transactions, e.g., they can create dummy
(ghost) employees on the Salary file or a ghost supplier on the Purchases file.
b). Production & use of fake documents: E.g., a person created an intelligent program in the Tax
department that could credit his account with cents from all the tax payers. He ended up becoming very
rich before he was discovered.
Fraudsters can either be employees in the company or outsiders who are smart enough to defraud
unsuspecting people.
Sabotage.
Sabotage is the illegal or malicious destruction of the system, data or information by employees or other
people with grudges with the aim of crippling service delivery or causing great loss to an organization.
Sabotage is usually carried out by discontented employees or those sent by competitors to cause harm to the
organization.
The following are some acts of saboteurs which can result in great damage to the computer centres:
Using Magnets to mix up (mess up) codes on tapes.
Planting of bombs.
Cutting of communication lines.
Alteration.
Alteration is the illegal changing of stored data & information without permission with the aim of gaining
or misinforming the authorized users. Alteration is usually done by those people who wish to hide the truth.
It makes the data irrelevant and unreliable.
Review Questions
1. a) Define the term ‘Computer crime’.
b) State and explain various types of computer crimes.
2. Differentiate between Hacking and Cracking with reference to computer crimes.
3. What is a program patch? Why are patches important?
4. Give two reasons that may lead to computer fraud.
5. How can piracy be prevented in regard to data and information.
6. What is data alteration? Explain its effects on data.
7. Explain the meaning of Tapping while dealing with computer crimes.
Audit trails
This is a careful study of an information system by experts in order to establish (or, find out) all the
weaknesses in the system that could lead to security threats or act as weak access points for criminals.
An audit of the information system may seek to answer the following questions: -
1. Is the information system meeting all the design objectives as originally intended?
2. Have all the security measures been put in place to reduce the risk of computer crimes?
3. Are the computers secured in physically restricted areas?
4. Is there backup for data & information of the system that can ensure continuity of services even when
something serious happens to the current system?
5. What real risks face the system at present or in future?
Data encryption
Data being transmitted over a network faces the dangers of being tapped, listened to, or copied to
unauthorized destinations. To protect such data, it is mixed up into a form that only the sender & the
receiver can be able to understand by reconstructing the original message from the mix. This is called Data
encryption.
The flow diagram below shows how a message can be encrypted and decrypted to enhance security.
panther
Black
Black Cyphertext Black
panther kcalB panther
rehtnap
Plain text Plain text
Encryption key Decryption key
The message to be encrypted is called the Plain text document. After encryption using a particular order (or,
algorithm) called encryption key, it is sent as Cyphertext on the network. After the recipient receives the
message, he/she decrypts it using a reverse algorithm to the one used during encryption called decryption
key to get the original plain text document. This means that, without the decryption key, it is not possible to
reconstruct the original message.
Log files
These are special system files that keep a record (log) of events on the use of the computers and resources of
the information system. Each user is usually assigned a username & password or account. The information
system administrator can therefore easily track who accessed the system, when and what they did on the
system. This information can help monitor & track people who are likely to violate system security policies.
Firewalls
A Firewall is a device or software system that filters the data & information exchanged between different
networks by enforcing the access control policy of the host network.
A firewall monitors & controls access to or from protected networks. People (remote users) who do not
have permission cannot access the network, and those within cannot access sites outside the network
restricted by firewalls.
Review Questions
1. What do the following control measures against computer crimes involve?
(i) Audit trail.
(ii) Data encryption.
(iii) Log files.
(iv) Firewalls.
2. Give four rules that must be observed to keep within the law when working with data and information.
COMPUTER SECURITY
What is Computer security?
Safeguarding the computer & the related equipments from the risk of damage or fraud.
Protection of data & information against accidental or deliberate threats which might cause unauthorised
modification, disclosure, or destruction.
A computer system can only be claimed to be secure if precautions are taken to safeguard it against damage
or threats such as accidents, errors & omissions.
2). Water, floods & moisture. This causes rusting of the metallic components of the computer.
@Ochieng’GK 2022 116 Computer Studies F2
Security measures against water, floods & moisture:
Set up computer rooms on higher grounds to avoid floods & humidity.
Avoid installing computer components in the basement.
There should be adequate drainage system.
Use water-proof ceilings & floors.
3). Lightening, electricity & electrical storms. This causes power failure that can cause damage to data,
which has not been transferred to permanent storage devices.
Security measures:
Install facilities to control power fluctuations, e.g., use of Uninterrupted power source (UPS)
Use power stabilizers.
Have standby power generators/sources.
Have lightening arresters in the building.
4). Excessive Heat or Temperature. Excessive heat or temperature from the computer itself or from the
surrounding environment can destroy computer storage media or devices.
Security measures:
There should be efficient ventilation system.
Use a cooling system in the computer rooms, e.g., cooling fans & air conditioners.
5). Computer virus attack.: A virus is a rogue software program that spreads rampantly through computer
systems, destroying data or causing the system to break down.
Security measures against computer virus:
Make backup copies of software, and store the copies off-site.
Restrict access to programs & data on a ‘need-to-use’ basis.
Check all programs regularly for change of size, as this could be a sign of virus infiltration.
Be careful with ‘Shareware’ and ‘Freeware’ programs, as they are the major entry points for viruses.
Make sure all purchased software is in its original sealed-disk containers.
6). Smoke and Dust. Dust and Smoke particles settle on storage devices and may scratch them during
Read/write operation.
Security measures:
Have dust mats or carpets to prevent entry of dust.
Fit the computer room with special Curtains to reduce entry of dust particles.
Cover the devices with Dust covers when cleaning the room.
Remove shoes before entering the room to prevent dust.
Security measures:
Hiring of security guards to control physical access to the building housing the computer room.
Activities that can cause terrorism should be avoided, e.g., exploitation of workers.
Have double door & monitoring devices.
Use of policies.
System auditing / use of log files.
Use of passwords.
Punitive measures.
Encryption of data.
Use of firewalls.
Consult & co-operate with the Police and Fire authorities on potential risks.
9). Earthquakes.
Review Questions
1. a) What is Computer security?
b) Mention various threats to computer security.
2. Discuss the environmental problems affecting the operation of computers.
2. Computer viruses:
A computer virus destroys all the data files & programs in the computer memory by interfering with the
normal processes of the operating system.
Review Questions
1. Describe two ways of preventing data loss due to power outage.
2. a) What is a Computer virus?
b) What are Anti-viruses? Explain how they detect and remove viruses.
3. Accidental erasure:
Commands such as DELETE & FORMAT can be dangerous to the computer if used wrongly. Both
commands wipe out the information stored on the specified secondary storage media, e.g., formatting the
Hard disk (drive C:) will destroy all the software on that system.
A list of all deleted files will be displayed with the first letter missing. Type in the first letter and
the file will be recovered.
NB: If you delete a file accidentally, don’t copy any files or install any applications to the disk that
contains the deleted file. If you write anything to the disk, you might destroy parts of the deleted
file, making it unrecoverable.
c) Use of Backups.
All data must be backed up periodically either on diskettes, tapes or CDs so that in case of any
accidental loss, the backed up copy can be used to recover the data.
For small files, use the Copy command to make a copy of the data on a diskette. For larger amounts
of data, use the Backup command to copy the data to several diskettes or to a tape drive.
Review Questions
1. Name two commands that can erase the information from a disk.
2. Define ‘Data backup’ and state its importance.
4. Crashing of hard disks: When a hard disk crashes, the data or information on the disk cannot be
accessed. The effect is the same as formatting the hard disk. Crashing of a hard disk can occur due to
the following reasons:
i) Mishandling of the computer system, e.g.,
Moving the system unit while the computer is on.
Accumulation of dust.
Review Questions
1. List two possible causes of a hard disk crash.
5. Unauthorised access:
Unauthorised access refers to access to data & information without permission.
Computer criminals can do the following harms:
Steal large amounts of funds belonging to various companies by transferring them out of their
computer accounts illegally.
Steal or destroy data & information from companies, bringing their operations to a standstill.
Spread destruction from one computer to another using virus programs. This can cripple the entire
system of computer networks.
Spread computer worm programs. Worm programs are less harmful in the beginning, but render the
computer almost useless in the long-run.
b) Password protection.
Install a password to restrict access to the computer system. A Password is a secret code that can be
used to prevent unauthorised access of data in a computer.
Some computer security systems may generate an alarm if someone tries to use a fake password.
NB: You should never use passwords that can easily be linked to you, e.g., your name, birth date, or
names of people close to you.
Review Questions
1. State and discuss four causes of data loss in a computer system.
2. a) Discuss two methods used to restrict unauthorised access to computer systems.
b) What is a Password? Give its main importance.
It’s a large network of networks that covers the whole world and enables millions of computers from
different organisations and people to communicate globally.
The term Internet refers to global interconnection of computer networks for the purpose of communication
and resource sharing. Figure left shows how computes and computer networks are interconnected to form
the Internet.
Development of Internet
In 1969, a research body in USA (ARPA) Advance Research Project Agency set up a computer network that
connected for universities and was given the name ARPANET. ARAP’s goal was to allow multiple users to
send and receive information at the same time.
By 1973, e-mail was the most common service on the Internet. By 1981, many people had seen the
importance of computer networking and the Internet. ARAPnet formed the backbone on which many
organisations started connecting to, hence expanding it.
By 1987, the Internet boasted of 10,000 host computers. As the importance of Internet grew, businesses
spent billions of dollars to improve it in order to offer batter services to their clients. By 1994, 3 million
computers were connected to Internet. Today the Internet has grown and covered the whole world.
Internet Services
E-mail – this is the exchange of electronic letters, data and graphics on the Internet.
Electronic Learning (E-learning) – this is learning through interaction with special programs on the
computer.
Internet fax – Internet provides you with complete fax facilities from your computer.
Electronic Commerce (e-commerce) – it’s a commercial activity that takes place by digital processes
over a computer network, usually the Internet between and among entitles in the private sector,
government and members of public i.e. the buying and selling of goods and services over the Internet.
Instant messaging – this is a more enhanced messaging service that allows two or more people to
communicate directly. To get the services, you must first register with an instant messenger such as
Yahoo! Messenger.
Newsgroups – are organized groups of Internet users who wish to share ideas and interests. Once you
join a newsgroups, you can participate in discussion forums and debates.
World Wide Web (WWW) – in order to connect a network to the Internet, the local area network needs
an Internet server. This server is given the name world wide wed (www) and has all the information that
others on the Internet access. Individuals and organisations establish sites where their web documents
can be placed for easy access by external world. These sites are called websites and each has a special
address called Uniform Resource Locater (URL) that is used to access them
Accessing Internet: Applications that enable a user to access the Internet are called Web browsers e.g.
Netscape Navigator, Internet Explorer, Mozilla browser etc.
Login / Sign in: To access a website, type the full address of the website in the address bar then press
enter key. Some websites allow free access to all their pages by all visitors. However others require
people to be members hence a new visitor has to register (sign up). The registration process gives the
visitor a user name, password that can be used to sign in or log on the website for each visit.
Surf/Browse: Surfing /Browsing is the process of accessing Internet resources like web pages and
website.
Hyperlink: A hyperlink is a text or picture on an electronic document, especially web page that causes web
pages to open when the link is clicked.
Search Engine: It’s a program that searches documents for specified keywords and returns a list of the
documents where the keywords were found. The common search engine includes; Google, Yahoo, MSN etc.
Downloading: After searching and finding information on the net, you may want to save the information
locally on your computer. The process of transferring information from a remote computer to a local storage
is called downloading.
Electronic Mail: Electronic mail refers to the sending and receiving of electronic letters and documents on
the Internet. E-mail Software falls under communication software that are designed to help the user to read
and send individual text documents on the Internet so long as the sender and receiver have an e-mail
address.
Email facilities
Mails
Checking Mail – in order to check mail the user has to open the e-mail account by providing the
correct user name and password. In e-mail account, click the Inbox command to view a link list of
all received mails.
Compose a mail – composing implies writing. To compose a message, click the compose command.
Send mail – to send mail, type the correct e-mail address of the recipient in to; text box, type four
letter then click send command.
Forward mail – a received mail can be forwarded to another recipient. After reading click the
Forward command and then provide the address of the recipient.
Using Yahoo
The use Yahoo mail, you first sign up for an e-mail account. Yahoo assigns each user a unique user name
referred to as an ID and a password.
Sometimes a two letter extension is added after the domain name to show the country where the site is
located.
e.g. [email protected]
the domain .jp stands for Japan. Other domain names include .ke (Kenya), .uk (United Kingdom), .ug
(Uganda), .tz (Tanzania), .au (Australia) etc.
@Ochieng’GK 2022 125 Computer Studies F2
Attachments:
E-mail software enables a person to attach other files like pictures, music, movies Clips etc. To an e-mail
for sharing with others before sending. The source of attached files can be from the hard disk or other
storage devices.
Online Meeting:
It’s possible to hold on-line meeting with people by sending mails to them e.g. On-line interviews may
involve a person sending electronic mail composed of interview questions to a recipient who can read and
answer back.
Telephone Messages
Wireless Access Protocol (WAP) makes it possible to send e-mail to a mobile handset and a mobile
message to e-mail account.
Contact Management
Most mails programs allow the user to develop an address book which holds contact information like e-
mail address of different people.