21.08.2013 Views

Getting Started with OpenOffice.org 3.3 - OpenOffice.org wiki

Getting Started with OpenOffice.org 3.3 - OpenOffice.org wiki

Getting Started with OpenOffice.org 3.3 - OpenOffice.org wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 181: Fields in Vacations table<br />

Creating tables for the list box<br />

When the same information can be used in several fields, design a table for each type<br />

of information. Each table will contain two fields: the information field and ID, in that<br />

order.<br />

Caution<br />

You must create these tables <strong>with</strong> the information field listed first and<br />

the ID field listed last. Failure to do so will produce the wrong results.<br />

For my Payment table, I use Name and ID as my fields, <strong>with</strong> Dan, Kevin,<br />

and Cash being the Name entries. The corresponding ID entries are 0, 1,<br />

2. When the Name field is listed first in the table, one of the three names<br />

will appear in the payment field of the Fuel table. If the ID field is listed<br />

first, 0, 1, or 2 appear in the payment field instead.<br />

1) Follow the directions in “Creating tables in Design View” on page 209. In the<br />

table, the two fields can be Type and PaymentID. In the Field Properties, set<br />

AutoValue to Yes for the PaymentID field. Set the PaymentID field as the<br />

primary key. (See Figure 182.)<br />

2) Save the table using the name Payment Type.<br />

Note<br />

Figure 182: Table in Design View<br />

If you have several tables to create <strong>with</strong> the same fields, design one table<br />

and produce the other tables by cutting and pasting. (See “Creating a table<br />

by copying an existing table” on page 208.)<br />

212 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>OpenOffice</strong>.<strong>org</strong> <strong>3.3</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!