Microsoft Access Tables Birgül Kutlu Bayraktar. TERMS A database is a collection of related information. An object is a competition in the database such.

Slides:



Advertisements
Similar presentations
Designing Tables in Microsoft Access By Ed Lance.
Advertisements

Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Benchmark Series Microsoft Access 2010 Level 1
Access Lesson 2 Creating a Database
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Exploring Office Grauer and Barber 1 Tables and Forms: Properties, Views, and Wizards(Wk3)
© Steven Alter, 2007, all rights reserved Database concepts Difference between a database and the Internet Reason for having a defined data structure Relational.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
CVEV 118/698 Databases Lecture 2 Prof. Mounir Mabsout Elsa Sulukdjian Walid El Asmar.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
Tables. Any database must contain one or more tables, because that’s where the data is stored. For any table there are two views provided: Datasheet view.
Data Types and Field Properties 5.01 Understand database tables used in business.
Data type – determines the type of data and range of values that can be entered in a field.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Microsoft Access 2000 Creating Tables and Relationships.
ACCESS. » Access is a database management system. » This system lets you create and process data. » A database is a collection of data that is organized.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
Access 2000 Part 1 Introduction to Access Agenda Starting Access. Creating Tables. Working with Tables. Setting Field Properties.
Microsoft Access Intro Class 2 Designing Databases and Tables.
Access Tutorial 2 Building a Database and Defining Table Relationships
Creating a Web Site to Gather Data and Conduct Research.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
DATABASE DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
Designing a Database (Part I) -Identify all fields needed to produce the required information -Group related fields into tables -Determine Each Table’s.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
CHƯƠNG 3 Finding, Filtering, and Formatting Data.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
Microsoft Access 2000 Presentation 2 Creating Databases Part I (Creating Tables)
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
1 Web-Enabled Decision Support Systems Access Tables: Building Data Foundation Prof. Name Position (123) University Name.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 1-1 LINKS TO OBJECTIVES Design Tables and Fields Design Tables and Fields Data Types Field Size Property.
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Chapter 17 Creating a Database.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Preparing To Automate Data Management Chapter 1 “You.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
Microsoft Access 2010 Chapter 10 Administering a Database System.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
XP Chapter 2 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Building The Database Chapter 2 “It is only the farmer.
A Skills Approach Access 2010 Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
Introduction to Database using Microsoft Access 2013 Part 6.1 November 18, 2014.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Relational Database Techniques
1 11 Exploring Microsoft Office Access 2007 Chapter 6 Data Protection.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Database Management System Conducted By Provincial Computer Resource Centre Gurudeniya Jayaratna Alahakoon.
Pasewark & Pasewark 1 Access Lesson 2 Creating a Database Microsoft Office 2007: Introductory.
Database design Using Access 2007
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
C REATING & D ESIGNING A D ATABASE 1. C REATING A D ATABASE 2 There are two different ways to create a new Access database: 1. Start from scratch with.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Getting Started in Access 1 Using an existing Database Database Window Table Design View Parts of a Table Views in Access Navigating in Access Entering.
Access Test Questions Test Date: 05/05/16. Chapter 1 (Lynda.com) Question 1 An access database uses five main components (database objects). Which is.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
COMPUTER SKILLS MS-ACCESS. Introduction Access is a piece of software known as a database management system. At its most basic level, it can be used to.
INTRODUCTION TO DATABASE USING MICROSOFT ACCESS 2013 Part 5.1 November 16, 2014.
MICROSFTACCESS tables. DATA TYPES Field TypeWhat It Holds Short Text Text up to 255 characters long (including spaces and punctuation). Use a Text field,
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
DB Implementation: MS Access Tables
DB Implementation: MS Access Tables
MODULE 7 Microsoft Access 2010
Access Lesson 2 Creating a Database
Grauer and Barber Series Microsoft Access Chapter Two
Lecture 2 Lecturer: awdang aziz MS access
Presentation transcript:

Microsoft Access Tables Birgül Kutlu Bayraktar

TERMS A database is a collection of related information. An object is a competition in the database such as a table, query, form, or macro. A table is a grouping of related data organized in fields (columns) and records (rows) on a datasheet. By using a common field in two tables, the data can be combined. Many tables can be stored in a single database. A field is a column on a datasheet and defines a data type for a set of values in a table. For a mailing list table might include fields for first name, last name, address, city, state, zip code, and telephone number.

TERMS A record in a row on a datasheet and is a set of values defined by fields. In a mailing list table, each record would contain the data for one person as specified by the intersecting fields. Information is stored in tables. Information can be entered into tables using forms. Information is displayed and printed using reports.

TERMS Query is used to filter information in one or more tables. Macro is used to convert a series of Access commands into one-click operation. Pages are used to display table information through Internet or intranet. Design View provides the tools for creating fields in a table. Datasheet View allows you to update, edit, and delete in formation from a table.

DESIGN VIEW Field Name - This is the name of the field and should represent the contents of the field such as "Name", "Address", "Final Grade", etc. The name can not exceed 64 characters in length and may include spaces. Data Type is the type of value that will be entered into the fields. – Text - The default type, text type allows any combination of letters and numbers up to a maximum of 255 characters per field record. – Memo - A text type that stores up to 64,000 characters. – Number - Any number can be stored.

DESIGN VIEW – Date/Time - A date, time, or combination of both for years from 100 to – AutoNumber - When a new record is created, Access will automatically assign a unique integer to the record in this field. From the General options, select Increment if the numbers should be assigned in order or random if any random number should be chosen. Since every record in a datasheet must include at least one field that distinguishes it from all others, this is a useful data type to use if the existing data will not produce such values. – Currency - Monetary values that can be set up to automatically include a dollar sign ($) or TL and correct decimal (4) and comma positions.

DESIGN VIEW Yes/No: Use this option for True/False, Yes/No, On/Off, or other values that must be only one of two. OLE Object: An OLE (Object Linking and Embedding) object is a sound, picture, or other object such as a Word document or Excel spreadsheet that is created in another program. Use this data type to embed an OLE object or link to the object in the database.

DESIGN VIEW Hyperlink - A hyperlink will link to an Internet or Intranet site, or another location in the database. The data consists of up to four parts each separated by the pound sign (#): DisplayText#Address#SubAddress#ScreenTip. – The Address is the only required part of the string. Internet hyperlink example: FGCU Home Page# Database link example: #c:\My Documents\database.mdb#MyTable

DESIGN VIEW Description (optional) - Enter a brief description of what the contents of the field are. Field Properties - Select any pertinent properties for the field from the bottom pane. Field Size is used to set the number of characters needed in a text or number field. The default field size for the text type is 50 characters. If the records in the field will only have two or three characters, you can change the size of the field to save disk space or prevent entry errors by limiting the number of characters allowed. Likewise, if the field will require more than 50 characters, enter a number up to 255.

DESIGN VIEW Field Size: The field size is set in exact characters for Text type, but options are give n for numbers: – Byte - Positive integers between 0 and 255 – Integer - Positive and negative integers between - 32,768 and 32,767 – Long Integer (default) - Larger positive and negative integers between -2 billion and 2 billion. – Single - Single-precision floating-point number – Double - Double-precision floating-point number – Decimal - Allows for Precision and Scale property contro l

DESIGN VIEW Caption: Field name that is displayed. Default Value: There may be cases where the value of a field will usually be the same for all records. In this case, a changeable default value can be set to prevent typing the same thing numerous times. Required: When “Yes” data must be inputted to the field. Allow Zero Length: Specifies if strings of zero length can be used.

DESIGN VIEW New Values: Used for autonumber fields to specify if value will be incremental or random. Decimal Places: Shows number of decimal places. Unicode Compression: A character is 2 bytes long, and ASCII is the low order byte. If compression is on and high order byte is 0 then it is omitted. Indexed: An index speeds up searches and sorting on the field, but may slow updates. IME Mode: Input Method Editor Mode used for especially east region languages such as Japanese. Smart Tags: If smart tags is “Yes” then person can be added to outlook contacs.

DESIGN VIEW Format conforms the data in the field to the same format when it is entered into the datasheet. For text and memo fields, this property has two parts that are separated by a semicolon. The first part of the property is used to apply to the field and the second applies to empty fields.

Text and Memo Format FormatDatasheet Entry DisplayExplanation indicates a required character or space indicates an optional character or space <HELLOhello< converts characters to lowercase >helloHELLO> converts characters to uppercase

FormatDatasheet Entry adds characters to the Data Data Entered"(blank)No Data Entered Text and Memo Format

Number Format FormatDatasheet Entry DisplayExplanation ###,## , is a placeholder that displays a digit or 0 if there is none. $###,##0.000 $0.00# is a placeholder that displays a digit or nothing if there is none. ###.00% % multiplies the number by 100 and added a percent sign Regional settings overwrite formatting!!

This formatting consists of four parts: format for positive numbers; format for negative numbers; format for zero values; format for Null values. FormatExplanation $##0.00;Positive values will be normal currency format ($##0.00)[Red];negative numbers will be red in parentheses $0.00;zero is entered for zero values "none""none" will be written for Null values Currency Format

Date Format Datasheet entry is “1/1/01”. FormatDisplayExplanation dddd","mmmm d","yyyyMonday, January 1, 2001 dddd, mmmm, and yyyy print the full day name, month name, and year ddd","mmm ". " d", '"yyMon, Jan. 1, '01 ddd, mmm, and yy print the first three day letters, first three month letters, and last two year digits "Today is " ddddToday is Monday h:n:s: AM/PM12:00:00 AM "n" is used for minutes to avoid confusion with months

Yes/No Format Yes/No fields are displayed as check boxes by default on the datasheet. To change the formatting of these fields, first click the Lookup tab and change the Display Control to a text box. Go back to the General tab choices to make formatting changes. The formatting is designated in three sections separated by semicolons. The first section does not contain anything but the semicolon must be included. The second section specifies formatting for Yes values and the third for No values. FormatExplanation ;"Yes"[green] ;"No"[red] Prints "Yes" in green or "No" in red

Default Value There may be cases where the value of a field will usually be the same for most of the records. In this case, a changeable value can be set to prevent typing the same thing numerous times.

INPUT MASK An input mask controls the value of a record and sets it in a specific format. They are similar to the Format property, but instead display the format on the datasheet before the data is entered. For example, a telephone number field can formatted with an input mask to accept ten digits that are automatically formatted as "(555) ". The blank field would look like (___) ___-____. An an input mask to a field by following these steps: In design view, place the cursor in the field that the input mask will be applied to. Click in the white space following Input Mask under the General tab. Click the "..." button to use the wizard or enter the mask, ( 999 ) , into the field provided.

INPUT MASK SYMBOLS SymbolExplanation ALetter or digit 0A digit 0 through 9 without a + or - sign and with blanks displayed as zeros 9Same as 0 with blanks displayed as spaces #Same as 9 with +/- signs ? ; LLetter A through Z; same as ? but must be entered C or &Character or space Convert letters to lower case ; Convert letters to upper case PASSWORDInstead of the character “*” is displayed.

VALIDATION RULES Validation Rules specify requirements (change word) for the data entered in the worksheet. A customized message can be displayed to the user when data that violates the rule setting is entered. Click the expression builder ("...") button at the end of the Validation Rule box to write the validation rule. Examples of field validation rules include: ◦ <> 0 : Do not allow zero values in the record, ◦ ??? : Allow only data strings with maximum length of three characters.

VALIDATION RULES SymbolExplanation >100Value has to be greater than 100 <>00 value can not be entered Like “[A-K]*”Value has to start with character A- K. Like “A??”Value has to start with A and has to be 3 letters. Between 10 and 40Value has to be between 10 and 40 Between #1/1/98# and #31/12/98# Date value must be between January 1, 1998 and December 31, 1998.

PRIMARY KEY Every record in a table must have a primary key that differentiates it from every other record in the table. In some cases, it is only necessary to designate an existing field as the primary key if you are certain that every record in the table will have a different value for that particular field. A social security number is an example of a record whose values will only appear once in a database table. Designate the primary key field by right-clicking on the record and selection Primary Key from the shortcut menu or select Edit|Primary Key from the menu bar. The primary key field will be noted with a key image to the left. To remove a primary key, repeat one of these steps.

PRIMARY KEY If none of the existing fields in the table will produce unique values for every record, a separate field must be added. Access will prompt you to create this type of field at the beginning of the table the first time you save the table and a primary key field has not been assigned. The field is named "ID" and the data type is "autonumber". Since this extra field serves no purpose to you as the user, the autonumber type automatically updates whenever a record is added so there is no extra work on your part. You may also choose to hide this column.

INDEXES Creating indexes allows Access to query and sort records faster. To set an indexed field, select a field that is commonly searched and change the Indexed property to Yes (Duplicates OK) if multiple entries of the same data value are allowed or Yes (No Duplicates) to prevent duplicates.