If the database that is required is similar to a template then whole database can be generated by using a template that already exists.



Similar documents
Databases with Microsoft Access. Using Access to create Databases Jan-Feb 2003

MS Access Lab 2. Topic: Tables

MS Access: Advanced Tables and Queries. Lesson Notes Author: Pamela Schmidt

Field Name Data Type Description Field Size Format

Table and field properties Tables and fields also have properties that you can set to control their characteristics or behavior.

Using Microsoft Access Databases

MS ACCESS DATABASE DATA TYPES

Creating a Database in Access

Microsoft Access Basics

Chapter 5. Microsoft Access

Microsoft. Access HOW TO GET STARTED WITH

Introduction to Microsoft Access 2010

Databases and Microsoft Access II

Introduction to Microsoft Access 2013

Microsoft Access 2010

Field Properties Quick Reference

Microsoft Access 2003 Module 1

PROJECT ON MICROSOFT ACCESS (HOME TAB AND EXTERNAL DATA TAB) SUBMITTED BY: SUBMITTED TO: NAME: ROLL NO: REGN NO: BATCH:

Access Part 2 - Design

Customized Reports using Microsoft Access 2010

Microsoft Access 2007 Module 1

Microsoft Using an Existing Database Amarillo College Revision Date: July 30, 2008

IN THIS PROJECT, YOU LEARN HOW TO

Use Find & Replace Commands under Home tab to search and replace data.

How To Understand The Basic Concepts Of A Database And Data Science

NATIONAL INSTITUTE OF HOTEL MANAGEMENT, KOLKATA

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Setting up a basic database in Access 2007

Microsoft Access 2010 Part 1: Introduction to Access

What is a database? The parts of an Access database

Lab Manual. Databases. Microsoft Access. Peeking into Computer Science Access Lab manual

Creating a Database using Access 2007

MICROSOFT ACCESS 2007 BOOK 2

How to set up a database in Microsoft Access

ECDL. European Computer Driving Licence. Database Software BCS ITQ Level 1. Syllabus Version 1.0

Microsoft Office 2010

Microsoft Access 2007 Introduction

Microsoft Access XP Session 1 Week 8

Ken Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N).

Learning Services IT Guide. Access 2013

Information Technology Services Kennesaw State University

MICROSOFT ACCESS A. CREATING A DATABASE B. CREATING TABLES IN A DATABASE

4. The Third Stage In Designing A Database Is When We Analyze Our Tables More Closely And Create A Between Tables

Microsoft Access 2010 Tables & Field Properties

How To Create A Database For Employee Records In A Club Account In A Computer System In A Cell Phone Or Cell Phone With A Cell Computer (For A Cell)

Using Microsoft Access

Access I Tables, Queries, Forms, Reports. Lourdes Day, Technology Specialist, FDLRS Sunrise

ACCESS Importing and Exporting Data Files. Information Technology. MS Access 2007 Users Guide. IT Training & Development (818)

Creating and Using Forms in SharePoint

Utility Software II lab 1 Jacek Wiślicki, jacenty@kis.p.lodz.pl original material by Hubert Kołodziejski

Data Warehousing With Microsoft Access

Introduction to Microsoft Office Access 2010

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries

Microsoft Access Introduction

Working with Access Tables A Continuation

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences

Microsoft Access 2010 Overview of Basics

Simple Invoicing Desktop Database with MS Access c 2015 by David W. Gerbing School of Business Administration Portland State University

Getting Started with Access 2007

Creating and Using Databases with Microsoft Access

The column containing phone numbers is a field

Database Applications Microsoft Access

Steps to Create a Database

GCSE Database Projects in Access

Introduction to Access 2013

Access NAMES Computerized Database


Microsoft Access 2010 handout

INTRODUCTION TO MICROSOFT ACCESS MINIMAL MANUAL

User Services. Microsoft Access 2003 II. Use the new Microsoft

LSP 121. LSP 121 Math and Tech Literacy II. Simple Databases. Today s Topics. Database Class Schedule. Simple Databases

Computer Science 125. Microsoft Access Project

Microsoft Access Part I (Database Design Basics) ShortCourse Handout

Access Creating Databases - Fundamentals

Topic: Relationships in ER Diagram and Relationships in MS Access

Introduction to Microsoft Access 2007

Microsoft Access Glossary of Terms

Creating a New MS-Access Database

Create a New Database in Access 2010

MICROSOFT OFFICE ACCESS LEVEL 2

Objectives. Understand databases Create a database Create a table in Datasheet view Create a table in Design view

In-Depth Guide Database Basics Creating and Populating

- Suresh Khanal. Microsoft Excel Short Questions and Answers 1

MICROSOFT OFFICE ACCESS LEVEL 1

Database Database Management System (DBMS)

A database is a collection of data organised in a manner that allows access, retrieval, and use of that data.

MICROSOFT OFFICE ACCESS NEW FEATURES

Using Microsoft Access

INTRODUCTION TO MICROSOFT ACCESS Tables, Queries, Forms & Reports

MICROSOFT ACCESS TABLES

Access 2007 Creating Forms Table of Contents

INTRODUCTION TO DATABASES USING MICROSOFT ACCESS

Microsoft Access 2010 Basics & Database Fundamentals

Tutorial Microsoft Office Excel 2003

Check out our website!

Creating a New Database

Microsoft Access 2000

Transcription:

Creating Tables There are many ways of creating tables; it depends on the fields required in the table and the complexity of the database to be set up as to how you create the tables. If the database that is required is similar to a template then whole database can be generated by using a template that already exists. We will look at three ways of creating a table: 1. A blank table. 2. A table based on a table. 3. A table in design view where you have total control as to how the data is displayed and entered into the table. A Blank Table When a blank database is set up a table is automatically created: Otherwise to create a blank table 1. Click on the Create Tab of the Ribbon. 2. Click on the Table icon. The table can be amended to contain the data required by:

Clicking on the column headings and changing them as necessary. If you are not happy with the first field name of ID then it can be changed as necessary. Other field names can be changed by Clicking on the Add New Field column heading. As fields are added that heading just keeps moving along onto the next blank column. The data can be added underneath the field names and as the data is added the fields will automatically get their data-types set from the information typed into the table. The ID field is set up to be AutoNumber as default and so cannot be typed into as the number is generated automatically when information is added elsewhere on the record If the data needs to be changed then the Data Type for the field needs to be changed. The data types for any of the fields can also be changed if necessary. Changing the data type 1. Select the field to be changed. 2. Click on Data Type (on the Datasheet ribbon selected automatically). 3. Select the Data Type required. When a table has been created in this way when you close it the first time it must be saved, otherwise all the changes and data is lost. Saving the table 1. Right Click on the table name. 2. Select Save or Close. If Close has been chosen you will be asked whether you wish to save answer yes! 3. Enter name of table.

Creating a table based on a template If the table that you need to create follows a standard pattern, then you do not need to start from scratch and build up the entire table. You can use a template and then use the table as it is or amend it as necessary. To create a table from a template click on the Table Templates button and then select the template required. This creates a table with the appropriate fields already set up. At this point, more fields can be added or the existing fields amended. The table will need to be saved otherwise all the data and setup will be lost. Create a table in design view When a table is created in design view, you have total control over the table. When you have gone through the design phase of planning the database this is probably how most people set up the database. Before creating a table in this way not only do you need to know what fields are needed in the table, but also what sort of data they will hold, what rules the data has to follow and how the tables are going to be inter-connected. Once a table has been set up, whether by design view, blank table or a template, it can then be changed by using the design view of the table. There are factors that have to be taken into consideration when amendments are being made. The main considerations are:

Data types. Relationships. Validation rules. The way of making the inter-connections between the tables is known as lookups. If Lookups are to be set up then the relationships cannot be set up prior to the lookups. The purists amongst database designers do not think they should be done at this point of a database development. To create a table in design view click on the button on the create ribbon this brings up the design view. 1. List the fields in this column. 2. Choose the data type for each field.

3. Add a description of the field this will appear on the status bar whenever the cursor is in this field where data can be entered. (Optional) 4. Set the properties of the selected field. The field name can be up to 64 characters long. Spaces are allowed (though not advised if you are going to be using the more advanced features of Access.) The field name cannot start with a space and capital letters are allowed. The data type controls what sort of data needs to be typed in. It is not dependent on the field name. For instance, the field name might be telephone number but the data type needs to be text. When typing in the data there would be a space, it would start with a Zero which numerically has no value and you might even want to put in an extension number. Setting Data type Hard Disk Allocation Text Memo Number Date/Time (Default) Text or combinations of text and numbers, as well as numbers that do not require calculations, such as phone numbers. Lengthy text or combinations of text and numbers. Numeric data used in mathematical calculations.. Date and time values for the years 100 through 9999. Up to 255 characters or the length set by the FieldSize property, whichever is less. Microsoft Access does not reserve space for unused portions of a text field. Up to 63,999 characters. 1, 2, 4, or 8 bytes (16 bytes if the FieldSize property is set to Replication ID). 8 bytes.

Setting Data type Hard Disk Allocation Currency AutoNumber Yes/No OLE Object Hyperlink Currency values and numeric data used in mathematical calculations involving data with one to four decimal places. Accurate to 15 digits on the left side of the decimal separator and to 4 digits on the right side. A unique sequential (incremented by 1) number or random number assigned by Microsoft Access whenever a new record is added to a table. AutoNumber fields cannot be updated. Yes and No values and fields that contain only one of two values (Yes/No, True/False, or On/Off). An object (such as a Microsoft Excel spreadsheet, a Microsoft Word document, graphics, sounds, or other binary data) in a Microsoft Access table. Text or combinations of text and numbers stored as text and used as a hyperlink. A hyperlink address can have up to three parts: 8 bytes. 4 bytes (16 bytes if the FieldSize property is set to Replication ID). 1 bit. Up to 1 gigabyte (limited by available disk space). Each part of the three parts of a Hyperlink data type can contain up to 2048 characters.

Setting Data type Hard Disk Allocation Attachment Any supported type of file. You can attach images, spreadsheet files, documents, charts, and other types of supported files to the records in your database, much as you attach files to e-mail messages. You can also view and edit attached files, depending on how the database designer sets up the Attachment field. Attachment fields provide greater flexibility than OLE Object fields, and they use storage space more efficiently because they do not create a bitmap image of the original file. Lookup Wizard Creates a field that allows you to choose a value from another table or from a list of values by using a list box or combo box. Clicking this option starts the Lookup Wizard, which creates a Lookup field. After you complete the wizard, Microsoft Access sets the data type based on the values selected in the wizard. The same size as the primary key field used to perform the lookup, typically 4 bytes. The description is optional does not have to be filled in, but if used can provide information displayed in the status bar when the cursor is on the field. It could be the type of data the field holds or the rule that the data has to follow. The description will follow the field in tables, queries and forms though on the forms the description can be changed on a form by form basis.