Khmer Basic Access 2007
description
Transcript of Khmer Basic Access 2007
-
!$ &'()* / 0135 7/ 9;?@ ;A ;;&DFG7 H & @I J9F 3&MNO PR F D S &H JU NU &F 1 1 & V F&& FG7W5& 1 1 &V; V ( 0 PR U NU J5&Y Z @!! M&YY \ &]] PR F ^H 1 1 &V; ;M`F&N \ a&&F JU &VG] M
A&]] PR F
-
:
&
:
&
:
& 9cd
:
& 9cd e (
$$ : Vd! 2013 ' PR F M (9& Ha &N]kD ;N' 3Ha )n 5o1 Fp ad
&' : 9 179 Z 173 A 3 1 /S R Mc& Tel: 010-012-016 603 314 Website: www.enteritc.com | facebook.com/enteritc
-
()* ] 1: Y(` Microsoft Office Access 2007 .................................................................................................. 1 ] 2: V Tables .................................................................................................................................................................. 9 ] 3: Lookup Wizard Import Table ...................................................................................................... 17 ] 4: V Relationship Table ............................................................................................................................. 29 ] 5: ' Query ................................................................................................................................................ 39 ] 6: V Query ........................................................................................................................................................ 49 ] 7: ' S Forms .................................................................................................................................. 65 ] 8: V]S Form ................................................................................................................................. 87 ] 9: ' ] Reports .............................................................................................................................. 127 ] 10: V] Reports ............................................................................................................................... 145 ] 11: Switchboard Manager ..................................................................................................................................................... 167 Final Test .................................................................................................................................................... 175
-
Access 2007 Basic www.enteritc.com 1
,. (12 Enter Information Technology Center
$ 1: *56 $ Microsoft Office Access 2007
1. Microsoft Office Access 2007:
Microsoft Office Access 2007 aV@&' &?J@Fd7O/JZ@ ] Microsoft Office Access 2007 DBMS (Database Management System) M@ Database Database &9 F`7 (G N > 3&(5] YYF Database 9&a D 1 `1] 9F9 1 D > 3YHYYF Database 9&a ` ` a ' pYH > 3VYYF Database 9&a F&Z a ` ` & /9;^d@ Database ; 'H(&]'FoH& @`7]ZH& @Y ; 3]V&3']k, (R 1'3& 3&ZU71 S pJ& '(pF 9&3& Y a Microsoft Office Access 2007 J & @ Database
2. $ 2. All Programs > 3. Microsoft Office > 4. Microsoft Office Access 2007
-
2 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center ,. (12
] 2: 1. Start Button > 2.& Start Search ^ msaccess Enter
3. =$ FFile Database > BBlank Database:
1. Office Button > 2. New ( Ctrl+N )>
3.3& File Name: 'a File (; StudentList.accdb) > 4. Browse Button JZV File >
5. Select Drive ND (Ex: D:\) >
2
2 1
4 3
-
Access 2007 Basic www.enteritc.com 3
,. (12 Enter Information Technology Center
6. OK Button >
7. Create Button
4. $ FFile Database:
1. Office Button > 2. Open ( Ctrl+O ) >
3. File G3 (; Drive D) > 4. Select File > 5. Open Button >
2
3
5
5
6
7
4
1
-
4 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center ,. (12
5. FFile Database: 1. Office Button > 2. Close Database
6. @$ 2. Exit Access Button
7. & Password DDatabase: File Database ND Password I (Ex: StudentList.accdb) &U$
1. Office Button > 2. Open ( Ctrl+O ) >
3. File G3 (; Drive D) > 4. Select File > 5. Arrow 3$(U Open Button > 6. Open Exclusive >
1
1
2
1
2
2
-
Access 2007 Basic www.enteritc.com 5
,. (12 Enter Information Technology Center
7. Database Tools Tab > 8. Encrypt with Password Button >
9. & Password ' Password @ Database > 10. & Verify ' Password U]J) > 11. OK Button >
12. Office Button > 13. Close Database
3
4
5
6
7 8
9
10 11
-
6 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center ,. (12
8. & Password DDatabase: 1. Office Button > 2. Open >
3. File G3 (; Drive D) > 4. Select File > 5. Arrow 3$(U Open Button > 6. Open Exclusive >
7. & Enter database password ' Password J File Database > 8. OK Button >
9. Database Tools Button > 10. Decrypt Database Button >
11. & password ' Password File > 12. OK Button
13. Office Button > 14. Close Database
2
1
3
4
5
6
7 8
9 10
11
12
-
Access 2007 Basic www.enteritc.com 7
,. (12 Enter Information Technology Center
9. Objects MMicrosoft Office Access 2007:
3&a Microsoft Office Access 2007 F objects M/@Y1H& : > Tables > Queries > Forms > Reports > Macros > Module
10. G: > S File Database ''a StudentListExcercise.accdb > Save I& Drive D: > ' Password File Database
11. :
1. Microsoft Office Access 2007? 2. Database ? 3. Microsoft Office Access 2007 F extension Z?
13
14
-
8 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center ,. (12
-
Access 2007 Basic www.enteritc.com 9
Enter Information Technology Center
2: Tables
1. Table:
Table Object Microsoft Access %:: > Field : Table (, > Record : Table -. (02(3
2. ! TTable: (6 File Database 89 StudentList.accdb 1. Create Tab > 2. Table Design >
3. 89 Field Name Data Type @(B >
4. % Primary Key > 5. Primary Key >
2
1
3
-
10 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
6. Save >
7. ( Table Name %89 Q TableStudentList > 8. OK Button
3. sswitch Table View:
WTable View Z2((2: > Design View
4
5
6
7 8
-
Access 2007 Basic www.enteritc.com 11
Enter Information Technology Center
> Datasheet View
[ switch Design View \ Datasheet View W( Design Tab Home Tab 1. Button _`(kW@(Bqx View > 2. Datasheet View
[ switch Datasheet View \ Design View W( Home Tab 1. Button _`(kW@(Bqx View > 2. Design View
4. IInterface " DDesign View Table:
A. Table Name : -. 89 Table B. Field Name : %89 Field W Table
C. Data Type : ( Field (6 D. Primary Key : Bq[ Table Records
A C
D
1 2
1
2
E
B
-
12 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
E. Field Properties : | \ Data Type
55. DData Type:
$% DData Type: '("',/ /1Text 0 \B 255 0Memo Text 2 65535 0Number 2 ( 8 Byte Date/Time B 8 Byte Currency Dollars 8 Byte AutoNumber %%\ Field %( 4 Byte Yes/No 4 Byte OLE Object (Object Linking and Embedding) 4 GB Hyperlink Address Email , Website 2 KB Attachment files Attach 3 Email
Lookup Wizard List
6. Field Properties Text:
> Field Size : 0W Field 255 Q Field 2 255 0> Format : \0
>>@ 0, @ [blue]) > Input Mask : Text (
012 603 314 (012) 603-314 > Caption : %-. Field Name
Field Name 89 DOB Caption 89 Date Of Birth > Default Value : (\ Table
Field Name 89 PlaceOfBirth Phnom Penh >Validation Rule: %|
Male or Female >Validation Text : -. Message
"Invalid Input!"
-
Access 2007 Basic www.enteritc.com 13
Enter Information Technology Center
> Required : Field Yes = %@W Field (6, No = ,9 2
> Text Align : 0W Field General, Left, Right, Center, Distribute
7. Field Properties Number:
> Field Size : ((6((2
Byte, Integer, Long Integer Single, Double, Decimal [
> Format : \ 000 =, "R "#,##0.00 = $#,##0.00[Blue]; -$#,##0.00[Red]; $0[Green];"Null"[Yellow]
23 '(4. 0, q0 x(6-. # (6-. $ Dollars + , - %_` % %_`
>Decimal Places: W@(B[
8. Field Properties Date/Time:
-
14 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
> Format : (B General Date, Long Date, Long Time
23 '(4: _` / c General Date d (1 31) dd (01 31) ddd 02 (Sun Sat)dddd 02 (Sunday Saturday)ddddd Short Datedddddd Long Datew 2 (Sunday =1 Saturday= 7)ww 2 (1 53)m (1 12)mm (01 12)mmm 0 (Jan Dec)mmmm 0 (January December) q ( (1 4) y 1 (1 366) yy (01 99)yyyy (0100 9999)h 1 (0 23)hh 1 (00 23)n 1 (0 59)nn 1 (00 59)s 1 (0 59)ss 1 (00 59)ttttt Long time
> Show Date Picker: -. Date Picker W@ Field
9. Field Properties AutoNumber :
-
Access 2007 Basic www.enteritc.com 15
Enter Information Technology Center
> New Values : (6W Field Increment, Random (6W Field Increment, Random
110. 6! TTableStudentList:> TableStudentList switch \ Datasheet View @(B:
11. 6! TTableSubjects:> Table 89 Q TableSubjects Design View @(B::
> switch \ Datasheet View @(B::
12. :1.. Table? 2. [ Table (6? 3. 89 Data Type W Microsoft Office Access 2007?
-
16 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
-
Access 2007 Basic www.enteritc.com 17
Enter Information Technology Center
3:
Lookup Wizard Import Table
1. Lookup Wizard: Lookup Wizard Data Type List !"$%&,- 0 Table 5 Lookup 6 Table %5 Lookup !
> Lookup : Value ; Field Lookup 6 Value Table @ Field
2. ! Lookup "$ VValue %' Field )* : ; TableStudentList ! Field BC G Gender $JK Male Female OP Q5 Lookup R$ 1. Field Name BC Gender Data Type Arrow > 2. Data Type $ Lookup Wizard >
-
18 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
3. I will type in the values that I want. > 4. Next Button >
5. ;^% Col1 JK Male, Female ^% > 6. Next Button >
7. Finish Button
3
4
6
5
1
2
-
Access 2007 Basic www.enteritc.com 19
Enter Information Technology Center
33.! Lookup "+ VValue Table ."' FField: ; TableStudentList ! Field BC G PlaceOfBirth $BC } ~ 5 Lookup : Table =BC }~ }^%:: 1. Create Tab > 2. Table Design >>
3. ; Design View ^% >
4. Save Button >
5. BC G TableProvinces > 6. OK Button >
7
1
2
3
5
4
-
20 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
7. = switch R% Datasheet view ,- ^% >
8. Mouse "} TableStudentList > 9. Design View >
10. Field Name BC PlaceOfBirth Data Type Arrow > 11. Data Type $ Lookup Wizard >
12. I want the lookup column to look up the values in a table or query > 13. Next Button >
7
10
11
9
5 6
8
-
Access 2007 Basic www.enteritc.com 21
Enter Information Technology Center
14. ; View Table ;^ Select TableProvinces > 15. Next Button >
16. Field(s) Available Fields( ProvinceName) R Selected Fields > 17. Next Button >
18. ; 1 0 ProvinceName Q Values List $ > 19. Next Button >
12
13
14
16
7
15
-
22 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
20. Next Button >
21. Finish Button >
22. Yes Button
44. IImport Table: Import Table " Copy Table Database @ Database % & Records R Table C5!% J Table ;
18
19
15
20
21
22
-
Access 2007 Basic www.enteritc.com 23
Enter Information Technology Center
Database 6^%5% Import Table BC G TableStudentList file Database BC StudentList.accdb R file Database C BC G NewStudentList.accdb }^%: 1. Office Button > 2. New ( Ctrl+N )>
3.; File Name: BC File (6 NewStudentList.accdb) > 4. Browse Button Q5 File >
5. Select Drive O% (Ex: D:\) > 6. OK Button >
7. Create Button
1
5
6
2
3 4
-
24 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
8. External Data Tab > 9. ; Import Group Access >
10. Import > 11. Browse R5= file Database BC G StudentList.accdb >
12. Select Drive O File &; (Ex: D:) > 13. Select File BC StudentList.accdb > 14. OK Button >
2 1
11
10
7
-
Access 2007 Basic www.enteritc.com 25
Enter Information Technology Center
15. OK Button >
16. Table Tab > 17. TableStudentList > 18. OK >
19. Close Button
16
17 18
12
13 14
15
-
26 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
55. LLink Table:
Link Table "} Table Database @ Database % & Record R Table C$5!% Table ; Database 6^%5% Link Table BC G TableStudentList $&; file Database CBC NewStudentList.accdb Table BC TableStudentList $&; file Database BC G StudentList.accdb 1. file Database BC NewStudentList.accdb External Data Tab > 2. ; Import Group Access >
3. Link.. > 4. Browse.. R5= file Database BC G Students.accdb >
5. Select Drive O File &; (Ex: D:) > 6. Select File BC StudentList.accdb >
19
1
2
3
4
-
Access 2007 Basic www.enteritc.com 27
Enter Information Technology Center
7. OK Button >
8. TableStudentList > 9. OK Button
6. 1$ TTableStudyList:
> : Table BC G TableStudyList Design View ^%::
> switch R Datasheet View ,- ^%::
9 8
7
5 6
-
28 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
-
Access 2007 Basic www.enteritc.com 29
Enter Information Technology Center
77. : 1. }G Lookup Wizard? !C ? 5? 2.. Import Table Q55? 3.. Link Table ! Import Table }?
-
30 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
-
Access 2007 Basic www.enteritc.com 31
Enter Information Technology Center
4:
Relationship Table
1. Relationship:
Relationship Table Table Table '(() , Microsoft Access Relationship .(::
> One to One > One to Many > Many to Many
2. Relationship ! OOne to One:
Relationship One to One Record , Primary Table (Table 1) Record , Related Table (Table 2) Relationship ' Table (7:
> Primary Table . Field 8. Primary Key Related Table . Field 8. Foreign Key (Foreign Key Field . Primary Key Field . Data Type, Field Name > ( Tables . Relationship (?()B. Orphan Record (Orphan Record Records E8., Related Table HI ' Record 8, Primary Table)
S( Relationship ( One to One Table .UI TableStudent TableStudentInfo:
1. Database Tools Tab > 2. Relationships >
3. Show Table
1 2
1 1
1 1
1 1
1 1
-
32 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
4.. Select TableStudent > 5. Add Button >>
6.. Select TableStudentInfo > 7. Add Button >>
8. Close Button >
9. Select StudentID , TableStudent q StudentID TableStudentInfo > 10. x zx {| Tick > 11. Create Button >
3
4
5
6
7
8
9
10
11
-
Access 2007 Basic www.enteritc.com 33
Enter Information Technology Center
12. x Relationship ( One to One Table
(, Relationship ( One to One , Table
3. Relationship ! OOne to Many:
Relationship One to Many Record , Primary Table Records (, related Table Relationship ' Table (7::
> Primary Table . Field 8. Primary Key H Related Table ). Field 8. Foreign Key > Field (?. Data Type Field Name > ( Table . Relationship (?()B. Orphan Record
S( Relationship ( One to Many Table .UI TableStudentList TableStudyList
1
Many
1 Man
y
12
-
34 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
Relationship Database Tools > Relationships 1. Show Table >
2. Select TableStudentList > 3. Add Button >
4. Select TableStudyList > 5. Add Button >
6. Close Button >
7. Select StudentID , TableStudentList q StudentID TableStudylist > 8. x zx {| Tick >> 9. Create Button >
1
2
3
4
5
6
-
Access 2007 Basic www.enteritc.com 35
Enter Information Technology Center
10. x Relationship ( One to Many Table
4. Relationship ! MMany to Many:
Relationship Many to Many Records (, Primary Table Records ( , Related Table ' Relationship ((?) Relationship One to Many q(? Table I
-
36 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
Relationship Tables qzx ) (? Table I.UI B TableStudyList
Relationship Database Tools > Relationships 1. Show Table >
2. Select TableStudentList > 3. Add Button >
Many
1
1
1
-
Access 2007 Basic www.enteritc.com 37
Enter Information Technology Center
4. Select TableStudyList > 5. Add Button >
6. Select TableSubjects > 7. Add Button >
8. Close Button >
9. Select StudentID , TableStudentList q StudentID TableStudylist > 10. x zx {| Tick >> 11. Create Button >
2
3
4
5
8
6
7
-
38 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
12. Select SubjectID , TableSubjects q SubjectID TableStudylist > 13. x zx {| Tick >> 14. Create Button >
15. x Relationship ( One to Many Table
5. #$:
> Enforce Referential Integrity: .B Record ( , Field . Primary Key Primary Table Record . Record Cascade Update Related Field: .B( , Field . Primary Key Primary Table (, Field Related Table q( > Cascade Delete Related Records: .B Record , Primary Table Record , Related Table q(
9
10
11
12
13
14
15
-
Access 2007 Basic www.enteritc.com 39
Enter Information Technology Center
6. :
1. B Relationship? .I (?? 2. Relationship ( One to Many (7.? 3. Foreign Key Orphan Record? 4. , Relationship ( Many to Many (??
5. Enforce Referential Integrity, Cascade Update Related Field, Cascade Delete Related Records?
-
40 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
-
Access 2007 Basic www.enteritc.com 41
Enter Information Technology Center
5:
Query
1. Table:
Query Object Microsoft Access # ' )::
> Simple Query > Total Query > Crosstab Query > Find Duplicates Query > Find Unmatched Query > Update Query > Append Query > Delete Query
2. #% Simple Query:
Query -./# '.02 072 ' Query ; 2. Query Design >
3. { |{ Show Table '?@ TableStudentList > 4. Add Button >
1 2
-
42 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
5. Close Button >
6. Double Click StudentID, FullName, Gender, Class >
7. 2 Field Class Row Criteria \ 10A Row Or \ 10B >
8. Run ; >
9. { )?@ # 2 Save >
3
4
5
6
7
8
-
Access 2007 Basic www.enteritc.com 43
Enter Information Technology Center
10. .- R QuerySimple > 11.. OK Button
02 ?@ 2^ Query Wizard::
1. Create Tab > 2. Query Wizard >
3. Simple Query Wizard > 4. OK Button >
5. Table/Queries TableStudentList > 6. Available Fields: Double Click StudentID, FullName, Gender, Class >
9
1 2
3
4
-
44 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
7. Next Button >
8. { .- Query R QueryStudent10A10B > 9. Modify the query design > 10. Finish Button >
11. 2 Field Class Row Criteria \ 10A Row Or \ 10B >
12. Run ; >
5
6
7
8
9
10
11
12
-
Access 2007 Basic www.enteritc.com 45
Enter Information Technology Center
13. { )?@ # 2 Save
33. ' Interface Query:
> Field Lists : { Tables ?@ Tables ' Query > Design Grid : .# Fields 2.
Field : - Field Table : ?@ - Table Field Sort : P Field . . ?@ Show :
-
46 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
>= # - StudentID >= 1 , Not # / StudentID 5 And # 00 and StudentID
1 2
3
4
-
Access 2007 Basic www.enteritc.com 47
Enter Information Technology Center
5. Tables/Queries TableStudentList > 6. Available Fields: Double Click StudentID, FullName, Gender, Class ; Fields 0 Selected Fields >
7. { Tables/Queries TableStudentList > 8. Available Fields: Double Click Point ; Field Selected Fields >
9. Next Button >
10. Summary > 11. Summary Options Button >
5
6
7
8
9
-
48 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
12. Tick Sum, Avg, Min, Max > 13. OK Button >
14. Next Button >
15. { .- Query R QueryTotalPoints > 16. Modify the query design > 17. Finish Button >
18. { Row Field -
Sum of Points: Point Total: Points
10 11
12 13
14
15
16
17
-
Access 2007 Basic www.enteritc.com 49
Enter Information Technology Center
Avg of Points Average: Points Min of Points: Points Minimum: Points Max of Points: Points Maximum: Points >
19. { . Cursor Column -7 Maximum: Points > 20. Mouse Build >
21. { |{ Expression Builder '?@ 72 Result: iif([Average]>=5,"Pass","Fail") > 22. OK Button >
23. Row Total Result Expression >
24. { . Cursor Column -7 Result > 25. Mouse Build >
18
19
20
21 22
23
24
25
-
50 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
26. { |{ Expression Builder '?@ 72: Mention: iif([Average]>=9,"Excellent",
iif([Average]>=8,"Very Good", iif([Average]>=7,"Good", iif([Average]>=6,"Fair", iif([Average]>=5,"Medium", "Weak"))))) >
27. OK Button >
28. Row Total Mention Expression >
29. { Design Tab Run >
30. { )?@ 72
55. ::
1. Query )? 2. P|{ Interface Query? 3. Simple Query Total Query / ?
28
29
-
Access 2007 Basic www.enteritc.com 51
Enter Information Technology Center
6:
Queries
1. Crosstab Query:
Query !$:: A. Row Heading: ' B. Column Heading: ' C. Value: Row Heading Column Heading
,/ Query Crosstab Query 3456: 1. Create Tab > 2. Query Wizard >
3. Crosstab Query Wizard > 4. OK Button >
5. Table Field '/ Crosstab TableStudyList > 6. Next Button >
A
C
B
1 2
3
4
-
52 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
7. Field ' Row Heading StudentID GM Avialable Fields ! Double Click ,! Selected Fields > 8. Next Button >
9. Field ' Column Heading SubjectID > 10. Next Button >
11. Field ' Value GM Row Heading Column Heading Points GM Fields > 12. M Functions: Function [ Sum > 13. Next Button >
5
6
7
8
9
10
-
Access 2007 Basic www.enteritc.com 53
Enter Information Technology Center
14. !_`f CrosstabQuery > 15. Modify the design > 16. Finish Button >
17. Design Tab > 18. Show Tables >
19. Select TableStudentList > 20. Add Button >
21. Close Button >
11
12
13
14
15
16
17 18
19
20
-
54 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
22. M TableStudentList Double Click M FullName, Gender, Class ,}~ Data Grid >
23. M FullName, Gender Class Row Crosstab Row Heading , Row Heading >
24. ! Mouse Pointer Header Total Of Points > 25. [!M Column 63 >>
26. M Design Tab Run , >
21
22
23
24 25
26
-
Access 2007 Basic www.enteritc.com 55
Enter Information Technology Center
27. $ 6
22. Find Duplicates Query:
' Record M Field Table [6 Query , Record M Field Class TableStudentList 1. Create Tab > 2. Query Wizard >
3. Field Duplicates Query Wizard > 4. OK Button >
5. Table TableStudentList > 6. Next Button >
7. M Available Fields Double Click Field Class > 8. Next Button >
27
1 2
3
4
5
6
-
56 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
9. Fields StudentID, FullName, Gender Available Fields: }~ Additional Query Fields: > 10. Next Button >
11. !_` Query f FindDuplicatesQuery > 12. Finish Button >
13. 6
7
8
9
10
11
12
13
-
Access 2007 Basic www.enteritc.com 57
Enter Information Technology Center
33. Find Unmatched Query:
' Records [M Primary Table `$ Records M Related Table [6 Query , _`M TableStudentList ` M TableStudyList 1. Create Tab > 2. Query Wizard >
3. Find Unmatched Query Wizard > 4. OK Button >
5. Primary Table TableStudentList > 6. Next Button >
7. Related Table TableStudyList > 8. Next Button >
1 2
3
4
5
6
7
8
-
58 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
9. Fields Primary Key Relationship Table [M[ StudentID > 10. Next Button >
11. Fields StudentID, FullName, Gender Class Available Fields: }~ Selected Fields: > 12. Next Button >
13. !_`f FindUnmatchedQuery > 14. Finish Button >
15. $ 6
9 9
10
11
12
13
14
15
-
Access 2007 Basic www.enteritc.com 59
Enter Information Technology Center
44. Make-Table Query:
Query Table / Table ` 4[6 Records Mf 10A Table `!_`f Class 10A 1. Create Tab > 2. Query Wizard >
3. Simple Query Wizard > 4. OK Button >
5. M Tables/Queries TableStudentList > 6. }~ Fields [ Available Fields: Selected Fields: >
7. Next Button >
8. M !_`f QueryClass10A >
1 2
3
4
5
6
7
-
60 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
9. Modify the query design > 10. Finish Button >
11. $ Row Criteria Field Class 10A >
12. M Design Tab Make Table >
13. M Table Name _` Table `f TableClass10A > 14. OK Button >
15. M Design Tab Run >
16. Rows / Table ` Yes Button
5. Update Query:
' Update Record Table [6 G 2 ~ SubjectID 1 Mathematic SubjectID 1 5
8
9
10
11
12
13 14
15
16
-
Access 2007 Basic www.enteritc.com 61
Enter Information Technology Center
1. Create Tab > 2. Query Design >
3. TableStudyList > 4. Add Button > 5. $ Close Button >
6. TableStudyList Double Click M SubjectID Points ,}~ ! Data Grid >
7. M Design Tab Update >
8. Row Criteria Field SubjectID } 1 ~ Mathematic > 9. Row Update To Field Points [Points] + 2 > 10. Row Criteria Field Points < 5 >
11. M Design Tab Run >
1 2
3
4 5
6
7
8 9
10
-
62 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
12. $ Update Yes Button >
13. $ Save >
14. !_`f UpdateQuery > 15. OK Button
6. Append Query:
' Table Add G Table ` Query 4 Fields [6 Tables [ Data type [f 10B TableStudentList Add G TableClass10A 1.. Create Tab > 2. Query Design >
3. $ Show Table TableStudentList > 4. Add Button > 5. Close Button >
11
12
13
14 15
2
3
4 5
1
-
Access 2007 Basic www.enteritc.com 63
Enter Information Technology Center
6. Double Click M StudentID, FullName, Gender, Class ,}~ Data Grid >
7. M Design Tab Append >
8. M Table Name: TableClass10A > 9. OK Button >
10. M Row Criteria Field Class 10B >
11. M Design Tab Run >
12. $ Append Yes Button >
13. Save >
7
8 9
10
11
12
13
-
64 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
14. !_`f AppendQuery > 15. OK Button
7. Delete Query:
' Record Table 4 4[6 Record StudentID 11 TableStudentList
1. Create Tab > 2. Query Design >
3. $ Show Table TableStudentList > 4. Add Button > 5. Close Button >
6. Double Click M StudentID ,}~ Data Grid >
7. M Design Tab Delete >
14 15
2
3
1
4 5
6
7
-
Access 2007 Basic www.enteritc.com 65
Enter Information Technology Center
8. M Row Criteria Field StudentID } 11 >
9. M Design Tab Run >
10. $ Delete Yes Button >
11. $ Save >
12. !_`f DeleteQuery > 13. OK Button
8. ! QQuerySalaryList :
8
9
10
11
12 13
-
66 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
99. :
1. 3f Crosstab Query ? 2. Find Duplicates Query Find Unmatched Query? 3. Make-Table Query Append Query 3?
-
Access 2007 Basic www.enteritc.com 67
Enter Information Technology Center
7:
# Forms
1.: Form object Ms Access 2007 Interface !"#%& + Table !- Table 456# Form 8:
> AutoForm:Columnar > Auto Columnar Form with Spit Form > Form Design > Form Wizard
2.# AutoForm:Columnar: # Form ; AutoForm:Columnar 8 Column # B !- Form Record GH KO# Form QU V FormStudentList ; AutoForm:Columnar YZ#K TableStudentList 1. select TableStudentList O# All Access Objects > 2. Create Tab > 3. Form >
4. kq Save >
5. YQU V FormTableStudentList1 > 6. OK Button >
1
2 3
4
-
68 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
7. kq ~O# B!- record StudentID 001 6 record Students Navigation Buttons
First Record :Z record
Previous Record :Z record record
Current Record : !- record record
Next Record :Z record # record
Last Record :Z record #
New (blank) Record : record U
Filter : Filter
Search : Z record !- Form
5
6
7
-
Access 2007 Basic www.enteritc.com 69
Enter Information Technology Center
3.# Auto Columnar Form with Spit Form:
#; Auto Columnar Form with Spit Form 8 # Form ; AutoForm:Columnar B!- DataSheet O#q Form KO# FormStudentList2 ; Auto Columnar Form with Spit Form 1. select TableStudentList > 2. Create Tab > 3. Split Form >
4. kq Save >
5. YQU V FormStudentList2 > 6. OK Button >
7. ~ O#
1
2 3
4
5
6
-
70 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
4.# Form % Form Design:
B# Form 4 Design View BZ# Form +;#K FormBiography O#:
1. Table QU TableBiography Create Tab >
2. Table Design >
3. Design View Table O#>
7
1
2
-
Access 2007 Basic www.enteritc.com 71
Enter Information Technology Center
4. Save >
5. YQU V TableBiography > 6. OK Button Table >
7. kq Form QU V FormBiography Create Tab > 8. Form Design >
9. Mouse 46 Form Selector > 10. Properties >
11. kq 8q Property Sheet !- O46 Form > 12. Record Source TableBiography > 13. kq Tools Group Add Existing Fields Button >
3
4
5 6
7
8
9
10
-
72 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
14. kq 8q Field List !- O46 Form Fields Kk6 Yq Form #O# >
15. Control Group Option Group > 16. B Form >
11
12
13
14
15
16
-
Access 2007 Basic www.enteritc.com 73
Enter Information Technology Center
17. kq B!- q Option Group Wizard Male Female Y Row O# > 18. kq Next Button >
19. Yes, the default choice is: Male > 20. Next Button >
21. 6 Next Button >
22. Save the value for later use > 23. Next Button >
24. Option buttons Etched > 25. Next Button >
17
18
19
20
21
22
23
-
74 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
26. YQU V Gender + > 27. Finish button >
28. select border Option Group Gender > 29. Tools Group Property Sheet > 30. kq q Property Sheet !- Name Property YQU V optGender >
31. kq Control Group select TextBox 32. # Photo O# >
24
25
26
27
28
29
30
-
Access 2007 Basic www.enteritc.com 75
Enter Information Technology Center
33. Y Cursor Label Textbox 6 QU V Age >
34. select Border Textbox > 35. Property Sheet Name 6 QU B txtAge >
36. Y Cursor Control Source Build Button >
31
32
33
34
35
36
-
76 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
37. kq 8q Expression Builder !- 6 O# > = Int( (Now() - [DateOfBirth]) / 365.25 ) 38. OK Button >
39. Property Sheet Format # "Years" >
40. kq Control Group select TextBox > 41. # Age O# >
42. Y Cursor Label Textbox 6 QU Retired >
43. select Border Textbox >
37 38
39
40
41
42
-
Access 2007 Basic www.enteritc.com 77
Enter Information Technology Center
44. Property Sheet 6 QU B txtRetired Name >
45. Y Cursor Control Source Build Button >
46. kq 8q Expression Builder !- 6 O# > = iif([optGender]=1,[DateOfBirth]+60*365.25,[DateOfBirth]+55*365.25) 47. kq OK button >
48. Property Sheet Format mm/dd/yyyy >
43
44
45
46 47
-
78 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
49. Switch +# Form View Y View Arrow > 50. Form View >
51. kq Z#%& O# >
52. Y Photo: Mouse 46 Photo: > 53. Insert Object >
48
49 50
51
-
Access 2007 Basic www.enteritc.com 79
Enter Information Technology Center
54. kq Create from File > 55. Browse button +Zq >
56. ; > 57. Select > 58. OK Button >
59. Save >
60. YQU V FormBiography > 61. OK Button >
52
53
54 55
56
57
58
59
-
80 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
62.O#
5.#% Form Wizard:
# Form ; Form Wizard B8 Form Y B6 !" 6 Z# design Form K O# FormTariff
TableTariff 6O# 1. Create Tab >
2. Table Design >
3. Design View O# >
60 61
62
1
2
-
Access 2007 Basic www.enteritc.com 81
Enter Information Technology Center
4. save >
5. YQU V TableTariff 6. OK Button Table >
7. kq Create Tab >
8. More Forms > 9. Form Wizard >
10. Table/Queries TableTariff > 11. Available Fields % fields KY Selected Fields > 12. Next Button >
13. Tabular > 14. Next Button >
3
4
5 6
7
8 9
10
11
12
-
82 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
15. Layout Form ( Office) > 16. Next Button >
17. YQU V FormTariff > 18. Modify the forms design > 19. Finish Button >
20. Controls Group TextBox > 21. B O Form O# >
13
14
15
16
17
18
19
20
21
-
Access 2007 Basic www.enteritc.com 83
Enter Information Technology Center
22. Y Cursor Label TextBox 6 QU Exchange Rate >
23. select Border TextBox Exchange Rate > 24. Property Sheet Name 6 txtExchangeRate > 25. Format #,##0.00 \R >
26. kq TextBox Form O46 Tax% >
27. Label Text Box >
28. select Border TextBox > 29. kq Property Sheet Name 6 txtUnitPriceWithTax > 30. Format Currency >
22
23 24 25
26
27
-
84 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
31. kq Control Source Build button >
32. 6 > =([UnitPriceNoTax]*[Unit])+([UnitPriceNoTax]*[Unit]*[Tax%]) 33. OK button >
34. Controls Group Label > 35. BO46 Label Tax% Label V UnitPriceWithTax >
36. kq TextBox Form O46 txtUnitPriceWithTax >
28
29 30
31
32 33
34
35
-
Access 2007 Basic www.enteritc.com 85
Enter Information Technology Center
37. Label B >
38. select Border TextBox > 39. kq Property Sheet Name 6 txtUnitPriceInRiels > 40. Format #,##0.00\R >
41. kq Y Cursor Control Source Build button >
42. 6 > =[txtUnitPriceWithTax]*[txtExchangeRate] 43. OK button >
36
37
38
39 40
41
-
86 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
44. Controls Group Label O46 Label txtUnitPriceWithTax Label V UnitPriceInRiels >
45. Switch +# Form View Y View Arrow > 46. Form View >
47. kq %& O#
42 43
44
45
46
47
-
Access 2007 Basic www.enteritc.com 87
Enter Information Technology Center
66. :
1. 6V Form ? 2. 8456Z# Form? 3. Navigation Buttons 8 Button Z-? ?
-
88 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
-
Access 2007 Basic www.enteritc.com 89
Enter Information Technology Center
8:
Forms
1. Chart !" Form:
Form Display "$ Display Chart
".0: 1. TablePopulation 3 Create Tab > 2. Table Design >
3. field name data type 7 table >
4. ;< Save > 5. 3?@ A TablePopulation 7" >
1 2
3
-
90 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
6. OK Button >
7. No ILM A Table Q@ Primary key ;< Close Table R
8. Create Tab > 9. More Forms > 10. Form Wizard >
11. Z" Tables/Queries TablePopulation > 12. ]M fields RegionName, Area(km
2), Populatoin, Density $Z" Available Fields: 3" Selected Fields: > 13. Next Button >
14. Tabular > 15. Next Button >
4
5 6
7
8
9 10
11
12
13
14
15
-
Access 2007 Basic www.enteritc.com 91
Enter Information Technology Center
16. w style form " office > 17. Next Button >
18. 3?@ Form A FormPopulation Z" Modify forms design > 19. Finish Button >
20. select Textbox Density > 21. Design Tab >
22. Property Sheet ;< $|< Property Sheet }~ > 23. Z" Format #,##0.00 P/km
2 > 24. 3 Cursor Z" Control Source Build Button >
17
18
19
20
21
-
92 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
25. " Expression Builder = [Population] / [Area(km2)] > 26. OK Button >
27. TextBox Label 7. >
28. TextBox RegionName Density >
29. Z" Design Tab TextBox Z" Form Footer > 30. Z" Label 3?@ A Add Total Sap Lake 3000km
2 >
22
23 24
25 26
27
28 28
-
Access 2007 Basic www.enteritc.com 93
Enter Information Technology Center
31. select TextBox > 32. Z Property Sheet " Name 3?@ A txtSumArea(km
2) > 33. Z" Control Source Build >
34. " Expression Builder = sum([Area(km2)])+3000 > 35. OK Button >
36. TextBox Z" Form Footer > 37. ;< Label R >
29 30
31
32 33
34 35
36 37
-
94 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
38. select TextBox > 39. Z Property Sheet " Name 3?@ A txtSumPopulation > 40. Z" Control Source Build >
41. " Expression Builder = sum([Population])+3000 > 42. OK Button >
43. View Arrow > 44. Form View I Switch 7 Form View >
45. ] " >
38
39 40
41 42
43 44
45
-
Access 2007 Basic www.enteritc.com 95
Enter Information Technology Center
46. View Arrow > 47. Design View I switch 7 Design View >
48. ;< Z" Controls Group Chart > 49. Z" Form Footer >
50. ;< }~ |< Z" select TablePopulation > 51. Next Button >
52. ] fields RegionName, Area(km
2), Population, Density " Available Fields: 3" Fields for Chart > 53. Next Button >
46
47
48
49
50
51
-
96 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
54. Column Chart > 55. Next Button >
56. R Population ". 73Z SumOfArea(km2) >
57. Finish Button >
58. Design TextBox $. Chart 7 ;< switch 7 Form View ;
52
53
54
55
56
57
-
Access 2007 Basic www.enteritc.com 97
Enter Information Technology Center
2.$%$& Option Group ( Form:
Option Group control " controls " Form . IZ Form FormTariffInvoice 7 Option Group Control
1. TableTariffInvoice 3 Create Tab >
2. Table Design >
58
1 2
-
98 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
3. field name data type Table >
4. Save > 5. "3?@ A TableTariffInvoice > 6. OK Button Table R>
7. Create Tab > 8. More Forms > 9. Form Wizard >
10. Z" Tables/Queries TableTariffInvoice > 11. ]M fields Code, Item, PriceNoTax, PriceWithTax $Z" Available Fields: 3" Selected Fields: > 12. Next Button >
13. Columnar > 14. Next Button >
3
4
5 6
7
8 9
10
11 12
-
Access 2007 Basic www.enteritc.com 99
Enter Information Technology Center
15. w style form " office > 16. Next Button >
17. 3?@ A FormTariffInvoice Z"> 18. Modify forms design > 19. Finish Button >
20. Z Design Tab " Control Group Option Group > 21. Option Group Z". Form >
13
14
15
16
17
18
19
-
100 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
22. ;< $|< wizard }~ Z" Label Names > 23. Next Button >
24. Yes, the default choice is: 0% > 25. Next Button >
26. 7 Option Group > 27. Next Button >
28. Next Button >
20
21
22 23
24
25
26
27
-
Access 2007 Basic www.enteritc.com 101
Enter Information Technology Center
29. Next Button >
30. 3 Label A Taxation > 31. Finish Button >
32. select Option Group Taxation > 33. Property Sheet > 34. Z" Name 3?@ Taxation >
35. select TextBox PriceWithTax > 36. " Property Control Source Build >
28
29
30
31
32
33
34
-
102 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
37. " Expression Builder =[PriceNoTax]+[PriceNoTax]*[Taxation]/100 > 38. OK Button >
39. switch 7 Form View I] " > 40. Z Taxation I
3. Main Form Sub Form:
Form }~ $ Main Form Sub Form Form $;Q" " Table "I Form
Table ;< M relationship 7 Tables Form 73 Tables 1 TableStudentSheet 2 TableAttendantSheet
35
36
37 38
39
40
-
Access 2007 Basic www.enteritc.com 103
Enter Information Technology Center
1. TableStudentSheet 3 Create Tab >
2. Table Design >
3. field name data type 7 Table >
> 3 Primary Key Z StudentID > Data Type StudentID Format 0000 > Z Data Type Gender Lookup Wizard 3 Male Female
4. Save > 5. "3?@ A TableStudentSheet > 6. OK Button Table R >
7. Create Tab > 8. Table Design I Table >
1 2
3
4
5 6
-
104 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
9. field name data type 7 Table 2 >
> Data Type StudentID Format 0000
10. Save > 11. "3?@ A TableAttendantSheet > 12. OK Button >
13. Z|< LM Primary Key }~ No Button Table R >
14. Database Tools > 15. Relationships >
16. Show Table >
17. double click TableStudentSheet TableAttendantSheet > 18. Close Button >
7 8
9
10
11 12
13
14 15
16
-
Access 2007 Basic www.enteritc.com 105
Enter Information Technology Center
19. R field StudentID " TableStudentSheet 73Z field StudentID TableAttendantSheet >
20. Z|< Edit Relationships }~ Tick 3 > 21. Create Button >
22. Save Relationships R >
23. Create Tab > 24. More Forms > 25. Form Wizard >
26. Z" Tables/Queries TableStudentSheet > 27. ] fields Available Fields 3" Selected Field >
17
17
18
19
20
21
22
23
24 25
-
106 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
28.Z" Tables/Queries TableAttendantSheet > 29. ] fields Field StudentID Available Fields 3" Selected Field > 30. Next Button >
31. Next Button >
32. Datasheet > 33. Next Button >
34. Office " List >
26
27
28
29 30
31
32
33
-
Access 2007 Basic www.enteritc.com 107
Enter Information Technology Center
35. Next Button >
36. Z" Form 3?@ A FormStudentSheet > 37.Z" Subform 3?@ A FormAttendantSheetSubform > 38. Modify the forms design > 39. Finish Button >
40. < Form Footer Sub Form > 41. TextBox < From Footer Sub Form > 42. Label 3?@ A Total >
43. select TextBox >
34
35
36 37
38
39
40 41 42
-
108 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
44. Property Sheet > 45. Z" Name 3?@ A txtPresence > 46. Z Control Source Build >
47. Z" Expression Builder = count([Presence]) > 48. OK Button >
49. TextBox Z. txtPresent Form Footer SubForm > 50. Label R >
51. select Z TextBox Property Sheet Z" Name 3?@ A txtAbsence > 52. Z" Control Source Build >
43
44
45 46
47 48
49 50
-
Access 2007 Basic www.enteritc.com 109
Enter Information Technology Center
54. Z" Expression Builder =count([Absence]) > 55. OK Button >
56. Save Button >
57. < Form Footer Main Form > 58. TextBox < From Footer Main Form > 59. Label 3?@ A Total >
60. select TextBox >
51
52 53
54 55
56
58 59 57
-
110 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
61. Property Sheet Z" Name 3?@ A MainFormtxtPresence > 62. Z Control Source Build >
63. Z" Expression Builder =[FormAttendantSheetSubform].[Form]![txtPresence] > 64. OK Button >
65. TextBox Z. MainFormtxtPresence Form Footer MainForm > 66. Label R >
67. select Z TextBox > 68. Property Sheet Z" Name 3?@ A MainFormtxtAbsence > 69. Z" Control Source Build >
60
61 62
63 64
65 66
-
Access 2007 Basic www.enteritc.com 111
Enter Information Technology Center
70. Z" Expression Builder =[FormAttendantSheet Subform].Form![txtAbsence] > 71. OK Button >
72. switch 7 Form View ] " > 73.
4.+ Button ! Form:
Z Form Button ILM 7 " FormOrder " Table 1 ?@ A TableOrder TableCustomer Z Form ; Button w
67
68 69
70 71
72
73
-
112 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
1. Table ?@ TableCustomer 3 Create Tab >
2. Table Design >
3. Field Name Data Type >
> Property CustomerID 0000 > Primay Key Field CustomerID
4. save > 5. "3?@ A TableCustomer > 6. OK Button Table R >
7. Table ?@ TableOrder 3 Create Tab > 8. Table Design >
1 2
3
4
5 6
-
Access 2007 Basic www.enteritc.com 113
Enter Information Technology Center
9. Field Name Data Type >
> Property " Format:
CustomerID 0000 ItemID 0000 Unit Price Amount #,##0.00\R
10. save > 11. "3?@ A TableOrder > 12. OK Button >
13. Z|< LM A$ Primary }~ No Button Table R>
14. Database Tools Tab > 15. Relationships Button >
16. Show Table >
7 8
9
10
11 12
13
14 15
-
114 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
17. double click Z TableCustomer TableOrder > 18. Close Button >
19. R field CustomerID " TableCustomer 73Z field CustomerID TableOrder >
20. Z|< Edit Relationships }~ Tick 3 > 21. Create Button >
22. Save Button Relationships R >
23. Create Tab > 24. More Forms > 25. Form Wizard >
26. Z" Tables/Queries TableCustomer >
16
17
18
19
20
21
22
23
24 25
-
Access 2007 Basic www.enteritc.com 115
Enter Information Technology Center
27. ]M Fiels Available Fields 3" Selected Fields >
28. Z" Tables/Queries TableOrder > 29.]M Fiels Field CustomerID Available Fields 3" Selected Fields > 30. Next Button >
31. Next Button >
32. Tabular > 33. Next Button >
29 30
31
32
33
-
116 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
34. Z" Office > 35. Next Button >
36. Z" Form 3?@ A FormOrder > 37. Z" Subform 3?@ A FormOrderSubform > 38. Modify the forms design > 39. Finish Button >
40. Mouse . Z Label FormOrder " Subform > 41. Layout > 42. Remove >
34
35
36 37
38
39
40
41
42
-
Access 2007 Basic www.enteritc.com 117
Enter Information Technology Center
43. Mouse . Z Label FormOrder " Subform > 44. Delete >
45. Z" Subform 3Z Mainform >
46. select Z TextBox Amount > 47. Z"" Property Sheet Control Source Build Button >
48. Z" Expression Builder = [Unit Price] * [Quantity] > 49. OK Button >
44
46
47
43
45
-
118 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
50. " Form Footer Subform > 51. TextBox Z" Form Footer > 52. . ?@ Label 7 Sub Total >
53. ;< select TextBox > 54. " Property Sheet Z" Name 3?@ A txtSubTotal > 55. Z" Format #,##0.00\R > 56. Z" Control Source Build Button >
48 49
50 51 52
53
54 55 56
-
Access 2007 Basic www.enteritc.com 119
Enter Information Technology Center
57. Z" Expression Builder =Sum([Unit Price]*[Quantity]) > 58. OK Button >
59. Save >
60. TextBox Z" Form Footer TextBox txtSubTotal > 61. . ?@ Label 7 Discount >
62. ;< select TextBox > 63. " Property Sheet Z" Name 3?@ A txtDiscount > 64. Z" Format Percent >
58
59
60 61
-
120 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
65. Save >
66. TextBox Z" Form Footer TextBox txtDiscont > 67. . ?@ Label 7 Grand Total >
68. ;< select TextBox > 69. " Property Sheet Z" Name 3?@ A txtGrandTotal > 70. Z" Format #,##0.00\R > 71. Z" Control Source Build Button >
62
63 64
65
66 67
-
Access 2007 Basic www.enteritc.com 121
Enter Information Technology Center
72. Z" Expression Builder =[txtSubTotal]-[txtSubTotal]*[txtDiscount] > 73. OK Button >
74. Save >
75. Button > 76. Z Form >
68
69 70 71
72 73
74
75
76
-
122 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
77. ;< |< Wizard }~ " Catagories Record Navigation > 78. " Actions: Go To First Record > 79. Next Button >
80. Next Button >
81. 3?@ Button A btnFirst > 82. Finish Button >
83. ;< Button Z. btnFirst >
81
82
-
Access 2007 Basic www.enteritc.com 123
Enter Information Technology Center
84. ;< |< Wizard }~ " Catagories Record Navigation > 85. " Actions: Go To Previous Record > 86. Next Button >
87. Next Button >
88. 3?@ Button A btnPrevious > 89. Finish Button >
83
84
85
86
87
88
89
-
124 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
90. ;< Button Z. btnPrevious >
91. ;< |< Wizard }~ Z" Catagories Record Navigation > 92. " Actions: Go To Next Record > 93. Next Button >
94. Next Button >
95. 3?@ Button A btnNext > 96. Finish Button >
91
92
93
94
95
96
-
Access 2007 Basic www.enteritc.com 125
Enter Information Technology Center
97. ;< Button Z. btnNext >
98. ;< |< Wizard }~ Z" Catagories Record Navigation > 99. " Actions: Go To Last Record > 00. Next Button >
01. Next Button >
02. 3?@ Button A btnLast > 03. Finish Button >
01
02
03
-
126 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
04. ;< Button Z. btnLast >
05. ;< |< Wizard }~ Z" Catagories Record Operators > 06. " Actions: Add New Record > 07. Next Button >
08. Next Button >
09. 3?@ Button A btnNew > 10. Finish Button >
05 06
07
08
09
10
-
Access 2007 Basic www.enteritc.com 127
Enter Information Technology Center
11. ;< Button Z. btnNew >
12. ;< |< Wizard }~ Z" Catagories Record Record Operators > 13. " Actions: Delete Record > 14. Next Button >
15. Next Button >
16. 3?@ Button A btnDelete > 17. Finish Button >
12 13
14
15
16
17
-
128 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
18. Save > 19. View Arrow > 20. Form View >
21. ] "
55. :
1. Columnar Tabular ? 2. .A Main Form, Sub Form? Z? 3. $ Button Z"?
18
19 20
-
Access 2007 Basic www.enteritc.com 129
Enter Information Technology Center
9:
Reports
1.:
Report Object Ms Access Print $ ()+ Table / ) Report +) Form 45 Report 6: > Report Design
> Report Wizard > Label
2.& Report ' Report Design:
1. Create Tab > 2. Report Design >
3. Mouse 4. Properties >
5. Properties Sheet >
6. Record Source TableBiography >
1 2
3
4
5
-
130 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
7. Add Existing Fields >
8. K Field TableBiography Field List NQU Design =X >
9. 4 Text Box Lebel QU Design X >
6
7
8
-
Access 2007 Basic www.enteritc.com 131
Enter Information Technology Center
10. (U Design Page Header X > 11. Label >
12. Label ) Page Header > 13. Label ^ Report Biography >
14. Select Lebel > 15. Home Tab >
9
10
11
12 13
-
132 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
16. Font Size fkq Lebel >
17. Save Button > 18. Nw{ ^ ReportBiography > 19. OK Button >
20. View Arrow > 21. Report View > 22. )U X
3.& Report ' Report Wizard:
1. Create Tab > 2. Table Design >
14
15 16
17
18 19
20
21
22
1 2
-
Access 2007 Basic www.enteritc.com 133
Enter Information Technology Center
3. )U 5 Field Name Data Type X >
4. Save Button > 5. Nw{ ^ TableRunningTotal > 6. OK Button >
7. No Button >
8. Create Tab > 9. More Forms > 10. Form Wizard >
11. Tables/Queries TableRunningTotal > 12. Fields ( Available Fields N Selected Fields > 13. Next Button >
14. Tabular > 15. Next Button >
4
5 6
7
8
9 10
11
12
13
14
-
134 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
16. Next Button >
17. Nw{ ^ FormRunningTotal > 18. Modify the forms design > 19. Finish Button >
20. Detail Select Text Box ( >
21. View Arrow > 22. Form View >
15
16
17
18
19
20
-
Access 2007 Basic www.enteritc.com 135
Enter Information Technology Center
23. )U X >
24. Save >
25. Create Tab > 26. Report Wizard >
27. Tables/Queries TableRunningTotal > 28. Fields ( Available Fields N Selected Fields > 29. Next Button >
30. Next Button >
21 22
23
24
25
26
27
28
29
-
136 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
31. 1 Date > 32. Next Button >
33. Layout Tabular > 34. Orientation Portrait > 35. Next Button >
36. Nw{ ^ ReportRunningTotal > 37. Modify the forms design > 38. Finish Button >
39. Text Box Date X >
30
31
32
33 34
35
36
37
38
-
Access 2007 Basic www.enteritc.com 137
Enter Information Technology Center
40. Controls Group Label >
41. Label ) Page Header X
42. Select Label Out > 43. Home Tab > 44. Format Painter >
45. Select Label Balance k copy Label Out N Label Balance > 46. Text Box Datail X 47. Select Label Text Box K >
39
40
41
42
43
44
-
138 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
48. Mouse
49. Control Source =[In] - [Out] > 50. Format Currency >
51. Data Tab > 52. Running Sum Over All >
53. View Arrow > 54. Report View >
45 46 47
48
49 50
51 52
-
Access 2007 Basic www.enteritc.com 139
Enter Information Technology Center
55. X Report View >
56. =k Print ) View Arrow > 57. Layout View >
58. )U 4 Label Text Box (X >
59. Print Preview Button >
53
56
57
58
59
54
-
140 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
60. Print Button >
61. Name Printer f > 62. Print Button >
4.& RReport ' LLabel:
1. Select Table f (: TableStudentList) > 2. Create Tab > 3. Labels >
4. Labels f > 5. Next Button >
61
62
1
2 3
4
5
-
Access 2007 Basic www.enteritc.com 141
Enter Information Technology Center
6. Text appearance Font > 7. Next Button >
8. Prototype label X > 9. Next Button >
10. Field StudentID Available fields N Sort by > 11. Next Button >
12. Nw{ ^ LabelStudentList >13. Modify the forms design > 14. Finish Button >
7
8
9
10
11
12 13
14
-
142 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
15. Select Text Box ID > 16. Control Source Property Sheet Build Button >
17. Expression Builder "ID:" & Format([StudentID],"0000") > 18. OK Button >
19. K Text Box (= >
20. Label X Text Box ( >
21. ^ Student Card Select Label )> 22. Home Tab > 23. Font Size 16 > 24. Align Center >
15 16
17 18
19
20
-
Access 2007 Basic www.enteritc.com 143
Enter Information Technology Center
25. View Arrow > 26. Layout View >
27. Text Box Full Name = >
28. View Arrow > 29. Print Preview >
30. OK Button >
22 23 24
25
26
27
28 29
-
144 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
31. Page Layout Group Page Setup >
32. Print Options Tab Top, Bottom,Left, Right 0.5 >
33. Columns Tab > 34. Number of Columns 4 > 35. Row Spacing Column Spacing 0 > 36. Width 1.8 > 37. Height 1.5 > 38. OK Button >
39. X
30
31
33
32
34 35
36 37
38
-
Access 2007 Basic www.enteritc.com 145
Enter Information Technology Center
-
146 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
-
Access 2007 Basic www.enteritc.com 147
Enter Information Technology Center
10:
Reports
1.! Main Report Sub Report:
Report Main Report Sub Report Report # &() ) Table ), Report . / Table &2 /34 relationship 5 Tables # Report 7# 4. PU fields # Available Fields Y) Selected Field >
5.L) Tables/Queries TableAttendantSheet >
3
4
1
2
-
148 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
6. PU fields # Field StudentID Available Fields Y) Selected Field > 7. Next Button >
8. Next Button >
9. Next Button >
10. Next Button >
11. Layout Outline > 12. Orientation Portrait >
7
31
32
33
10
8
9
-
Access 2007 Basic www.enteritc.com 149
Enter Information Technology Center
13. Next Button >
14. Next Button > 15. Next Button >
16. L)Y{| } ReportStudentSheet > 17. Modify the forms design > 18. Finish Button >
19. Label # Sub Report 5E >
11 12
13
14
15
16
17
18
-
150 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
20. Text Box Study Year Y
21. Text Box Date E >
22. Select Text Box Sub Report # > 23. Gridlines Group Style Arrow > 24. Solid >
19
20
21
-
Access 2007 Basic www.enteritc.com 151
Enter Information Technology Center
25. #2 Report Footer > 26. TextBox 2 Report Footer > 27. Label Y{| } Total >
28. select TextBox . > 29. Property Sheet > 30. L) Name Y{| } txtPresence > 31. L Control Source Build >
28
29
30 31
22
23 24
25 26 27
-
152 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
32. L) Expression Builder = count([Presence]) > 33. OK Button >
34. TextBox L 35. Label >
36. select L TextBox . 37. Property Sheet L) Name Y{| } txtAbsence > 38. L) Control Source Build >
39. L) Expression Builder =count([Absence]) > 40. OK Button >
32 33
49 50
36
37 38
34 35
-
Access 2007 Basic www.enteritc.com 153
Enter Information Technology Center
41. Select Text Box Label #L) Report Footer > 42. Controls Group Line Type Arrow > 43. Solid >
44. Text Box L Label Phnom Penh >
45. L) Text Box =Date() >
46. Label L)
39 40
58 59 57 41
42 43
44
45
-
154 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
42. Controls Group Line > 43. L)
44. Controls Group Line Color Arrow > 45. | >
46. Save Button > 47. View Arrow >
48. Report View &.
-
Access 2007 Basic www.enteritc.com 155
Enter Information Technology Center
2. Link Report "% Form::
5 Report ? link Button Form ,E3 display )L) Report Y display )57 Form 7# Report / Print )57 Record CustomerID / > Report / Discount 57 Discount Form
) Report Invoice E7B 2. Report Wizard >
-
156 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
3. ) Tables/Queries TableCustomer > 4. P4 Fields #) Available Fields 5Y) Selected Fields >
5. ) Tables/Queries TableOrder > 6. P4 Fields # CustomerID ) Available Fields 5Y) Selected Fields > 7. Next Button >
8. Next Button >
9. Next Button >
1
2
3
4
5
6 7
8
-
Access 2007 Basic www.enteritc.com 157
Enter Information Technology Center
10. ) 1 ItemID > 11. Next Button >
12. Layout Layout > 13. Orientation Portrait > 14. Next Button >
15. Next Button >
16. )Y{| } Invoice >
9
11
10
12 13
14
15
-
158 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
17. Modify the reports design > 18. Finish Button >
19. Select Text Box Amount > 20. ) Properties Sheet Control Source Build Button >
21. ) Expression Builder = [Unit Price] * [Quantity] > 22. OK Button >
23. Format #,##0.00 \R >
24. Text Box L Label Sub Total >
16
17
18
19
20
21 22
23
-
Access 2007 Basic www.enteritc.com 159
Enter Information Technology Center
25. Select Text Box & > 26. ) Property Sheet Name Y{| } txtSubTotal > 27. Format #,##0.00 \R >
28. Control Source Build Button >
29. ) Expression Builder =Sum([Unit Price]*[Quantity]) > 30. OK Button >
31. Text Box ) Report Footer
25
26 27
28
29 30
31
-
160 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
32. Select Text Box ) Property Sheet Name Y{| } txtDiscount > 33. Format Percent >
34. Text Box L
35. Select Text Box & > 36. ) Property Sheet Name Y{| } txtGrandTotal > 37. Format #,##0.00 \R >
38. Control Source Build Button >
39. ) Expression Builder =[txtSubTotal]-[txtSubTotal]*[txtDiscount] > 40. OK Button >
32
34
35
36 37
38
33
-
Access 2007 Basic www.enteritc.com 161
Enter Information Technology Center
41. Select Text Box Label #L)) Detail Report Footer > 42. Controls Group Line Type Arrow > 43. Solid >
44. Save Button > 45. View Arrow > 46. Report View >
47.
39 40
41
42 43
44
45 46
-
162 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
48. &2 Double Click FormOrder > 49. Next Recode Button > 50. &2 ?PU ) CustomerID 2
51. Save > 52. View Arrow > 53. Design View >
54. Controls Group Button > 55. &2 L
47
51
53
48
49
50
52
-
Access 2007 Basic www.enteritc.com 163
Enter Information Technology Center
56. &2 2 Wizard ) Categories Report Operations > 57. ) Actions Preview Report > 58. Next Button >
59. Select Invoice > 60. Next Button >
61. Next Button >
54
55
56 57
58
59
60
61
-
164 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
62. )Y{| } btnPreInvoice > 63. Finish Button >
64. View Arrow > 65. Form View >
66. Preview Button >
67. Mouse E Report Tab > 68. Design View >
62
63
64 65
66
67
68
-
Access 2007 Basic www.enteritc.com 165
Enter Information Technology Center
69. Mouse E L Report Selector Properties >
70. ) Property Sheet Record Source Build Button >
71. Mouse Row Criteria 72. Build >
73. ) Expression Builder = Forms![FormOrder]![CustomerID] > 74. OK Button >
75. Close Button > 76. Yes Button >
70
71
72
73 74
75
-
166 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
77. Select Text Box Discount > 78. Control Source Build Button >
79. ) Expression Builder =[Forms]![FormOrder]![FormOrderSubform].[Form]![txtDiscount] > 80. OK Button >
81. Close Button > 82. Save Button >
83. L FormOrder ) Text Box Discount Discount 3 (0.10%) >
76
77
78
79 80
81
82
-
Access 2007 Basic www.enteritc.com 167
Enter Information Technology Center
84. Preview Button >
85. &2 .
-
168 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
33. &:
> Button Preview Y FormStudentSheet Link 5 ReportStudentSheet Y Report display 7 Record StudentID
4. :
1. Report Main Report /Sub Report ? 2. ?. Report / Link 5 Form ?
-
Access 2007 Basic www.enteritc.com 169
Enter Information Technology Center
11: Switchboard Manager
1.:
Switchboard Manger Switchboard # Objects '() Microsoft Office Acess Switchboard +#,-/ uses 23 Click ( Button Object 45+ #, -/)
2. SSwitchboard: 7; Switchboards 1 '>? D Open Form 4# Forms 7E 2 '>? D Open Report 4# Reports H 1. Database Tools Tab > 2. Database Tools Group Switchboard Manger >
3. Yes Button >
4. New Button >
5. )2>? D Open Form > 6. OK Button >
7. New Button >
1 2
3
4
5 6
-
170 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
8. )2>? D Open Report > 9. OK Button >
10. _ + Switchboard ;
3. aadd Items " SSwitchboard:
7; add items q) Switchboards 1 >? D Open Form add Forms q 2 >? D Open Report add Reports q 1. Select vx Open Form > 2. Edit Button >
3. New Button >
4. ) Command Open Form in add Mode > 5. ) Form Form 5 (Ex: FormRunningTotal) >
7
8 9
10
1 2
3
-
Access 2007 Basic www.enteritc.com 171
Enter Information Technology Center
6. ) Text 2 Label q Form (Ex: FormRunningTotal) > 7. OK Button >
8. New Button >
9. ) Command Open Form in add Mode > 10. ) Form Form 5 (Ex: FormBiography) > 11. ) Text 2 Label q Form (Ex: FormBiography) > 12. OK Button >
13. New Button >
14. ) Command Go to Switchboard > 15. ) Switchboard Main Switchboard > 16. ) Text 2 Label (Ex: Back) > 17. OK Button >
18. Close Button >
4 5
6 7
8
9 10 11 12
13
14 15 16 17
18
-
172 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
19. Select vx Open Report > 20. Edit Button >
21. New Button >
22. ) Command Open Report > 23. ) Report Report 5 (Ex: ReportRunningTotal) > 24. ) Text 2 Label q Report (Ex: ReportRunningTotal) > 25. OK Button >
26. New Button >
27. ) Command Open Report > 28. ) Report Report 5 (Ex: ReportBiography) > 29. ) Text 2 Label q Report (Ex: ReportBiography) > 30. OK Button >
31. New Button >
19 20
21
22 23 24 25
26
27 28
29 30
-
Access 2007 Basic www.enteritc.com 173
Enter Information Technology Center
32. ) Command Go to Switchboard > 33. ) Switchboard Main Switchboard > 34. ) Text 2 Label (Ex: Back) > 35. OK Button >
36. Close Button
3.$% Switchboard ' Main Switchboard:
1. Select vx Main Switchboard (Default) > 2. Edit Menu >
3. New Button >
4. ) Command Go to Switchboard > 5. ) Switchboard Open Form > 6. ) Text 2 Label (Ex: Open Form) >
31
32 34 33
35
36
2 1
3
-
174 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
7. OK Button >
8. New Button >
9. ) Command Go to Switchboard > 10. ) Switchboard Open Report > 11. ) Text 2 Label (Ex: Open Report) > 12. OK Button >
13. New Button >
14. ) Command Exit Application > 15. ) Text 2 Label (Ex: Exit) > 16. OK Button >
17. Close Button >
18. Close Button
4 5
6 7
8
9 10 11 12
13
14 15 16
17
-
Access 2007 Basic www.enteritc.com 175
Enter Information Technology Center
4. SStart Up MMain Switchboard:
_ + Switchboard _ 5 Start Up Automatic + #,-/ users 5+ + +2 #( File ;- Switchboard Start Up Automatic )#: 1. Office Button > 2. Access Options Button >
3. ); Current Database > 4. ();# Display Form Switchboard > 5. OK Button >
18
1
2
3
4
5
-
176 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
6. OK Button >
7. _ Close Button ? >
8. _ ? Access ( Open Recent Database >? File Database + Switchboard >
9. ;+
55. :
1. Switchboard Manager? 2. - ,3) Open Form in Add Mode Open Form in Edit Mode ? 3. xvx Open Report Exit Application ?
6
7
8
9
-
Access 2007 Basic www.enteritc.com 177
Enter Information Technology Center
Final Test
1. : 1. Microsoft Office Access 2007? 2. Database ? 3. Table? 4. Data Type " Microsoft Office Access 2007? 5. %() Lookup Wizard? *, -? 9? 6. Link Table *;>" Import Table %? 7. %() Relationship? *, -?9? 8. BCE Relationship - One to Many -F*9? 9. HJH Enforce Referential Integrity, Cascade Update Related Field, Cascade Delete Related Records? 10. Query -V? 11. %() Crosstab Query ? 12. %() Form ? 13. *Z[%9"\] Form? 14. HJH Columnar Tabular ? 15. %() Main Form, Sub Form? _]Vj? 16. Report? 17. Report _]q,?9? 18. q Report -{ Link |\ Form ? 19. Switchboard Manager?
-
178 www.enteritc.com Microsoft Access 2007 Basic
Enter Information Technology Center
2.. :
Enter Center Access 2007 Basic Chapter 1.pdfEnter Center Access 2007 Basic Chapter 2.pdfEnter Center Access 2007 Basic Chapter 3.pdfEnter Center Access 2007 Basic Chapter 4.pdfEnter Center Access 2007 Basic Chapter 5.pdfEnter Center Access 2007 Basic Chapter 6.pdfEnter Center Access 2007 Basic Chapter 7.pdfEnter Center Access 2007 Basic Chapter 8.pdfEnter Center Access 2007 Basic Chapter 9.pdfEnter Center Access 2007 Basic Chapter 10.pdfEnter Center Access 2007 Basic Chapter 11.pdfEnter Center Access 2007 Basic Chapter 12.pdf