IT tutorials
 
Office
 

Microsoft Access 2010 : Creating Your Own Databases and Tables - Building a New Table (part 2) - Designing a Table from Scratch

- 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:26:17 AM

Designing a Table from Scratch

Many people believe that designing tables from scratch offers flexibility and encourages good design principles. Although it requires some knowledge of database and table design, it gives you more control and precision than designing a table from datasheet view. It allows you to select each field name and field type, and to define field properties. To design a table from scratch, you select Tables from the list of objects and double-click the Create Table in Design View icon. The Table Design view window appears.

When the Table Design view window appears, follow these steps to design a table:

1.
Define each field in the table by typing its name in the Field Name column.

2.
Tab to the Data Type column. Select the default field type, which is Text, or use the drop-down combo box to select another field type. Note that if you use the Field Builder, it sets a data type value for you that you can modify.

If you forget a field and need to insert it later, you can right-click the column heading to the right of where you want to insert the new column and then select Insert Field from the context menu. Access inserts a column that you can rename by double-clicking the column heading. You can then use the Fields tab of the Ribbon to set properties of the field.


3.
Tab to the Description column and enter a description for the data. What you type in this column appears on the status bar when the user is entering data into the field. This column is also great for documenting what data is actually stored in the field.

4.
Continue entering fields. If you need to insert a field between two existing fields, click the Insert Rows button in the Tools group of the Design tab of the Ribbon. Access inserts the new field above the field you were on. To delete a field, select it and click the Delete Rows button.

5.
To save your work, click the Save tool on the QuickAccess toolbar. The Save As dialog box, shown in Figure 6, appears. Enter a table name and click OK. A dialog box appears, recommending that you establish a primary key. Every table should have a primary key.

Figure 6. The Save As dialog box.



Field names can be up to 64 characters long. For practical reasons, you should try to limit them to 10–15 characters, which is enough to describe the field without making the name difficult to type.

Access supplies default names for the tables that you create (for example, Table1, Table2). I suggest that you supply a more descriptive name. I generally follow the industry-wide naming convention of prefixing all my table names with tbl.


Field names can include any combination of letters, numbers, spaces, and other characters, excluding periods, exclamation points, accents, and brackets. I recommend that you stick to letters. Spaces in field names can be inconvenient when you’re building queries, modules, and other database objects. You shouldn’t be concerned that users will see the field names without the spaces. The Caption property of a field allows you to designate the text that Access displays for users.

A field name cannot begin with leading spaces. As mentioned previously, field names shouldn’t contain any spaces, so the rule to not begin a field name with spaces shouldn’t be a problem. Field names also cannot include ASCII control characters (ASCII values 0–31).

You should try not to duplicate property names, keywords, function names, or the names of other Access objects when naming fields (for example, naming a field Date). Although the code might work in some circumstances, you might get unpredictable results in others.

To make a potential move to the client/server platform as painless as possible, you should be aware that not all field types are supported by every back-end database. Furthermore, most back-end databases impose stricter limits than Access does on the length of field names and the characters that are valid in field names. To reduce the number of problems you’ll encounter if you migrate tables to a back-end database server, you should consider these issues when you’re naming the fields in Access tables.

 
Others
 
- 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
- Taking Microsoft Project 2010 for a Test Drive (part 2) - The Project Window
- Taking Microsoft Project 2010 for a Test Drive (part 1) - Navigating the Project Ribbon
- Microsoft PowerPoint 2010 : Preparing a Slide Show - Using Specialized Animations
 
 
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