Creating a Table in Design View

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 08:41, 19 November 2007 (edit)
Valterb (Talk | contribs)
(botlangbar -> IT)
← Previous diff
Revision as of 08:45, 19 November 2007 (edit) (undo)
Valterb (Talk | contribs)
m (correct botlangbar)
Next diff →
Line 23: Line 23:
:an article by Solveig Haugland. :an article by Solveig Haugland.
-{{botlangbarEN|[[Fr:Créer une Table en Mode Ébauche|Français]] [[It:Creare_una_Tabella_in_Vista_Struttura|Italiano}}+{{botlangbarEN|[[Fr:Créer une Table en Mode Ébauche|Français]] [[It:Creare_una_Tabella_in_Vista_Struttura|Italiano]]}}
[[Category:Tips and Hints]][[Category:NeoOffice]] [[Category:Tips and Hints]][[Category:NeoOffice]]

Revision as of 08:45, 19 November 2007

This article is part of the To Base and Back Again tutorial series.

While we had an existing set of data for the bird list, the remainder of our tables are not built on existing spreadsheets. So we will design the other tables by hand. If one is creating a database with more "conventional' fields (name, address, phone number, account number, etc.) using the wizard can simplify the process. But since the wizard is not designed with fields related to birding, it is easier to create the needed tables in design view.

  1. Open your database document.
  2. Click on the Tables icon in the left column (labled Database).
  3. Click on Create Table in Design View... icon in the Tasks section
  4. For each field:
    1. type a field name
    2. once a field name is chosen, Neo enters Text[VARCHAR] as the field type; if this is not the correct field type, click on this field type (in the same row as the field name); a drop-down menu appears; choose the correct field type
    3. Make the necessary adjustments in the Field Properties section below the fields list.
      1. be sure that you have provided sufficient length for your fields; this cannot be changed later.
      2. You can specify that the field must have an entry (necessary for primary key fields).
      3. You can specify a Default Value for those cases when a field will usually (but not always) have a specific value. For example, the you could enter your own state abbreviation in the State field of the Locations table.
      4. For those tables where the primary key will be an ID field, the field type should be Integer, and AutoValue should be set to Yes
  5. Select the row with the field that is to be the primary key. A green triangle will appear in the left hand column.
  6. Control-click or right-click on the green triangle and choose Primary Key from the contextual menu. A key icon appears in the far left column. Remember that each record of your database must have a unique entry in the primary key field.
  7. Click on the disk drive icon on the toolbar at the top of the window; this saves your changes.
  8. Close the window and return to the main database document window

External Links

Using the Wizard to Create a Table

an article by Solveig Haugland.

This article in other languages: Français Italiano
Personal tools