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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 178: Defining the primary key field<br />

Note<br />

The primary key serves only one purpose: to uniquely identify the record.<br />

Any name can be used for this field. We have used FuelID for<br />

convenience, so we know to which table it belongs.<br />

3) All other fields (Date, FuelCost, FuelQuantity, Odometer, and PaymentType):<br />

• Type the next field name in the Field Name column.<br />

• Select the Field Type for each field.<br />

– For Date use Date[DATE]. (Press the D key to select it.)<br />

– PaymentType uses Text [VARCHAR], the default setting.<br />

– All other fields use Number [NUMERIC]. (Press the N key once to<br />

select it.)<br />

• FuelCost, FuelQuantity, and Odometer need changes in the Field<br />

Properties section (Figure 179).<br />

– FuelQuantity: Change Length to 6 and Decimal places to 3. (Many<br />

fuel pumps measure fuel to thousands of a gallon in the USA where I<br />

live.)<br />

– Odometer: Change the Length to 10 and the Decimal places to 1.<br />

– FuelCost: Change the Length to 5 and Decimal places to 2. Click the<br />

Format example button. This opens the Field Format window<br />

(Figure 180). Use Currency as the Category and your currency as the<br />

Format. My currency has two decimal places. Use what is appropriate<br />

for yours.<br />

210 <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!