OpenOffice.org OpenOffice - 3.0 Quick Start Guide Page 248

  • Download
  • Add to my manuals
  • Print
  • Page
    / 433
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 247
Creating tables in Design View
Design View is a more advanced method for creating a new table. It
allows you to directly enter information about each field in the table.
We will use this method for the tables of our database.
Note
While the
Field type
and
formatting
are different in
Design View
,
the concepts are the same as in the Wizard
.
The first table to be created is
Fuel
. Its fields are
FuelID, Date,
FuelCost, FuelQuantity,
Odometer
, and
PaymentType
.
FuelCost
uses
currency and two decimal places.
FuelQuantity
and
Odometer
use the
number format with 3 decimal places and 1 decimal place respectively.
PaymentType
uses the text format.
1) Click
Create Table in Design View.
2)
FuelID
entries:
d) Enter
FuelID
as the first
Field Name
.
e) Select
Integer [INTEGER]
as the
Field Type
from the
dropdown list. (The default setting is Text [VARCHAR].)
Tip
Shortcut for selecting from the Field Type dropdown list: use the
key for the first letter of the choice. This might require using the
letter more than once to get the choice you want. You can cycle
through the choices for a given letter by repeatedly using that
letter.
After typing the name of the field in the Fields column, use the
Tab
key to move to the Field Type column. This will enter the
field name and highlight the dropdown list. You can then use the
key for the first letter of your choice to select the field type. Just
remember to use it the correct number of times if necessary.
f) Change the
Field Properties
in the bottom section.
Change
AutoValue
from
No
to
Yes
(Figure 179)
.
Figure 179: Field Properties section (AutoValue)
g) Set
FuelID
as the
Primary key
.
Right-click on the green triangle to the left of
FuelID
(Figure 180).
248 Getting Started with OpenOffice.org 3
Page view 247
1 2 ... 243 244 245 246 247 248 249 250 251 252 253 ... 432 433

Comments to this Manuals

No comments