Microsoft Access
  Home arrow Microsoft Access arrow Getting to Know Access 2003, Part 3
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

Getting to Know Access 2003, Part 3
By: Sage Adams
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 12
    2004-12-22

    Table of Contents:
  • Getting to Know Access 2003, Part 3
  • Creating a New Table Without the Wizard
  • Set the Properties for Your Field
  • The Primary Key
  • Relationships

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Getting to Know Access 2003, Part 3


    (Page 1 of 5 )

    After a brief hiatus, our series explaining the ins and outs of using Microsoft Access 2003 continues. This installment takes you from creating tables to hold data to enforcing referential integrity on those tables.

    Creating Tables and Relationships

    You created database structures in our last lesson. Now it’s time to make tables to hold your data. Before you start creating your tables however, it’s a good idea to plan your table designs carefully. You should decide what kind of information your tables will contain and the relationships between your data. The importance of table design cannot be overestimated: good table design helps make error-free databases possible, while bad table design creates flawed and unusable databases. Access gives you tools to help with table design, and that is a major topic of this week’s lesson. We will also cover table relationships in some detail.

    Using the Table Wizard

    It’s time to create your first table using the Table Wizard. Open the Tables page in the Database window and double-click the Create Table by Using Wizard icon; a dialog box will pop up. The dialog shows two lists of sample table types: business and personal. Select the one you want and then choose from the list of sample tables below. Then you’ll select either some or all of the fields from that sample table, to the right, for use in your new table. You may rename some of the fields if you like using the Rename Field button. When you have selected and renamed your desired fields click "Next." The Table Wizard dialog box looks similar to the following:

    A second dialog box lets you name the table and also set the primary key. You have the option of letting Access assign the primary key for you, in which case the key will automatically comprise consecutive AutoNumber values. Alternatively, you can set the primary key yourself. Click "Next" when you have finished.

    If you opted to set your own primary key, the following dialog box asks you to name your primary key field. You will also be asked to set the data type for the field. Consecutive numbers are usually your best option here because Access automatically assigns unique values to this field, and it’s important that your primary key values be unique.

    The next dialog box asks you if you want to relate your new table to pre-existing tables, if you have any.

    The final dialog box gives you the option of going directly to the Design View of the table, opening the Datasheet View, or having the wizard create a form for data entry. The design view is where you determine your field names, data types, and field properties. The datasheet view is a columnar data entry view similar to Excel. Forms are a more attractive and easier method of putting data into your tables. We’ll cover forms in a later lesson. Select whichever option you like best and click "Finish."

    More Microsoft Access Articles
    More By Sage Adams


     

    MICROSOFT ACCESS ARTICLES

    - Improving Construction of Statistical Proces...
    - How to Monitor Website Traffic using Statist...
    - Chi Square Test of Independence with MS Excel
    - Two-Way ANOVA (Analysis of Variance) in Micr...
    - Converting a MySQL Database to an Excel Work...
    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek