IT tutorials
 
Office
 

Microsoft Access 2010 : Creating Your Own Databases and Tables - Working with Field Properties (part 1)

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Product Key Free : Microsoft Office 2019 – Serial Number
3/23/2014 1:32:26 AM

1. The All-Important Primary Key

A primary key is a field or a combination of fields in a table that uniquely identifies each row in the table (for example, the OrderID). The most important index in a table is called the Primary Key index; it ensures uniqueness of the fields that make up the index and also gives the table a default order. You must set a primary key for the fields on the one side of a one-to-many relationship. To create a Primary Key index, you select the fields you want to establish as the primary key and then click the Primary Key button in the Tools group of the Design tab on the Ribbon.

Figure 1 shows the tblOrders table with a Primary Key index based on the OrderID field. Notice that the index name of the field designated as the primary key of the table is called PrimaryKey. Note that the Primary and Unique properties for this index are both set to Yes (true).

Figure 1. A Primary Key index based on the OrderID field.



2. Working with Field Properties

After you have added fields to a table, you need to customize their properties. Field properties let you control how Access stores data and what data the user can enter into a field. The available properties differ depending on which field type you select. You can find a comprehensive list of properties under the Text data type (see Figure 2). The following sections describe the various field properties. Notice that the lower portion of the Design view window in Figure 2 is the Field Properties pane. This is where you can set properties for the fields in a table.

Figure 2. Using the Field Properties pane of the Design view window to set the properties of a field.

The Field Size Property: Limiting What the User Enters into a Field

The Field Size property is available for Text and Number fields only. It’s best to set the Field Size property to the smallest value possible. For Number fields, a small size means lower storage requirements and faster performance. The same is true for Text fields. To modify the Field Size property, follow these steps:

1.
Select the desired field name from the top pane of the Design view window.

2.
Click the Field Size property text box in the Field Properties pane.

3.
Type the desired field size. In Figure 2 I’ve typed 50 as the field size of the Ship Name field.

It’s important to note that for Number fields, you should select the smallest Field Size property value that can store the values you will be entering. Limiting the Field Size property of Number fields saves disk space.

Second, to get help with a field property, you click the property line in the Field Properties pane and press F1.

 
Others
 
- Microsoft Access 2010 : Creating Your Own Databases and Tables - Using Indexes to Improve Performance
- Microsoft Access 2010 : Creating Your Own Databases and Tables - Selecting the Appropriate Field Type for Data
- Microsoft Access 2010 : Creating Your Own Databases and Tables - Building a New Table (part 2) - Designing a Table from Scratch
- Microsoft Access 2010 : Creating Your Own Databases and Tables - Building a New Table (part 1) - Building a Table from a Datasheet
- Microsoft Access 2010 : Creating Your Own Databases and Tables - Types of Databases Available, Creating a New Database
- Taking Microsoft Project 2010 for a Test Drive (part 7) - How Long Will All These Tasks Take?
- Taking Microsoft Project 2010 for a Test Drive (part 6) - List the people on your project,Assign resources to tasks
- Taking Microsoft Project 2010 for a Test Drive (part 5) - Creating task dependencies
- Taking Microsoft Project 2010 for a Test Drive (part 4) - Adding milestones to a project schedule
- Taking Microsoft Project 2010 for a Test Drive (part 3) - Listing project tasks
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us