Microsoft Access
  Home arrow Microsoft Access arrow Page 4 - 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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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 - The Primary Key


    (Page 4 of 5 )

    Set a field as the primary key by selecting the field, or fields, and clicking the Primary Key button in the toolbar. You should have a primary key in every one of your tables. This is important because a primary key ensures that each row of data is unique. This ensures that your tables do not contain replication errors, for instance. Generally you’ll want to use the AutoNumber data type for your primary key fields but you don’t have to.

    Indexes

    An index basically helps you find and sort records quicker. Primary keys are always indexed, but other fields are not. Choose fields you will search among frequently for particular values and index them by changing the index property of the field to Yes. You will also have to decide whether to permit duplicate values or not.

    Changing the Design

    At some point you’ll probably need to change your table design somewhat, even if you designed it properly in the first place. It’s a good idea to make a backup of your database before you make changes to the design. Even so, Access prompts you when you make changes if the changes are likely to result in data loss.

    Some of the design elements you can change include adding or deleting fields, field order, field name and type, or field size. To change the primary key just select the row you want to be the new primary key and click the Primary Key button.

    Table Properties

    You can set two types of table properties in Access: table object and table definition properties. Object properties include such things as owner and date of creation. Table definition properties are those that relate to the structure of the table itself. To change the default table properties choose Tables | Options and then click the Tables/Queries tab and make the appropriate changes.

    More Microsoft Access Articles
    More By Sage Adams


     

    MICROSOFT ACCESS ARTICLES

    - 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
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access
    - Configuring a Linked Microsoft Access Server...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT