| You are here: | About>Computing & Technology>Databases> Microsoft Access> Tutorials> Building an Access Database> Adding Tables to Your Database |
![]() | Databases |
Suggested ReadingAdding Tables to Your DatabaseWelcome to Part 6 of our Building an Access Database From the Ground Up series. In this installment, well build the tables necessary to implement the relational structure developed in Part 4 that builds upon the Patricks Widgets scenario from Part 3.
Creating relational tables within Access is fairly simple. If you havent done so already, open the Microsoft Access database you created in our last article. Youll then be presented with a menu allowing you to create new tables using one of three methods:
The most common data types that youll use are text, number, date/time and yes/no. For example, when designing the Inventory table, youll use the following fields:
Before saving the table, right click on the ItemID field and choose the "Primary Key" option. This will instruct access to use the ItemID field as the table's primary key. Once youve successfully created the Inventory table, go ahead and repeat the process for the Customers, Orders, and OrderedItems tables. To give you a hint on data types, make all of the ID fields (e.g. ItemID, OrderID, CustomerID, etc.) AutoNumber fields (and the primary key). The OrderedItems table doesn't have a straightforward primary key, so don't specify one. Access will prompt you to automatically create a new key when you attempt to save the table. Tracking codes should be text, as they are alphanumeric in nature. The remaining fields should be self-explanatory (dont forget that theres a Date/Time data type!). After completing these tables, congratulate yourself! Youve made significant progress toward designing your Access database. Join us next time as we learn how to create relations between tables. Suggested Reading |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | Print this Page | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


