Create a table relationship in Access 2007

Source: Internet
Author: User
Tags contains one table access database

Relational databases are called "relational" databases, and the truth is that they can trace the relationships between data elements in a database. However, many database users do not know how to take advantage of this function of a relational database, simply using Access as an advanced spreadsheet. In this article, we'll discuss how to create a relationship for two tables in an Access database.

First step: Start

First, we're going to start access and open the database that holds the new table. In this example, we will use a simple database to track the running activity. The database contains two tables: A table routes (a tracking record for the daily run path) and a table runs (a separate record for each running activity). The table routes contains "id", "short_name", "description" and "Distance" five fields, while table runs includes "id", "route", "Run_date", "Time", "Run_time" and "comments" six fields.

Step two: Start the relational tool

Next, we'll open the relational tools for access. Tap the Database Tools tab of the Access interface, and click the "Relationships" button from the dropdown option, as shown in Figure two.

Step three: Add the relational table

If this is the first time a table relationship is created in the current database, the Show Table dialog box appears, as shown in Figure three. The dialog box has three tabs that display all the tables and queries in the current database, the first two tables and queries used to view the tables and the query separately, and the both tab to display both the table and the query. Select the tables you want to include in this relationship (you can use the control key to select more than one table at a time), and then click the Add button. Click the Close button to continue after adding the last table.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.