Professional Documents
Culture Documents
Khmer Basic Access 2007
Khmer Basic Access 2007
\&]] PRF ^H
1 1
&V; ;M
`F&N \
a &&F JU
&VG]
M
A&]]
PRF
:
&
:
&
:
&
9c d
:
&
9c d
e
(
$$ :
&':
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
,.(
12
$ 1: *56$
a
' pYH
> 3VYYF Database
9&a
F&Z a`
`
& /9 ;^d @ Database ; '
H ( ]
&
'FoH& @`7]ZH&@Y ; 3
]V&3
']k, (
R1'3&
3&ZU71
S pJ& '(p F
9
&3& Y
a Microsoft Office Access 2007 J
&
@ Database
www.enteritc.com
,.(
12
1
2
3.3&
File Name: 'a File (; StudentList.accdb) >
4. Browse Button JZV File >
www.enteritc.com
,.(
12
6. OK Button >
6
7. Create Button
7
4.
$ File Database:
1. Office Button > 2. Open ( Ctrl+O ) >
1
2
3.
File G
3 (; Drive D) > 4. Select File > 5. Open Button >
www.enteritc.com
,.(
12
5.
File Database:
1. Office Button > 2. Close Database
2
6.
@$<1$:
1. Office Button > 2. Exit Access Button
2
7.
& Password Database:
File Database N
D Password I (Ex: StudentList.accdb)
&U
$
1. Office Button > 2. Open ( Ctrl+O ) >
1
2
3.
File G
3 (; Drive D) >
4. Select File >
5. Arrow 3$(U Open Button >
6.
Open Exclusive >
www.enteritc.com
,.(
12
5
6
7. Database Tools Tab >
8. Encrypt with Password Button >
7
8
9. &
Password ' Password @ Database >
10. &
Verify ' Password U]J)
>
11. OK Button >
9
10
11
12. Office Button >
13. Close Database
www.enteritc.com
,.(
12
1
2
3.
File G
3 (; Drive D) >
4. Select File >
5. Arrow 3$(U Open Button >
6.
Open Exclusive >
5
6
7. &
Enter database password ' Password J File Database >
8. OK Button >
7
8
9. Database Tools Button >
10. Decrypt Database Button >
9
10
11. &
password ' Password File >
12. OK Button
11
12
13. Office Button >
14. Close Database
6
www.enteritc.com
,.(
12
13
14
9.Objects Microsoft 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?
www.enteritc.com
,.(
12
www.enteritc.com
2:
Tables
1. Table:
Table Object Microsoft Access
%::
> Field : Table
(,
> Record : Table -.(02(3
2. ! Table:
(6 File Database 89 StudentList.accdb
1. Create Tab > 2. Table Design >
1
2
3. 89 Field Name Data Type @(B >
www.enteritc.com
6. Save >
7
8
10
www.enteritc.com
1
2
2
4. Interface "
Design View Table:
A. Table Name
: -.89 Table
B. Field Name
C. Data Type
D. Primary Key
www.enteritc.com
11
E. Field Properties
'(
"
',/
/1
Text
0 \B
255 0
Memo
Text 2
65535 0
Number
2
( 8 Byte
Date/Time
B
8 Byte
Currency
Dollars
8 Byte
AutoNumber
%%\ Field %
(
4 Byte
Yes/No
4 Byte
OLE Object
4 GB
Hyperlink
2 KB
Attachment
Lookup Wizard
List
: 0W Field
255 Q Field 2 255 0
> Format
: \0
>@ 0, <@ 0, @[red] 0( ( >@ [blue])
: Text (
012 603 314 (012) 603-314
> Caption
www.enteritc.com
> Required
: Field
Yes = %@W Field (6, No = ,92
: 0W Field
General, Left, Right, Center, Distribute
: ((6((2
Byte, Integer, Long Integer Single, Double, Decimal
[
> Format
: \
000 =, "R "#,##0.00 =
$#,##0.00[Blue]; -$#,##0.00[Red]; $0[Green];"Null"[Yellow]
2
3
'(4
0
q
x(6-.
(6-.
Dollars
+,-
%_`
%_`
www.enteritc.com
13
> Format
: (B
General Date, Long Date, Long Time
2
3
'(4
_`
General Date
(1 31)
dd
(01 31)
ddd
0 2 (Sun Sat)
dddd
0 2(Sunday Saturday)
ddddd
Short Date
dddddd
Long Date
2
(Sunday =1 Saturday= 7)
ww
2
(1 53)
(1 12)
mm
mmm
mmmm
((1 4)
1 (1 366)
yy
(01 99)
yyyy
(0100 9999)
1 (0 23)
hh
1 (00 23)
1 (0 59)
nn
1
1
ss
1
ttttt
Long time
(00 59)
(0 59)
(00 59)
14
www.enteritc.com
12. :
1.. Table?
2. [ Table (6?
3. 89 Data Type W Microsoft Office Access 2007?
www.enteritc.com
15
16
www.enteritc.com
3:
Field
> Lookup 6 Value Table @
www.enteritc.com
17
2
3. I will type in the values that I want. >
4. Next Button >
4
5. ;^% Col1 JK Male, Female ^% >
6. Next Button >
6
7. Finish Button
18
www.enteritc.com
7
3.! Lookup "+ Value Table ."
' Field:
; TableStudentList ! Field BCG PlaceOfBirth $BC } ~
5 Lookup : Table B
=
C }~
}^%::
1. Create Tab >
2. Table Design >
1
2
www.enteritc.com
19
5
6
7. = switch R% Datasheet view , - ^% >
7
8. Mouse "} TableStudentList >
9. Design View >
8
9
10
11
12. I want the lookup column to look up the values in a table or query >
13. Next Button >
20
www.enteritc.com
12
13
14. ; View Table ;^ Select TableProvinces >
15. Next Button >
14
15
16. Field(s) Available Fields( ProvinceName) R
Selected Fields >
17. Next Button >
16
7
18. ; 1 0 ProvinceName Q Values List $
>
19. Next Button >
www.enteritc.com
21
18
19
20. Next Button >
15
20
21. Finish Button >
21
22. Yes Button
22
4. Import Table:
Import Table "
Copy Table Database @ Database
% & Records R Table C5!% J Table ;
22
www.enteritc.com
1
2
3.; File Name: BC File (6 NewStudentList.accdb) >
4. Browse Button Q5 File >
6
7. Create Button
www.enteritc.com
23
7
8. External Data Tab >
9. ; Import Group Access >
1
2
11
10
24
www.enteritc.com
12
13
14
15. OK Button >
15
16. Table Tab >
17. TableStudentList >
18. OK >
16
18
17
www.enteritc.com
25
19
5. Link Table:
Link Table "}
Table Database @
Database
% & Record R Table C$5!% Table ; Database
6^%5% Link Table BCG TableStudentList $&
; file
; file Database
Database CBC NewStudentList.accdb Table BC TableStudentList $&
BCG StudentList.accdb
1. file Database BC NewStudentList.accdb External Data Tab >
2. ; Import Group Access >
1
2
3. Link.. >
4. Browse.. R5= file Database BCG Students.accdb >
www.enteritc.com
7. OK Button >
5
6
7
8. TableStudentList >
9. OK Button
6. 1$ TableStudyList:
> : Table BCG TableStudyList Design View ^%::
www.enteritc.com
27
28
www.enteritc.com
7. :
1. }G Lookup Wizard? !C? 5?
2.. Import Table Q55?
3.. Link Table ! Import Table }?
www.enteritc.com
29
30
www.enteritc.com
4:
Relationship Table
1. Relationship:
Relationship
Table Table Table
'(()
, Microsoft Access Relationship .(::
> One to One
> One to Many
> Many to Many
2. Relationship ! One 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 <
, Related Table)
> 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
2
3. Show Table
www.enteritc.com
31
3
4.. Select TableStudent > 5. Add Button >
5
6.. Select TableStudentInfo > 7. Add Button >
7
8. Close Button >
8
9. Select StudentID , TableStudent q StudentID TableStudentInfo >
10.
xzx{| Tick >
11. Create Button >
11
10
32
www.enteritc.com
12
Many
1
1
Many
TableStudentList TableStudyList
www.enteritc.com
33
1
2. Select TableStudentList > 3. Add Button >
3
4. Select TableStudyList > 5. Add Button >
5
6. Close Button >
6
7. Select StudentID , TableStudentList q StudentID TableStudylist >
8.
xzx{| Tick >
9. Create Button >
34
www.enteritc.com
7
9
10
Many
Many
www.enteritc.com
35
Many
1
2. Select TableStudentList > 3. Add Button >
36
www.enteritc.com
3
4. Select TableStudyList > 5. Add Button >
5
6. Select TableSubjects > 7. Add Button >
7
8. Close Button >
8
9. Select StudentID , TableStudentList q StudentID TableStudylist >
10.
xzx{| Tick >
11. Create Button >
www.enteritc.com
37
9
11
10
14
12
13
15
5. #$:
> Enforce Referential Integrity: .B Record ( , Field . Primary Key
Primary Table Record
.
Record <
, Related Table
> 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
(
38
www.enteritc.com
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?
www.enteritc.com
39
40
www.enteritc.com
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 TableStudentList
.?@ StudentID, FullName, Gender, Class /JKP
R 10A 10B K[
1
2
3. {|{ Show Table '?@ TableStudentList >
4. Add Button >
Access 2007 Basic
www.enteritc.com
41
4
5. Close Button >
5
6. Double Click StudentID, FullName, Gender, Class >
7
8. Run ; >
8
9. {)?@#2 Save >
42
www.enteritc.com
10.
.-R QuerySimple >
11.. OK Button
1
2
3. Simple Query Wizard >
4. OK Button >
4
5. Table/Queries TableStudentList >
6. Available Fields: Double Click StudentID, FullName, Gender, Class >
www.enteritc.com
43
5
6
7
8. {.- Query R QueryStudent10A10B >
9. Modify the query design >
10. Finish Button >
10
11. 2 Field Class Row Criteria \ 10A Row Or \ 10B >
11
12. Run ; >
12
44
www.enteritc.com
13
Field Lists
Design Grid
Field
: - Field
Table
Sort
: P Field . . ?@
Show
Criteria : #
#/
Class = "10A"
<
#
StudentID < 11
<=
#-
StudentID <= 10
>
#
StudentID > 0
www.enteritc.com
45
>=
#-
StudentID >= 1
<>, Not
#/
StudentID <> 5
And
#0<
Or
##K<
Like
#
StudentName=" S*"
Between
#
In
##<
Class("10A","10B","10C")
Is Null
# (Null)
FullName Is Null
And
72:
1. Create Tab >
2. Query Wizard >
1
2
3. Simple Query Wizard >
4. OK Button >
4
46
www.enteritc.com
5
6
7
8
9
10. Summary >
11. Summary Options Button >
www.enteritc.com
47
10
11
13
12
14
15. {.- Query R QueryTotalPoints >
16. Modify the query design > 17. Finish Button >
15
16
17
18. { Row Field -
Sum of Points: Point Total: Points
48
www.enteritc.com
18
19
20
22
21
23
24
25
www.enteritc.com
49
28
29
30. {)?@72
5. ::
1. Query )?
2. P|{ Interface Query?
3. Simple Query Total Query /?
50
www.enteritc.com
6:
Queries
1. Crosstab Query:
Query !$::
A. Row Heading: '
B. Column Heading: '
C. Value: Row Heading Column Heading
C
A
1
2
3. Crosstab Query Wizard >
4. OK Button >
4
5. Table Field '/ Crosstab TableStudyList >
6. Next Button >
www.enteritc.com
51
6
7. Field ' Row Heading StudentID G
M Avialable Fields !
Double Click ,! Selected Fields >
8. Next Button >
8
9. Field ' Column Heading SubjectID >
10. Next Button >
10
11. Field ' Value G
M Row Heading
Column Heading Points G
M Fields >
12. M Functions: Function [ Sum >
13. Next Button >
52
www.enteritc.com
11
12
13
14.
!_`f CrosstabQuery >
15. Modify the design >
16. Finish Button >
14
15
16
17. Design Tab >
18. Show Tables >
17
18
19. Select TableStudentList >
20. Add Button >
19
20
21. Close Button >
www.enteritc.com
53
21
22. M TableStudentList Double Click M FullName, Gender, Class ,} ~
Data Grid >
22
23
24
25
26
54
www.enteritc.com
27. $6
27
1
2
3. Field Duplicates Query Wizard >
4. OK Button >
4
5. Table TableStudentList >
6. Next Button >
6
7. M Available Fields Double Click Field Class >
8. Next Button >
www.enteritc.com
55
8
9. Fields StudentID, FullName, Gender Available
Fields: } ~ Additional Query Fields: >
10. Next Button >
10
11. !_` Query f FindDuplicatesQuery >
12. Finish Button >
11
12
13. 6
13
56
www.enteritc.com
3. Find Unmatched Query:
1
2
3. Find Unmatched Query Wizard >
4. OK Button >
4
5. Primary Table TableStudentList >
6. Next Button >
6
7. Related Table TableStudyList >
8. Next Button >
8
Access 2007 Basic
www.enteritc.com
57
10
11. Fields StudentID, FullName, Gender Class
Available Fields: } ~ Selected Fields: >
12. Next Button >
11
12
13. !_`f FindUnmatchedQuery >
14. Finish Button >
13
14
15. $6
15
58
www.enteritc.com
4. Make-Table Query:
1
2
3. Simple Query Wizard >
4. OK Button >
4
5. M Tables/Queries TableStudentList >
6. } ~ Fields [ Available Fields: Selected Fields: >
5
6
7
8. M !_`f QueryClass10A >
Access 2007 Basic
www.enteritc.com
59
10
11. $ Row Criteria Field Class 10A >
11
12. M Design Tab Make Table >
12
13. M Table Name _` Table `f TableClass10A >
14. OK Button >
14
13
15
16. Rows / Table ` Yes Button
16
5. Update Query:
'
Update Record Table [6 G
SubjectID 1
2 ~ SubjectID 1 Mathematic
5
60
www.enteritc.com
1. Create Tab > 2. Query Design >
1
2
3. TableStudyList >
4. Add Button >
5. $ Close Button >
7
8. Row Criteria Field SubjectID } 1 ~ Mathematic >
9. Row Update To Field Points [Points] + 2 >
10. Row Criteria Field Points < 5 >
9
8
10
www.enteritc.com
61
11
12. $ Update Yes Button >
12
13. $ Save >
13
14.
!_`f UpdateQuery >
15. OK Button
14
15
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 >
1
2
3. $ Show Table TableStudentList >
4. Add Button >
5. Close Button >
4
62
5
www.enteritc.com
7
8. M Table Name: TableClass10A >
9. OK Button >
10
11. M Design Tab Run >
11
12. $ Append Yes Button >
12
13. Save >
13
Access 2007 Basic
www.enteritc.com
63
14.
!_`f AppendQuery >
15. OK Button
14
15
7. Delete Query:
'
Record Table 4 4[6
Record StudentID 11 TableStudentList
1. Create Tab >
2. Query Design >
1
2
64
www.enteritc.com
8. M Row Criteria Field StudentID } 11 >
8
9. M Design Tab Run >
9
10. $ Delete Yes Button >
10
11. $ Save >
11
12.
!_`f DeleteQuery >
13. OK Button
12
13
8. ! QuerySalaryList :
www.enteritc.com
65
9. :
1. 3f Crosstab Query ?
2. Find Duplicates Query Find Unmatched Query?
3. Make-Table Query Append Query 3?
66
www.enteritc.com
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 QUV
FormStudentList ; AutoForm:Columnar YZ#K TableStudentList
1. select TableStudentList O# All Access Objects >
2. Create Tab >
3. Form >
2
3
1
4. kq Save >
5.
YQUV FormTableStudentList1 >
6. OK Button >
www.enteritc.com
67
5
6
7. kq~O# B!- record StudentID 001 6
record Students Navigation Buttons
First Record
Previous Record
Current Record
:Z record
Next Record
Last Record
:Z record #
68
: Filter
: Z record !- Form
www.enteritc.com
2
3
4. kq Save >
5.
YQUV FormStudentList2 >
6. OK Button >
5
6
7. ~ O#
www.enteritc.com
69
1
2
www.enteritc.com
3
4. Save >
5.
YQUV TableBiography >
6. OK Button Table >
5
6
7. kq Form QUV FormBiography Create Tab >
8. Form Design >
7
8
9. Mouse 46 Form Selector >
10. Properties >
10
11. kq8q Property Sheet !- O46 Form >
12. Record Source TableBiography >
13. kq Tools Group Add Existing Fields Button >
www.enteritc.com
71
13
11
12
14
15
16
72
www.enteritc.com
17
18
19. Yes, the default choice is:
Male >
20. Next Button >
19
20
21. 6 Next Button >
21
22. Save the value for later use >
23. Next Button >
22
23
24. Option buttons Etched >
25. Next Button >
www.enteritc.com
73
24
25
26. YQUV Gender + >
27. Finish button >
26
27
28. select border Option Group Gender >
29. Tools Group Property Sheet >
30. kqq Property Sheet !- Name Property YQUV optGender >
29
30
28
74
www.enteritc.com
31
32
33
35
34
36. Y Cursor Control Source Build Button >
36
www.enteritc.com
75
38
37
39
40
41
42
43. select Border Textbox >
76
www.enteritc.com
44
43
45. Y Cursor Control Source Build Button >
45
47
46
www.enteritc.com
77
48
49. Switch +# Form View Y View Arrow >
50. Form View >
49
50
51
52. Y
Photo: Mouse 46 Photo: >
53. Insert Object >
78
www.enteritc.com
52
53
54. kq Create from File >
55. Browse button +Zq >
54
55
56. ;
>
57. Select
>
58. OK Button >
57
56
58
59. Save >
59
60.
YQUV FormBiography >
61. OK Button >
Access 2007 Basic
www.enteritc.com
79
60
61
62.O#
62
1
2
3. Design View O# >
80
www.enteritc.com
3
4. save >
5.
YQUV TableTariff
6. OK Button Table >
5
6
7. kq Create Tab >
8. More Forms >
9. Form Wizard >
7
8
9
10
11
12
13. Tabular >
14. Next Button >
www.enteritc.com
81
13
14
15. Layout Form ( Office) >
16. Next Button >
15
16
17.
YQUV FormTariff >
18. Modify the forms design >
19. Finish Button >
17
18
19
20. Controls Group TextBox >
21. B O Form O# >
20
21
82
www.enteritc.com
22
23
24
25
26
27. Label Text Box >
27
www.enteritc.com
83
29
30
28
31. kq Control Source Build button >
31
32. 6 >
=([UnitPriceNoTax]*[Unit])+([UnitPriceNoTax]*[Unit]*[Tax%])
33. OK button >
32
33
34
35
84
www.enteritc.com
36
37. Label B >
37
38. select Border TextBox >
39. kq Property Sheet Name 6 txtUnitPriceInRiels >
40. Format #,##0.00\R >
39
40
38
41. kqY Cursor Control Source Build button >
41
42. 6 >
=[txtUnitPriceWithTax]*[txtExchangeRate]
43. OK button >
www.enteritc.com
85
43
42
44
45
46
47. kq% & O#
47
86
www.enteritc.com
6. :
1. 6V Form ?
2. 8 456Z# Form?
3. Navigation Buttons 8 Button Z-? ?
www.enteritc.com
87
88
www.enteritc.com
8:
Forms
1. Chart !" Form:
Form Display "$ Display
Chart
".0
:
1. TablePopulation 3 Create Tab > 2. Table Design >
1
2
3. field name data type 7 table
>
3
4. ;< Save > 5. 3?@A TablePopulation 7"
>
Access 2007 Basic
www.enteritc.com
89
6. OK Button >
5
6
7. No IL
M A Table Q@ Primary key ;< Close Table R
7
8. Create Tab > 9. More Forms > 10. Form Wizard >
8
9
10
"
12. ] M fields RegionName, Area(km ), Populatoin, Density $Z" Available Fields: 3
Selected Fields: > 13. Next Button >
11
12
13
14.
Tabular > 15. Next Button >
14
15
90
www.enteritc.com
17
18
19
20. select Textbox Density >
21. Design Tab >
21
20
22. Property Sheet ;<$|<Property Sheet }~ >
2
www.enteritc.com
91
22
24
23
25
26
27
28
28
30. Z" Label 3?@A Add Total Sap Lake 3000km >
92
www.enteritc.com
30
29
32
33
31
34. "
Expression Builder
2
35
34
37
Access 2007 Basic
36
www.enteritc.com
93
39
40
38
41. "
Expression Builder
= sum([Population])+3000 >
42. OK Button >
41
42
43
44
45. ] "
>
45
94
www.enteritc.com
46
47
48. ;<Z" Controls Group Chart >
49. Z"
Form Footer >
48
49
50. ;<}~|<
Z"
select TablePopulation >
51. Next Button >
50
51
2
www.enteritc.com
95
52
53
54.
Column Chart >
55. Next Button >
54
55
2
56
57
58. Design TextBox $
.
Chart
7 ;<
switch 7 Form View ;
96
www.enteritc.com
58
1
2
Access 2007 Basic
www.enteritc.com
97
3
4. Save > 5. "
3?@A TableTariffInvoice > 6. OK Button Table R>
5
6
7. Create Tab > 8. More Forms > 9. Form Wizard >
7
8
9
10
11
12
13.
Columnar >
14. Next Button >
98
www.enteritc.com
13
14
15.
w
style form " office >
16. Next Button >
15
16
17. 3?@A FormTariffInvoice Z"
>
18.
Modify forms design >
19. Finish Button >
17
18
19
20. Z
Design Tab " Control Group Option Group >
21. Option Group Z"
. Form >
www.enteritc.com
99
20
21
22
23
24.
Yes, the default choice is: 0% >
25. Next Button >
24
25
26. 7 Option Group
>
27. Next Button >
26
27
28. Next Button >
100
www.enteritc.com
28
29. Next Button >
29
30. 3 Label A Taxation >
31. Finish Button >
30
31
32. select Option Group Taxation >
33. Property Sheet >
34. Z"
Name 3?@ Taxation >
33
34
32
www.enteritc.com
101
36
35
37. "
Expression Builder
=[PriceNoTax]+[PriceNoTax]*[Taxation]/100 >
38. OK Button >
37
38
40
39
102
www.enteritc.com
1
2
3. field name data type 7 Table
>
3
> 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 >
5
6
7. Create Tab >
8. Table Design I Table >
Access 2007 Basic
www.enteritc.com
103
7
8
9. field name data type 7 Table 2
>
9
> Data Type StudentID
Format 0000
10. Save >
11. "
3?@A TableAttendantSheet >
12. OK Button >
10
11
12
13. Z|<L
M Primary Key }~ No Button Table R >
13
14. Database Tools >
15. Relationships >
14
15
16. Show Table >
16
17. double click TableStudentSheet TableAttendantSheet >
18. Close Button >
104
www.enteritc.com
17
17
18
19. R field StudentID " TableStudentSheet 73Z
field StudentID TableAttendantSheet >
19
21
20
22
23
24
25
26. Z"
Tables/Queries
TableStudentSheet >
27. ] fields Available Fields 3
" Selected Field >
www.enteritc.com
105
26
27
28
29
30
31. Next Button >
31
32.
Datasheet >
33. Next Button >
32
33
34.
Office " List >
106
www.enteritc.com
34
35
36. Z"
Form 3?@A FormStudentSheet >
37.Z"
Subform 3?@A FormAttendantSheetSubform >
38.
Modify the forms design >
39. Finish Button >
36
37
38
39
40.
< Form Footer Sub Form >
41. TextBox < From Footer Sub Form >
42.
Label 3?@A Total >
42
41
40
www.enteritc.com
107
44
45
46
43
47. Z"
Expression Builder
= count([Presence]) >
48. OK Button >
47
48
49. TextBox Z
. txtPresent Form Footer SubForm >
50. Label R >
50
49
108
www.enteritc.com
52
53
51
54. Z"
Expression Builder
=count([Absence]) >
55. OK Button >
55
54
56
59
58
57
www.enteritc.com
109
61
62
60
63. Z"
Expression Builder
=[FormAttendantSheetSubform].[Form]![txtPresence] >
64. OK Button >
63
64
65. TextBox Z
. MainFormtxtPresence Form Footer MainForm
>
66. Label R >
66
65
110
www.enteritc.com
68
69
67
70. Z"
Expression Builder
=[FormAttendantSheet Subform].Form![txtAbsence] >
71. OK Button >
70
71
72
73
4.+ Button ! Form:
Z Form Button IL
M 7
"
FormOrder " Table 1
?@A TableOrder TableCustomer Z Form ; Button
w
www.enteritc.com
111
1
2
3. Field Name Data Type
>
3
>
Property CustomerID 0000
> Primay Key
Field CustomerID
4. save >
5. "
3?@A TableCustomer >
6. OK Button Table R >
5
6
7. Table ?@ TableOrder 3 Create Tab >
8. Table Design >
112
www.enteritc.com
7
8
9. Field Name Data Type
>
9
>
Property "
Format:
CustomerID 0000
ItemID 0000
Unit Price Amount #,##0.00\R
10. save >
11. "
3?@A TableOrder >
12. OK Button >
10
11
12
13. Z|<L
M A$ Primary }~ No Button Table R>
13
14. Database Tools Tab >
15. Relationships Button >
14
15
16. Show Table >
www.enteritc.com
113
16
17. double click Z TableCustomer TableOrder >
18. Close Button >
17
18
19. R field CustomerID " TableCustomer 73Z field CustomerID TableOrder >
19
21
20
22. Save Button Relationships R >
22
23. Create Tab > 24. More Forms > 25. Form Wizard >
23
24
25
26. Z"
Tables/Queries
TableCustomer >
114
www.enteritc.com
29
30
31. Next Button >
31
32.
Tabular >
33. Next Button >
32
33
Access 2007 Basic
www.enteritc.com
115
34. Z"
Office >
35. Next Button >
34
35
36. Z"
Form 3?@A FormOrder >
37. Z"
Subform 3?@A FormOrderSubform >
38.
Modify the forms design >
39. Finish Button >
36
37
38
39
40. Mouse .Z Label FormOrder " Subform > 41. Layout > 42. Remove >
41
42
40
116
www.enteritc.com
44
43
45
47
46
www.enteritc.com
117
48
49
52
51
50
54
56
55
53
118
www.enteritc.com
58
59
61
60
www.enteritc.com
119
63
64
62
65
67
66
120
www.enteritc.com
69
71
70
68
72
73
74
75
76
Access 2007 Basic
www.enteritc.com
121
81
82
83. ;<
Button Z
. btnFirst >
122
www.enteritc.com
83
84. ;<|< Wizard }~"
Catagories Record Navigation >
85. "
Actions: Go To Previous Record >
86. Next Button >
84
85
86
87. Next Button >
87
88. 3?@ Button A btnPrevious >
89. Finish Button >
88
89
www.enteritc.com
123
90. ;<
Button Z
. btnPrevious >
91
92
93
94. Next Button >
94
95. 3?@ Button A btnNext >
96. Finish Button >
95
96
124
www.enteritc.com
97. ;<
Button Z
. btnNext >
01
02. 3?@ Button A btnLast >
03. Finish Button >
02
03
Access 2007 Basic
www.enteritc.com
125
04. ;<
Button Z
. btnLast >
06
05
07
08. Next Button >
08
09. 3?@ Button A btnNew > 10. Finish Button >
09
10
126
www.enteritc.com
11. ;<
Button Z
. btnNew >
12
13
14
15. Next Button >
15
16. 3?@ Button A btnDelete > 17. Finish Button >
16
17
www.enteritc.com
127
18
19
20
21. ] "
5. :
1. Columnar Tabular ?
2. .A Main Form, Sub Form? Z?
3. $ Button Z"?
128
www.enteritc.com
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 >
1
2
3. Mouse <= Report Selector >
4. Properties >
4
5. Properties Sheet >
5
6. Record Source TableBiography >
www.enteritc.com
129
U Design =X >
8. K Field TableBiography Field List N Q
130
www.enteritc.com
11
10
13
12
www.enteritc.com
131
k
q Lebel >
15
16
14
17
18
19
20. View Arrow >
21. Report View >
22. )UX
20
21
22
1
2
132
www.enteritc.com
5
6
7. No Button >
7
8. Create Tab > 9. More Forms > 10. Form Wizard >
8
9
10
11. Tables/Queries TableRunningTotal >
Selected Fields >
12. Fields ( Available Fields N
13. Next Button >
11
12
13
14. Tabular >
15. Next Button >
Access 2007 Basic
www.enteritc.com
133
15
16. Next Button >
16
17.
Nw{^ FormRunningTotal >
18. Modify the forms design >
19. Finish Button >
17
18
19
20. Detail Select Text Box ( >
20
21. View Arrow >
22. Form View >
134
www.enteritc.com
21
22
23
24. Save >
24
25
26
27. Tables/Queries TableRunningTotal >
28. Fields ( Available Fields N
Selected Fields > 29. Next Button >
27
28
29
30. Next Button >
Access 2007 Basic
www.enteritc.com
135
30
31. 1 Date >
32. Next Button >
31
32
33. Layout Tabular > 34. Orientation Portrait >
35. Next Button >
34
33
35
36.
Nw{^ ReportRunningTotal > 37. Modify the forms design >
38. Finish Button >
36
37
38
39. Text Box Date X >
136
www.enteritc.com
39
40
41
43
44
42
Label Balance >
45. Select Label Balance k copy Label Out N
46. Text Box Datail X<= Text Box Out >
47. Select Label Text Box K >
www.enteritc.com
137
45
47
46
48
49. Control Source =[In] - [Out] >
50. Format Currency >
49
50
51
52
www.enteritc.com
53
54
56. =k
Print ) View Arrow > 57. Layout View >
56
57
58
59
Access 2007 Basic
www.enteritc.com
139
61
62
4.& Report ' Label:
1. Select Table f (: TableStudentList) > 2. Create Tab >
3. Labels >
2
3
5
140
www.enteritc.com
7
8. Prototype label X >
9. Next Button >
9
10. Field StudentID Available fields N
Sort by >
11. Next Button >
10
11
12.
Nw{^ LabelStudentList >13. Modify the forms design >
14. Finish Button >
12
13
14
Access 2007 Basic
www.enteritc.com
141
15
16
17
18
19
20
142
www.enteritc.com
22
23
24
25
26
27
28
29
www.enteritc.com
143
30
31. Page Layout Group Page Setup >
31
32
33
34
35
36
37
38
39. X
144
www.enteritc.com
www.enteritc.com
145
146
www.enteritc.com
10:
Reports
1.! Main Report Sub Report:
Report Main Report Sub Report Report #
&()) Table ), Report .
/ Table &2/34 relationship 5 Tables #
Report
7#<
?
ReportStudentSheet <
:
B
Report E7<
:
1. Create Tab >
2. Report Wizard >
1
2
3. L) Tables/Queries TableStudentSheet >
4. P U fields # Available Fields Y
) Selected Field >
www.enteritc.com
147
7
8. Next Button >
31
8
9. Next Button >
32
9
10. Next Button >
33
10
11. Layout Outline >
12. Orientation Portrait >
148
www.enteritc.com
12
11
13
14. Next Button >
15. Next Button >
14
15
16. L)
Y{|} ReportStudentSheet >
17. Modify the forms design >
18. Finish Button >
16
17
18
19. Label # Sub Report 5
E >
www.enteritc.com
149
19
20. Text Box Study Year Y< Text Box Subjects >
20
21
150
www.enteritc.com
23
24
22
27
26
25
29
30
31
28
www.enteritc.com
151
33
32
50
35
49
34
37
38
36
39. L) Expression Builder
=count([Absence]) >
40. OK Button >
152
www.enteritc.com
40
39
42
43
59
41
58
57
44
45. L) Text Box =Date() >
45
46. Label L)<
Label Phnom Penh } Chief of Study Office >
Access 2007 Basic
www.enteritc.com
153
46
42
43
44. Controls Group Line Color Arrow >
45. | >
44
45
46. Save Button >
47. View Arrow >
46
47
154
www.enteritc.com
www.enteritc.com
155
1
2
3. ) Tables/Queries TableCustomer >
4. P 4 Fields # ) Available Fields 5Y
) Selected Fields >
6
7
8. Next Button >
8
9. Next Button >
156
www.enteritc.com
9
10. ) 1 ItemID >
11. Next Button >
10
11
12. Layout Layout >
13. Orientation Portrait >
14. Next Button >
13
12
14
15. Next Button >
15
16. )
Y{|} Invoice >
Access 2007 Basic
www.enteritc.com
157
17. Modify the reports design > 18. Finish Button >
16
17
18
19. Select Text Box Amount > 20. ) Properties Sheet Control Source Build Button >
20
19
21. ) Expression Builder
= [Unit Price] * [Quantity] >
22. OK Button >
21
22
23
www.enteritc.com
26
27
25
28. Control Source Build Button >
28
29
30
31. Text Box ) Report Footer <
Text Box SubTotal Label
Discount >
31
www.enteritc.com
159
32. Select Text Box ) Property Sheet Name Y{|} txtDiscount >
33. Format Percent >
32
33
34
35. Select Text Box & >
36. ) Property Sheet Name Y{|} txtGrandTotal >
37. Format #,##0.00 \R >
36
37
35
38. Control Source Build Button >
38
160
www.enteritc.com
39
40
41. Select Text Box Label #L)) Detail Report Footer >
42. Controls Group Line Type Arrow >
43. Solid >
42
43
41
44. Save Button >
45. View Arrow >
46. Report View >
44
45
46
www.enteritc.com
161
47
48
49
50
51
52
53
54. Controls Group Button >
55. &2L<E Button >
162
www.enteritc.com
54
55
57
56
58
59. Select Invoice > 60. Next Button >
59
60
61. Next Button >
61
Access 2007 Basic
www.enteritc.com
163
62. )
Y{|} btnPreInvoice >
63. Finish Button >
62
63
64. View Arrow >
65. Form View >
64
65
66
67. Mouse E Report Tab >
68. Design View >
67
68
164
www.enteritc.com
70
72
71
73. ) Expression Builder
= Forms![FormOrder]![CustomerID] >
74. OK Button >
73
74
www.enteritc.com
75
165
76
77. Select Text Box Discount >
78. Control Source Build Button >
78
77
79. ) Expression Builder
=[Forms]![FormOrder]![FormOrderSubform].[Form]![txtDiscount] >
80. OK Button >
79
80
81
82
83. L FormOrder ) Text Box Discount Discount 3 (0.10%) >
166
www.enteritc.com
84
83
85. &2.<
Y display Record 57 CustomerID
/
Discount 5 Discount Form
85
www.enteritc.com
167
3. &:
> 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 ?
168
www.enteritc.com
11:
Switchboard Manager
1.:
Switchboard Manger
Switchboard # Objects
'() Microsoft Office Acess Switchboard +#,
-/ uses
23 Click ( Button Object 45+ #,
-/)
2. Switchboard:
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 >
1
2
3
4. New Button >
5. )
2>?D Open Form >
6. OK Button >
6
5
7. New Button >
www.enteritc.com
169
8. )
2>?D Open Report >
9. OK Button >
9
8
10. _+ Switchboard ;
10
1
2
www.enteritc.com
6
4
5
11
9
10
12
13
16
14
15
17
18
www.enteritc.com
171
19
20
21
24
22
23
25
26
29
27
28
30
172
www.enteritc.com
31
34
32
33
35
36
1
2
www.enteritc.com
173
7. OK Button >
6
4
5
11
9
10
12
13
15
14
16
17
174
www.enteritc.com
18
2
3. ); Current Database >
4. ();# Display Form Switchboard >
5. OK Button >
5
Access 2007 Basic
www.enteritc.com
175
6. OK Button >
6
7. _ Close Button ? >
9. ;+
5. :
1. Switchboard Manager?
2. -,3) Open Form in Add Mode Open Form in Edit Mode ?
3. xvx Open Report Exit Application ?
176
www.enteritc.com
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?
www.enteritc.com
177
2.. :
178
www.enteritc.com