You are on page 1of 6

CREATING A NEW DATABASE THROUGH TABLE WIZARD

INTRODUCTION

The Table wizard creates tables based on typical table structures. It provides table
templates, optional style settings, support for both Character and Memo binary data types,
and access to databases and lets you select a table that fits your needs from the list of sample
tables. You can customize the table's structure and fields as you step through the wizard, add
your table to a database, and use database settings to determine the formats of fields you add
to your table. You also can establish relationships between tables in the database. If you have
one or more databases open, the Table wizard automatically adds the new table to the current
database. If you add your table to a database, the Table wizard provides automatic formatting
of selected fields. If no databases are open, the wizard creates a free table.

TO ACCESS THE TABLE WIZARD

From the Tools menu, choose Wizards, and click Table. -or-

From the File menu, choose New, choose the Table option, and click the Wizard
button.

To create a table with the Table wizard

In the Project Manager, select the Data tab and select Free Tables.

Choose New.

Choose the Table Wizard button.

Follow the instructions on the wizard screens.

If you base your table on a database, you can use styles, field mappings, or a
primary key, and establish or use relationships in the database tables.

STEP 1 SELECT FIELDS

1
In this step, you can choose one of the sample tables and select from the available
fields to create your table.

To select fields for your table

Use the Sample Tables list box to locate and select the table you want to use.

In the Available fields list box, select one or more fields you want to use from the
selected table, and use the arrow buttons to move them to the Selected fields box.

You can categorize your selection as Business or Personal, and you can select
fields from more than one table. If you want to add one of your own tables to the
Sample tables box, choose Add.

Step 1a - Select a Database

In this step you can choose to add your table to a database. Adding the table to a
database gives you enhanced functionality, but your table can be completely functional
without being part of a database. If you create your table in a database, the Table wizard will
provide automatic and custom formatting options in the next step. You can also specify a
friendly or descriptive name for the new table. If you create a stand-alone table, you won't be
able to change field captions.

STEP 2 - MODIFY FIELD SETTINGS

In this step you can change any default field settings. For example, you can change
the maximum width of a character field, or the number of decimal places allowed in a
numeric field. You can specify whether fields can contain null values and you can change the
field caption or type. If you are creating your table in a database, you can also select one of
the predefined data input masks for each field type or create a custom input mask. The
Format windows display the mask and format code you choose.

STEP 3 - INDEX THE TABLE

In this step you can specify a field that will be the primary index key for your table.
You can also designate other fields as secondary index keys.

2
STEP 4 - SET UP RELATIONSHIPS

In this step, if you are creating your table within a database, you can establish
relationships between fields in your new table and existing tables in the database.

Highlight the field for which you want to establish a relationship, and then click the
Relationships button.

To define a relationship

Click the radio button that identifies the type of relationship you want to establish.

Select the field that relates the tables within the database. If you select
<newfield>, type in the field name.

Click OK.

The Relationships dialog box will close and return you to Step 3, where the list
displays the new relationship.

STEP 5 - FINISH

In this step you can specify how your table is saved and used.

Save table for later use

Saves the table to disk for later use when you click Finish.

Save table and browse it

Saves the table to disk and opens it so you can immediately add records by
choosing Append New Record from the Table menu after you click Finish.

Save table and modify it in the Table Designer

Saves the table to disk and then opens it in the Table Designer so you can
immediately modify it after you click Finish.

3
CREATE A BLANK DATABASE

1. On the File tab, click New, and then click Blank Database.

2. In the right pane, under Blank Database, type a file name in the File Name box.
To change the location of the file from the default, click Browse for a location to

put your database (next to the File Name box), browse to the new location,
and then click OK.

3. Click Create.

Access creates the database with an empty table named Table1, and then opens
Table1 in Datasheet view. The cursor is placed in the first empty cell in the Click
to Add column.

4. Begin typing to add data, or you can paste data from another source.

Entering data in Datasheet view is designed to be very similar to working in an Excel


worksheet. The table structure is created while you enter data. When you add a new column
to the datasheet, a new field is defined in the table. Access automatically sets each field's data
type, based on the data that you enter. If you do not want to enter data in Table1 at this time,

click Close . If you made any changes to the table, Access prompts you to save the
changes. Click Yes to save your changes, click No to discard them, or click Cancel to leave
the table open.

ADD A TABLE USING REPEAT

You can add new tables to an existing database by using the commands in the Tables
group on the Create tab.

4
Create a table, starting in Datasheet view In Datasheet view, you can enter data
immediately and let Access build the table structure behind the scenes. Field names are
assigned numerically (Field1, Field2, and so on), and Access automatically sets each field's
data type, based on the data you enter.

1. On the Create tab, in the Tables group, click Table. Access creates the table
and selects the first empty cell in the Click to Add column.

2. On the Fields tab, in the Add & Delete group, click the type of field that you

want to add. If you don't see the type that you want, click More Fields .

3. Access displays a list of commonly used field types. Click the field type that you
want, and Access adds the new field to the datasheet at the insertion point.

4. You can move the field by dragging it. When you drag a field in a datasheet, a
vertical insertion bar appears where the field will be placed.

5. To add data, begin typing in the first empty cell, or paste data from another source.

6. To rename a column (field), double-click the column heading, and then type the
new name. You should give a meaningful name to each field, so that you can tell
what it contains when you see it in the Field List pane.

7. To move a column, click its heading to select the column, and then drag the
column to the location that you want. You can also select multiple contiguous
columns and then drag them to a new location all at once. To select multiple
contiguous columns, click the column header of the first column, and then, while
holding down SHIFT, click the column header of the last column.

CONCLUSION

When you create a database, you store your data in tablessubject-based lists that
contain rows and columns. For instance, you can create a Contacts table to store a list of
names, addresses, and telephone numbers, or a Products table to store information about
products. This article explains how to create a table, how to add fields to a table, and how to
set a table's primary key. It also explains how to set field and table properties. Because other

5
database objects depend so heavily on tables, you should always start your design of a
database by creating all of its tables and then creating any other objects. Before you create
tables, carefully consider your requirements and determine all the tables that you need. For an
introduction to planning and designing a database, see the article Database design basics.

REFERENCES

https://support.office.com/en-ie/article/Create-an-Access-database-9458c8ab-
e8e4-40ad-bb03-7b5ebda9dd26
https://support.office.com/en-us/article/Create-a-table-8fdc65f9-8d40-4ff5-9212-
80e6545e8d87
https://msdn.microsoft.com/en-us/library/aa979449%28v=vs.71%29.aspx

You might also like