Monday, September 28, 2009
Five Methods to Create a Table
What is Microsoft Access?
What is Microsoft Access?
-is a relational database program that provides you the:
• Limitless storage amount of information
• Organized information in a manner that it makes sense on how you work
• Create forms for easier ways to enter information
• Produce meaningful and insightful reports that can combine data with other applications.
Table Datasheet View
Table Datasheet View is like using Microsoft Excel wherein data is entered in row and column format. Each row represents a single record of data. When you create a new table, a blank Table Datasheet view window appears. Table Datasheet View provides a spreadsheet with 20 columns and 30 rows. Each column has a column header or also known as column selector at the top of the column. The column header displays the name of the field that the column represents. The Default field names are Field1, Field2, and so on. Field names should describe the property that will be stored in the field (Last Name, Address, Phone, and so on.)
Sunday, September 27, 2009
How to Create a Table
How to Create a Table
You need to create tables after creating a database file. There are several ways to create a new table: in Design View, Datasheet View, using Table Wizard, or importing data from another program, like Microsoft Excel; follow these steps:
• Specify the field for the table
• Determine the data type for each field
• Determine the field size (for text and number field only)
• Assign the Primary Key
• Save and name the table
The Field Properties
The Field Properties
After creating field name and data type, you can add description for each field in your table. This is optional, but it helps your table for easy understanding. It provides formatting options you can set. The options changes depend on their respective field type.
• Field Size it limits the text fields to a specific number of characters; Number fields to a specific range of values.
• Format it assigns a specific display format to Text and Date/Time fields such as:
02/24/91 or Friday, February 24, 1991
• Decimal Places it sets the number of decimal places displayed in Number and Currency like 5.75
• Input Mask specifies formatting characters like dashes in phone-number field
• Caption it supplies a label to be used in forms and reports instead of the field name.
• Validation Rule specifies a rule that will validate entries I a field
• Validation Text displays the message in relation to the validation of rule.
Terms to Remember:
Terms to Remember:
• Datasheet View creates the table structure based on the data entered.
• Design View creates a table in design mode, where fields are added and all Properties are specified.
• Table Wizard guides you through creating a table based on built –in templates.
• Link Table Wizard adds a link to a table in another database on your computer (or across the world).
Data Types
Data Types
♦ Text • A text field contains up to 255 characters. It is use to store alphanumeric characters for entering text numbers, symbols and letters.
♦Memo
• A memo field contains up to 64,000 characters. It is use to store long text fields.
♦Number
• It performs mathematical calculations, numeric data in the form of integer, and is used for entering numbers. + and – sign, or decimal point
♦Date/Time
• It is used to store dated and times; this field is from 100 to 2000 years
♦Currency
• The numbers are formatted for an amount of money, Never use a Number data types for monetary values because it prevents rounding off numbers during calculations.
♦AutoNumber• A special numeric data type that can be used for primary key fields. Access automatically inserts the next number either in the sequence or in a random number when a data record is created.
♦Yes/No
• It contains one of two values: True/False, Yes/No, On/Off format. This format is used depending on what is needed to represent a particular field
♦OLE Object
• Links to another Database or file used to create object like MS Excel or Word document that can be OLE objects. The data in the field can either linked to or embedded in the Access table.
♦Hyperlink
• Access links the user to store addresses to Web documents, network files, and local files.
♦Look Up Wizard
• Enables you to create a list , to select a value from another table or predefined list of values.