21.08.2013 Views

Getting Started with LibreOffice 3.3 - The Document Foundation Wiki

Getting Started with LibreOffice 3.3 - The Document Foundation Wiki

Getting Started with LibreOffice 3.3 - The Document Foundation 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.

c) Change the Field Properties in the bottom section.<br />

Change AutoValue from No to Yes.<br />

d) Set FuelID as the Primary key.<br />

Right-click on the green triangle to the left of FuelID (Figure 178) and choose Primary<br />

Key from the menu. This places a key icon in front of FuelID.<br />

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

Note<br />

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

can be used for this field. We have used FuelID for convenience, so we know to<br />

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 select it.)<br />

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

(Figure 179).<br />

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

measure fuel to thousands of a gallon in the USA where I 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 Format<br />

example button (Figure 179). This opens the Field Format window (Figure 180).<br />

Use Currency as the Category and your currency as the Format. My currency<br />

has two decimal places. Use what is appropriate for yours.<br />

Chapter 8 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> Base 199

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

Saved successfully!

Ooh no, something went wrong!