Assignment On PC Access Table
Assignment On PC Access Table
Field Properties
z
DRISHTI SHARMA
To create a new table in Design view, we define the fields that will comprise the table before
we enter any data.
We can edit, insert, and delete fields in our database tables in Design view.
We can also change field order by dragging a row selector to a new position.
Create or Modify a Table in Design View
z
Step 1-Click the Create tab, and then click the Table Design button, or select the table we want to modify
in the Navigation pane, and then click the Design View button.
Step 2-Click in a Field Name cell, and then type a modified field name.
Step 3-Click in a Data Type cell, click the Data Type list arrow, and then choose a data type.
Step 4-Click in a Description cell, and then type a description. If the Property Update Options button
appears, select an option, if necessary.
Step 5-To insert a field, click the row selector below where we want the field, and then click the Insert
Rows button on the Ribbon.
Step 6-To delete a field, click the row selector for the field we want to delete, and then click
the Delete Rows button on the Ribbon.
Step 7-Click the Save button on the Quick Access Toolbar, and then if necessary, enter a table name
and click OK.
Step 8-When it is done, click the Close button in the Table window.
Modifying a Table in Design View
Data Types
Some of the data types are given below:
Field properties
A field property applies to a particular field in a table and defines one of the field's characteristics or
an aspect of the field's behavior. We can set some field properties in Datasheet view. We can also
set any field property in Design view by using the Field Properties pane.
Some of the field properties are as follows,
Field Size: In the Field Size box for Text fields, we can enter the maximum number
of characters that can be entered in the field.
Input Mask: For Text and Date field types, this feature provides a template with
punctuation marks to make entering the data easier.
Format: Click the drop-down list and choose the format in which text,
numbers, and dates and times are displayed.
Decimal Places: For a field that holds numbers, open the Decimal Places drop-
down list and choose how many numbers can appear to the right of the
decimal point.
Default Value: When we know that the majority of records require a certain
value, number, or abbreviation, we can enter it in the Default Value text
box.
Validation Rule, Validation Text, Required etc. are some of the field properties.
Using field properties to ensure data integrity
The data integrity can be ensured by setting field properties such as Field Size, Format,
and Required.
o Field Size : Field Size can be set to hold a specific number of characters, up to as many as 255
for text fields. If we were using a text field to hold the two-letter state postal abbreviation, the
field size could be set to 2 to ensure that no one enters a full state name into this field.
o Format : The Format field property can be set to display text or numbers in a standardized way.
For example, text can be set to show as all uppercase, and numbers can be set to show scientific
numbers, percentages, or decimals.