When you’ve
gotten a more
attractive form design, return to Form View (using the View/Form
menu item).

Now we can start
entering data.
Remember-- set rules for how to enter your data... for instance:
Title:
write
initial
words like “the” or
“a” at the end: Greatest
Hits, The
Artist:
for
person’s
names, last name first: Twain,
Shania
for
groups,
group name, ‘the’
last: Beatles, The
Format: cassette,
CD, LP,
45, 8-track, other
Genre: pop,
rock,
metal,
jazz, alternative, folk, classical, opera, etc
Year: 4-
digit
year
1995,not 95 or ‘95
Rating:
a number from
1 to 5, where 5 is best
To enter data, notice
that the
first field is highlighted... type your first title. You could move to
the next field by clicking with the mouse... but instead, press the tab
key. Notice that pressingtabmoves you from field to
field.
Holding down the shift key when you press tab
moves
you backwards through the fields.
Notice the controls on
the
bottom-left of the window:

These tell you what
record you’re
currently working on, and let you move back and forth through the
records of your database:
|<
moves
you
to the very first record
<
moves
you
back one record
>
moves
you
forward one record
>|
moves
you
to the last record
As well, when you enter
data in
the last field on the page, and press tab, you get
an empty form
for the next record, ready to enter data. (Remember, shift +
tab
will back you up to the previous record).
Enter data for five
records... if
you discover that you’ve made a mistake in how your fields or
the data
are appearing, you’ll need to go back to Form Design
view to make
changes... for instance, if your dates are appearing as1995.00,
you forgot to set the number of decimal points at
‘0’. Go to Form
Design view, and click on the data-part of that field...
choose Format/Field
from the menus, and re-set the number of decimals to 0.
Form view is perhaps the
clearest
way to enter data... but it’s less useful if you want to see
all the
data, and perhaps draw conclusions from it. Switch back to List
view (using the View/Listmenu item).

In list view, you can
sort your
information in various ways... alphabetically by title, or by Artist,
or
by year, or whatever... with larger databases, it makes sense to sort
by
multiple criteria-- perhaps by Year, then by Artist, then by Title.
Use the Record/Sort
Records
menu command to see:

Notice that you can
choose up to
three fields to sort, choosing them from drop-down lists (so you
don’t
have to remember how to spell the field-names correctly!), and set each
ascending or descending-- so you could sort with the earliest year
first
(ascending) or the more recent first
(descending).
Often, simple sorting
will give
you valuable information.
For more detailed
information, we
might want to ask the database a question. Older versions of Works call
this a Query. Works 4 calls it a Filter. (In
the Tools
menu).
Typically, you should
first sort
the records, then apply a filter (or query)... that way, the filter
results will be sorted as desired. Check the following:

See how it would only
show records
that were Rap from the 1990s on CD (if any)... the results would show
up
in List view.
Sorts and Filters can be
used to
get all sorts of answers from a database... and that’s the
whole point--
storing data is only valuable if you can convert it into information--
data that answers a question, giving it meaning.
Another use for
databases is in
producing reports-- in this case, a report is a
printout of some
of your information. You may want to sort and filter your data before
producing a report... the report would, in that case, show the results
of those actions.
To produce a report,
click on Tools/Report
Creator. (Earlier versions of Works made you do all this
manually,
using Tools/Report). Give your report a meaningful
title-- you
can save up to 8 reports with your database, and remembering which is Report
6 is difficult!
The first window of the
Report
Creator looks like:

and simply checks the
title, font,
and how you want it to print-- vertically or horizontally. Next
takes you to theFieldspage:

This lets you choose
which fields
you want to appear in a report... so a filter is a sub-set of the
records, a report gives a subset of the fields.
The next pages let you
sort and
filter your records (if you haven’t already done so). The
final page
lets you include some basic statistics about the data:

When Done,
you’ll see something
like this:

Preview
gives you a Print
Preview screen, showing how the report will look when printed... Modify
gives you the above-page, without the dialogue box (which is also what
you get when you leave Print Preview).
In this mode, you can
make the
columns wider or narrower (drag the tabs on the top), change the
title’s
font and size, etc... preview the results before printing.
Other uses of databases
involve
merging their information with your word processor, for creating form
letters, report cards, labels, etc.
Here, we want to first
create a
database with the desired information... with that file open,
we’ll
merge it with the word processor.
Let’s use the
Music collection
information you previously created.
We’re first
going to merge the
information into a set of bogus-personalized fan letters... so start a
new word processor document.
Type the contents of a
typical
gushy fan letter... we want to tell Madonna (etc) how much we loved her
CD Like a Virgin, and how it was our favorite CD of
the year
1988 (or whatever)... and automatically do the same for each
other
artist in the database.
Type your letter... but
where you
come to items like the artist’s name, the CD name, the date
(etc), don’t
type anything. Instead, from the Insert menu,
choose Database
Field. You’ll see:

Click the Use
a Different
Database button to be able to select your database... when
you do
that, you’ll get a list of the fields in that database:

Select a field, and
click the Insert
button, followed by the Close button... in your
text, you should
see something like:
Dear
<<Artist>>
Type punctuation after
the
brackets, and continue, inserting the appropriate database fields where
needed.
When finished, Print
Preview.
You’ll be asked if you want to preview all database records--
say ‘Yes’.
Notice that you get your letter, with the database information
inserted... clicking Nextshows you the next fan
letter.
If you only wanted form
letters to
some of the artists, filter the database first.
(In real life, you might
want to
print... not now, please!)
--Note: In Works 4 only,
there’s a Tools/Form
Lettermenu item, that helps walk you through the process.
Similarly, let’s take a look at the Tools/Labels
menu item... it
asks you to choose between multiple copies of a single label, or labels...
implying
printing
a sheet where each label uses a different database
record. Pick labels.
You get instructions,
followed by
a page allowing you to pick from standard label sizes or enter a custom
size... next, you’re prompted to select a database, The Recipients
page lets you choose what you want to use from your database (again,
you
may want to sort and filter the database first).

The Label
Layout page lets
you select the fields to use and the layout on the label, and shows you
a sample label... If you type text in the sample, it appears on every
label-- for instance, a comma, in between City and Province fields in
an
address.
It’s a good
idea to Preview and
Test before printing... use standard paper rather than label paper for
your tests... maybe even do a test of one page of your label set, and
line it up with your label paper to see if it seems to fit.
And remember to only use
label
paper that’s clearly marked as being appropriate for your
type of
printer-- laser or inkjet, for instance... having labels come loose and
stick inside your printer can be a real mess!