Date post: | 03-Mar-2017 |
Category: |
Education |
Upload: | chantha-chory |
View: | 24 times |
Download: | 2 times |
of 73
Lesson 1
Tables
1. Tables?2. Rows or Records?3. Fields or Columns?
Tables Table - Table Fields - Fields - Fields Primary Key Foreign Key Table
Tables Table View, Table Template Design View
Tables Group1: CustomerGroup2: CarGroup3: ProductGroup4: Sale
Tables- Tab Create => ()
View- Tab Create => View () -
- Add New Field Field Table Tables
Table Template- Tab Create => Table Template ()- Table Template Table
Tables
Design View- Tab Create => Table Design ()
-
Tables
-Field Name: Fields Table-Data Type: Fields Table-Description: Fields
Tables
- Field Name: Field Table - Data Type : Fields Field Design View Tables
(Data Type)Data Type Field Table Field Text
Yes/NoNumberCurrency
Date/Time
Text 255 bytes Number1, 2, 4 8 bytesDate/Time8 bytes 100 9999AutoNumber Field 4 bytes Primary Key fieldsYes/No 1 bitFields * Yes No, True False.Currency 8 bytesAccurate to 4 decimal places and 15 digits to the left of the separatorOLE Object images sounds
(Data Type)
Text 255 bytes Number1, 2, 4 8 bytesDate/Time8 bytes 100 9999AutoNumber Field 4 bytes Primary Key fieldsYes/No 1 bitFields * Yes No, True False.Currency 8 bytesAccurate to 4 decimal places and 15 digits to the left of the separatorOLE Object images sounds
(Data Type)
Text 255 bytes Number1, 2, 4 8 bytesDate/Time8 bytes 100 9999AutoNumber Field 4 bytes Primary Key fieldsYes/No 1 bitFields * Yes No, True False.Currency 8 bytesAccurate to 4 decimal places and 15 digits to the left of the separatorOLE Object images sounds
(Data Type)
Text 255 bytes Number1, 2, 4 8 bytesDate/Time8 bytes 100 9999AutoNumber Field 4 bytes Primary Key fieldsYes/No 1 bitFields * Yes No, True False.Currency 8 bytesAccurate to 4 decimal places and 15 digits to the left of the separatorOLE Object images sounds
(Data Type)
Text 255 bytes Number1, 2, 4 8 bytesDate/Time8 bytes 100 9999AutoNumber Field 4 bytes Primary Key fieldsYes/No 1 bitFields * Yes No, True False.Currency 8 bytesAccurate to 4 decimal places and 15 digits to the left of the separatorOLE Object images sounds
(Data Type)
Text 255 bytes Number1, 2, 4 8 bytesDate/Time8 bytes 100 9999AutoNumber Field 4 bytes Primary Key fieldsYes/No 1 bitFields * Yes No, True False.Currency 8 bytesAccurate to 4 decimal places and 15 digits to the left of the separatorOLE Object images sounds
(Data Type)
Text 255 bytes Number1, 2, 4 8 bytesDate/Time8 bytes 100 9999AutoNumber Field 4 bytes Primary Key fieldsYes/No 1 bitFields * Yes No, True False.Currency 8 bytesAccurate to 4 decimal places and 15 digits to the left of the separatorOLE Object images sounds
(Data Type)
(Practice Lab 2)
Tables- Tab Create => ()
Field (Properties of Fields)Properties: Fields Table
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Text, Number, AutoNumber-Text : -Numeric:
Byte, Integer, Long integer: Single, Double: Replication ID: Decimal: -10^28-1 10^28-1
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Number, Currency, Date/Time Number Currency
General number: Currency: ($)Euro: euro symbolFixed: Standard: Percent: (%).Scientific:
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Number, Currency, Date/Time Date/Time
General Date: '3/4/93', '05:34:00 PM' Long Date: Monday, August 21, 2000 Medium Date: 21-Aug-2000 Short Date: 01/08/00Long Time: 05:35:20 PMMedium Time: 5:35 PMShort Time: 17:35
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Number, Currency
3.44 :10.112:
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Text, Date/Time, Number, Currency
Input maskSample values(000) 000-000(206) 555-024(999) 999-999(206) 555-024- - 9
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: All data typesCaption: Field
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Number, Date/Time, Currency
- Table
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Text, Number, Date/Time, Currency
- M F
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Text, Number, Date/Time, Currency Message Validation rule
- Male Female Male Female Message
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Number, Date/Time, Currency Field
-
Field (Properties of Fields)
Field Size Format Decimal Places Input Mask Caption Default Value Validation Rule Validation Text Required Allow Zero Length
Data Type: Text, Memo
Zero-length String () Text
Lookup WizardThe lookup wizard Fields: Fields Tables Field Male, Female
Lookup Wizard Lookup Wizard Lookup Wizard Table
Lookup Wizard Lookup Wizard Lookup Wizard Table
Lookup Wizard Field
Lookup Wizard Lookup Wizard Lookup Wizard Table
(I will type in the values that I want.). Button Next
Lookup Wizard Lookup Wizard Lookup Wizard Table
Male, Female Button Next
Lookup Wizard Lookup Wizard Lookup Wizard Table
Button Next
Lookup Wizard Lookup Wizard Lookup Wizard Table
Button Finish
Lookup Wizard Lookup Wizard Lookup Wizard Table
Table Button Next
Lookup Wizard Lookup Wizard Lookup Wizard Table
Available Field Field Lookup Button Next
Lookup Wizard Lookup Wizard Lookup Wizard Table
Field Button Next
Lookup Wizard Lookup Wizard Lookup Wizard Table
Button Next
Lookup Wizard Lookup Wizard Lookup Wizard Table
Button Finish
Lookup Wizard Lookup Wizard Lookup Wizard Table
Button Finish
GET EXTERNAL DATA Import Data Link Tables
GET EXTERNAL DATA
Import Data Link TablesImport Database Objects Tables, Queries, Form, Report, Macro Module Database Database SOURCEDATABASEDESTINATIONDATABASE Database Object
GET EXTERNAL DATA
Import Data Link Tables
Tab External Data => Button Access
GET EXTERNAL DATA
Import Data Link Tables
Button Browse Database File Button Ok
GET EXTERNAL DATA
Import Data Link Tables
Table, Queries, Forms, Report, Macro Module Import Button OK
GET EXTERNAL DATA
Import Data Link Tables
Button Close
GET EXTERNAL DATA
Import Data Link Tables
Link Table Table Database Table Database SOURCEDATABASEDESTINATIONDATABASE Tables
GET EXTERNAL DATA
Import Data Link Tables
- Tab External Data => Button Access
GET EXTERNAL DATA
Import Data Link Tables
- Button Browse Database File Button Ok
GET EXTERNAL DATA
Import Data Link Tables
- Table Link Button OK
GET EXTERNAL DATA
Import Data Link Tables
- Table Link Button OK
(Practice Lab 3)
Relationship Table (Relationship)
Relationship Primary Key Foreign Key (Relationship)
Primary Key: Field Null Foreign Key: Field Primary Key
(Relationship) Record Table(A) Record Table (B) Record Table(B) Record Table(A) One-to- OneOne-to- ManyMany-to- Many
(Relationship)
One-to- OneOne-to- ManyMany-to- Many
EMPLOYEESEmployeeIDFirst NameLast Name1KongBona2VanSina
SPOUSEEmployeeIDSP_Name2So Vanna1Chan Nary
-
(Relationship)
One-to- OneOne-to- ManyMany-to- Many
Record Table(A) Record Table(B) Record Table(B) Record Table(A)
(Relationship)
One-to- OneOne-to- ManyMany-to- Many
CLASSClassIDClassNameYear1B10212B10323B1042
STUDENTStudentIDStudentNameAddressClassID1Mary Start#4412Ane#2115Jos#8926Big#8827tola#873
--
(Relationship)
One-to- OneOne-to- ManyMany-to- Many
Many-to-many relationship: Record Table(A) Record Table(B) Record Table(B) Record Table(A) Many-to-many Table Table(A) Table (B)
(Relationship)
One-to- OneOne-to- ManyMany-to- Many
ProductProductID (PK)ProductNameStock1ABC1002Angkor2003Tiger200
OrderOrderID (PK)OrderDateCustomerID00116-01-201100100217-01-201100200317-01-2011003
OrderDetailOrderIDProductIDPrice001110001212001315002110002315
=>Database Tab => Click Button Relationship
- Button Relationships Relationship
- Table Button Add Show Table Right Click Show Table Relationship
- Field Relationship Relationship
Relationship
Enforce Referential Integrity: Foreign Key field Primary key field
Relationship
Cascade Update Related Fields: Primary key field Foreign key field
Relationship
Cascade Delete Related Records: Record Primary key field Records Foreign key fields
(Practice Lab 4)