• Tidak ada hasil yang ditemukan

Access-5.ppt 610KB Mar 29 2010 04:55:15 AM

N/A
N/A
Protected

Academic year: 2017

Membagikan "Access-5.ppt 610KB Mar 29 2010 04:55:15 AM"

Copied!
21
0
0

Teks penuh

(1)
(2)

Exploring Microsoft Access

Chapter 5

One-to-Many Relationships:

(3)

• One-to-many relationship essential in

database design

• Use the Relationships window

• Define referential integrity

(4)

• Distinguish between a main form and a subform

• Create a query based on multiple tables

• Create a main form with two subforms

(5)

Overview

(1 of 2)

• The real power of Access: one-to-many relationships between tables

• Primary key of one table is foreign key of the related table

(6)

• Main forms and subforms created from related tables.

• Reports based on a multiple-table query

(7)

Relationships Window

CustomerID is primary key

in Customers table Relationship line

CustomerID is foreign key in Loans table Enforce Referential

(8)

Referential Integrity

(1 of 2)

• Access automatically implements a form of data validation during data entry

• Can enter a record in the “one” table, but not in the “many” table if record contains an invalid value for the foreign key

(9)

Referential Integrity

(2 of 2)

Delete Record button

Click + to display related records (subdatasheet)

(10)

Subforms

• Subform is a form within a form

• Main form would be based on primary table, while subform is based on related table

• Use Subform Wizard

(11)

Form Wizard

(1 of 4)

Select the table or query for

the form

Select all fields to add to the form

Step 1

(12)

Form Wizard

(2 of 4)

Step 3

Select the table or query for

the subform

Select all fields

(13)

Form Wizard

(3 of 4)

Step 4

Step 5 Choose how to display

(14)

Form Wizard

(4 of 4)

(15)

Subform

Customer C01

Loans for

Customer C01

Status bar for

(16)

Multiple Table Queries

• Query information from two tables

• Create a select query using both tables

(17)

Multiple Table Queries

Column selector

(18)

Multiple Subforms

(1 of 2)

• A main table can have multiple levels of subforms

(19)

Multiple Subforms

(2 of 2)

Customer C01

(20)

Chapter 5 Summary

(1 of 2)

• Access database may contain multiple tables

• Each table has a primary key which is the foreign key of a related table

• Relationships window to create one-to-many relationships

(21)

Chapter 5 Summary

(2 of 2)

• Subform is a form within a form

• A main form can have multiple subforms

• Select query can include fields from several tables

Referensi

Dokumen terkait

Dengan ini diumumkan Pemenang Pelelangan dan Pemenang Cadangan, adalah sebagai berikut

[r]

Dengan ini diumumkan Pemenang Pelelangan dan Pemenang Cadangan, adalah sebagai berikut

Dinas Bina Marga dan Pengairan Kabupaten Tangerang, yang beralamat di Jl.Pemda II Gedung Lingkup PU Tigaraksa-Tangerang, akan Dinas Bina Marga dan Pengairan Kabupaten Tangerang,

Hasil penelitian ini sama dengan penelitian yang dilakukan sebelumnya oleh Auzi Annisa dan Pantius Drahen Soeling (2013) serta Maha Ahmed Zaki Dajani (2015) yang

Pokja IV ULP Pekerjaan Revitalisasi Pasar Teluk Dalam Muara di lingkungan Dinas Pengelolaan Pasar Kota Banjarmasin akan melaksanakan Pelelangan Umum dengan pascakualifikasi untuk

Dapat dipertanggungjawabkan maksudnya ia ada pada suatu keadaan jiwa pembuat, yang memiliki cukup akal dan kemauan, oleh karena cukup mampu untuk mengerti arti perbuatannya dan

[r]