Beruflich Dokumente
Kultur Dokumente
Microsoft Access has a wizard named the Table Wizard that will create a table for you. This wizard gives you suggestions about what type of table you can create (for example, a Mailing List table, a Students table, a Tasks table, and so on) and gives you many different possible names for fields within these tables. To use the Table Wizard to create a table, follow these steps: 1. Create a new, blank database. In the Database window, click Tables under Objects, and then click New. In the New Table dialog box, double-click Table Wizard. Follow the directions in the Table Wizard pages.
2. 3.
4.
If you want to modify the table that the Table Wizard creates, open the table in Design view when you have finished using the Table Wizard.
2. 3. 4.
5.
6. 7.
b.
c.
On the Edit menu, click Primary Key. If you want the order of the fields in a multiple-field primary key to be different from the order of those fields in the table, click Indexes on the toolbar to display the Indexes window, and then reorder the field names for the index named PrimaryKey.
As mentioned earlier, Microsoft Access will assign data types to each field (column) based on the kind of data that you entered. If you want to customize a field's definition further--for example, to change a data type that Access automatically assigned, or to define a validation rule--open the table in Design view.
2. 3. 4.
a. b. c. d.
Click in the Field Name column, and then type a unique name for the field. In the Data Type column, accept the default data type of Text that Access assigns or click in the Data Type column, click the arrow, and then select the data type that you want. In the Description column, type a description of the information that this field will contain. This description is displayed on the status bar when you are adding data to the field, and it is included in the Object Definition of the table. The description is optional. Once you have added some fields, you may need to insert a field between two other fields. To do so, click in the row below where you want to add the new field, and then on the Insert menu, click Rows. This creates a blank row in which you can add a new field.
2.
To add a field to the end of the table, click in the first blank row. After you have added all the fields, define a primary key field before saving your table. A primary key is one or more fields whose value or values uniquely identify each record in a table. To define a primary key, follow these steps: Select the field or fields that you want to define as the primary key. To select one field, click the row selector for the desired field. To select multiple fields, hold down the CTRL key, and then click the row selector for each field. b. On the Edit menu, click Primary Key.
a.
2.
If you want the order of the fields in a multiple-field primary key to be different from the order of those fields in the table, click Indexes on the toolbar to display the Indexes dialog box, and then reorder the field names for the index named PrimaryKey. You do not have to define a primary key, but it is usually a good idea. If you do not define a primary key, Microsoft Access asks if you want Access to create one for you when you save the table. When you are ready to save your table, on the File menu, click Save, and then type a unique name for the table.
3.