មេម ៀនទី១៖
1. Microsoft Access 2010 Ms.Access: គឺជាកញ្ច ប់កម្មវធីិ ដែលគគគ្បើសំរាប់ការគរៀបចំរកាទុក និង ្បមូ្លផ្ុំទិននន័យ ្គប់ទិននន័យ, ដសែងរកទិននន័យ, និងស្សង់ទិននន័យជាគែើម្។ Microsoft Access RDBMS (Relational Database Management System) ឧទាហរណ ៏ៈ អ្នកអាចគ្បើ កម្មវធីិ Ms.Access គែើម្បីគធែើការ្គប់្គង់កនុងស្ថា ប័នដែលអ្នកគធែើការ ែូចជា ស្ថលាគរៀន, ្កុម្ហ ុន វាជួយែល់គលាកអ្នកបានកនុងការ រកាទុកពត៌មានទំាងអ្ស់របស់ សិសស, បុគគលិកសំរាប់គពលអ្នាគតកនុងការងារស្សួលកនុងការដសែងរកទិននន័យ រពឺត៌មានបានឆាប់ តាម្ដែលអ្នកចង់បាន, គធែើការគណនាគលើពិនទុ, និគទទស, ចំណាត់ថ្នន ក់, រសឺញ្ញា ប្ត័, កាតនិសសិត..។ ជាមួ្យគនេះដែរវាអាចជួយកនុងការ្គប់្គងការងារគលើ៏ៈ
o ការងារដផនកស្ុក o ការងារែឋបាល o ការងារការយិាល័យ o ការងារគណគនយយ និងការងារ្គប់្គង់គផសងៗែទទគទៀត។
ចំណំា៏ៈ ជំនាន់របប់ Ms.Access o Microsoft Access 97 o Microsoft Access 2000 o Microsoft Access XP o Microsoft Access 2007 o Microsoft Access 2010…….
ការស្គា ល់ពី Ms. Access 2010
2. រគបៀបចូលកម្មវធីិ Ms.Access 2010 a. ចុចគលើ Start
b. ចុចគលើ All Programs c. ចុចគលើ Microsoft Office d. ចុចគលើ Microsoft Access 2010
បនាទ ប់ម្កអ្នកនិងទទួលបានផ្ទ ងំមួ្យែូចខាងគ្កាម្៖
File Name Database re te
Database
3. ទំរងរបស់ Microsoft Access 2010
The Quick Access Toolbar
គឺវាជួយសំរលួកនុងការគ្បើ្បាស់កនុងការ Save, Open, បគងកើត New file…….។
The Title Bar វាមានទីតំាងខាងគលើគគទន Access Window គឺជារបាមួ្យដែលបងាា ញពីគ ម្ េះរបស Database ដែលកំពុងែំគណើ រការ។
Quick Access Toolbar The Ribbon
Title Bar Minimize Maximize
Close
Access Object
Group Dialog Box Laucher
The Ribbon អ្នកគ្បើសញ្ញា ទំាងគនេះគែើម្បីែំគណើ រការកនុង Access 2010
Access Objects វា្តូវបានគ្បើគែើម្បី The Navigation Pane:
a. ចុចគលើ បងាា ញ Objects b. ចុចគលើ បំាង Objects
្បគេទ Database Objects កនុង Navigation Pane និងតួនាទីរបស់វា Table Querie Form Report Macro Module Table: Access Database
Table (Columns) Fields (Rows) Records
Queries: Access Database Query Table
Form: User Interface (Data Entries)
Reports: (Printer)
Macroses: Microsoft Access Table, Query, Form Report Macro Form Report
Modules: Procedures Functions Statements VBA (Visual Basic For Application) Forms Database
ការចូលគៅកាន់ Object និមួ្យៗ
a. Object វានិងគបើកគ ើង គហើយអ្នកអាចចុច Mouse ខាងស្្ថំគលើ Objects វានិងបងាា ញ Menu Options គហើយអ្នកអាចគ្បើវាកនុងការ Open, Rename, Delete Objects។
b. Objects និងគលចគ ើងគលើ Tabs,គយើងចុចគលើ Tabs វានិងបងាា ញOption សំរាប់ គ្បើ S ve, lose, Design View………..។
ការផ្ា សប្ូរកនុងការបងាា ញObject គលើ Views
Views គឺ្តូវបានគ្បើកនុងការចូល Object ែូចជាកនុង Access របស់គយើងមានផទុកនូវTable ពីរែូច គនេះអ្នកអាចគ ើញនូវទិននន័យដែលអ្នកផទុកតាម្រយ៏ៈ Design View និង Datasheet View។ គហើយគពលអ្នកគបើក Object Views Button គៅ្ជុងខាងស្្ថំដផនកខាងគ្កាម្ែូចគនេះអ្នកអាចគ្បើវាកនុងការ ផ្ា ស់ប្ូរ Views ឬអាចគ្បើ Views Button គលើ Home Tab។
4. រគបៀបបិត Ms. Access ការបងាា ញខាងគលើ ការ្គប់្គងគលើ Ms.Access, ែូចខាងគ្កាម្គនេះគឺជារគបៀបចាកពី Microsoft Access 2010។
a. ការបិទ Database 1. ចុចគលើ Microsoft Office Button
2. ចុចគលើ Close
b. ការបិទ Ms.Access 1. ចុចគលើ File 2. ចុចគលើ Exit
5. Database Database ,
Access Database Tables Queries Forms Reports Pages Macros Modules
6. រគបៀបបគងកើត Database
Microsoft Access Database
Database Tables Tatabase Fields Table (Data Type) (Properties) Field
Field Table (Relationship)
Table Database Objects Queries, Forms, Reports, Macroes
Modules Microsoft Access Blank Database Blank Data-base
Database Database Object Table, Queries, Forms, Reports, Macroes Modules
a) Start Programs Microsoft Office Microsoft Access 2010
b) Blank Database c) File Name Database d) ចុចគលើ Browse Button Folder
e) OK
f) ចុច Create គហើយគបើក Database របស់អ្នក g) គបើក Navigation Pane គែើម្បីបងាា ញ Objects
rrrrr2sssss
1. Database? 2. Tables ? 3. Queries ? 4. Forms ? 5. Reports ? 6. Macroes ? 7. Modules ? 8. Database Ms-Access? 9. Blank Database?
!
២
Tables
Table Database Database (Database Object) Fields Records Table
- Table Field ? - Field (Data type) ? - Field Primary Key Field
Relationship Foreign Key Field Table ? Student Table
1. Tables: (How to Create Tables) Table
....... Table
1.1 (Data Type): Field
Field Relationship Field le Field Table Fields
Data Type ១២
Field Data Type
Text ) Memo Text ) Number (Integer, Long integer, Single, Double ) Date/Time D te (Time) Currency Auto Number Primary Key Yes/No , Boolean Data (on/off, True/false) OLE Object Hyperlink Hyperlink Address Web Attachment Attach File Calculated Lookup Wizard Field
1.2 Table Table Ms.Access Database
Table “ le1” View Field Records Save Table OK
Table “ re te”
- Table Table Design Table Database - Dropdown Button View Design View Fields Name
1.3 Field (Field Properties) Field (Data type)
Field
Field Size: Field Number Field Size Byte, Integer, Long integer, Single, Double, Decimal Replication ID ( ១៦
Format: (Text) (Number) (Date/Time) (Currency) (Yes/No)
Text Format > ( Upper Case)
Format , 0.00 l e , 0,00 e 1500 $1,500.00 -1500 ($1,500.00) Decimal Place: Input Mask:
L
Field Name Input Mask: >L
Indexed: Field (Index)
Yes (No Duplicates): (Index) Yes (Duplicates): (Index) No (No Indexed): (Index)
New Value: Auto Number Field
Field Data type Properties
Text Memo Num Date Cur AutoN Y/N OLE Hyp
Field Size x x Format x x x x x x x x Decimal Place x x Input Mask x x x x Caption x x x x x x x x x Default Value x x x x x x x Validation Rule x x x x x x x Validation Text x x x x x x x Required x x x x x x x x Allow Zero lenght x x Indexed x x x x x x New Value x
1.4 Table Design View: Field
Table Design View
a) Create menu b) Table Design Table Design View
c) Field Field
d) Primary Key Field Save Table e) Table
Table Select Table Open Button 1.41. Primary Key Primary Key Field Field ID
Primary Key Select iel Primary Key Tool
1.4.2 Lookup Wizard Lookup Wizard ?
Marketing, Accounting, Economics, o ris , I , …….. Lookup Wizard Lookup Wizard
Lookup Wizard Major
I will type in the Values that I want Next
Next Finish Lookup Save
Datasheet View
1.4.3 Field Lookup Lookup
Table Design View Cursor Major Lookup Field Properties
Row Source Save Display Control: Form
Text Box: Lookup List Box: Lookup Form List Cambo Box: Lookup Form
Row Source Type: Lookup Table/Query: Major Table Query Value List: Field List: Field
Row Source: Table/Query Bound Column: Row Source
Lookup Column Count:
Lookup. ColumnHeads:
Lookup Column Widths: 1 ១ ១ List Rows:
Cambo Box List Width: Cambo Box Limit to List: List
Lookup
2. (Import) (Export) Table Database 2.1 Import Table Copy Table or Query Database Database ១.
1. Mouse Table/Query Navigation Pane Import
2. File Import File
Access 3. File Access Database
4. Dialog Database
5. Browse Button
6. Select Database Import OK
7. Select Table ImportOK
8. Table Navigation Pane 9. Tick Save import steps
10. Save Import
២
1. External Tab Active TabImport Group
2. File Import File Access lic Access File
3. ១
2.2 Export Table Table/Query Database Import ១
1. Mouse Table/Query Navigation PaneExport
2. File Export ile Access
3. File Access Database
4. Dialog Database
5. Browse Button 6. OK 7. Dialog Export
Export Table - Definition and Data Table Data - Definition Only Table Field Data
8. OK 9. Dialog Export Access Database
10. Save Export
3. Relationship (How to Create Relationship) 3.1 Relationship? Table Table Field Primary Key Table Foreign Key Table ១ Tblstudents
Tblpayment
Relationship
1. Database Tool Tab
2. Relationships 3. Add Table Relationship
Mouse Show Table
4. Add Table
5. Table Add 6. Add Button Close Button
7. Mouse StudentID Tblstudents
StudentID Tblpayment 8. Relationship
9. Create Button 10.
11. Save 12. TblStudents
Table Relationship
13. Tbl
payment
Join Type
1: Field 2: Primary Table ( Table Primary Key) Field Foreign Table (Table Primary Key)
3: Foreign Table Field Pri ry le Enforce Referential Integrity Cascade Update Related Fields: Fields Primary Table Cascade Delete Related Fields: Primary Table Foreign Table 3.2 Relationship? Relationship Table Table Integrity Data Relationship Check Box 3.3 Relationship Relationship
1) (One to One Relationship) 2) (One to Many Relationship) 3) (Many to Many Relationship)
One to One Relationship ne to ne el tionshi Record Table Records Table Table
- Table Master Table Field Fields Primary Key
- Table Field Primary Key Table ) Foreign Key Table ២
(Payment)
One to Many Relationship
Records Table Records Table Record IT ( Networ , D MS, ……….
Many to Many Relationship
One to Many Relationship One to Many Relationship Records Table Records Record Table Record Table Records
. Relationship Mouse Relationship Edit Relationship
3.5 Relationship Relationship
Mouse Relationship Delete
!
៣
QUERIES 1. Queries: Queries Object Ms.Access
Table Queries
2. Queries Queries Wizard
Design 2.1. Queries Wizard Query
Queries
Simple Query Wizard Crosstab Query Wizard Find Duplicates Query Wizard Find Unmatched Query Wizard
1. Create Tab Queries Wizard
2. Simple Query Wizard OK 3. Simple Query Wizard OK
4. Table Field Tables/Queries
Combo box
5. Field
Query
6. Next Button
7. Dialog What title do you want for your
query? Query Option Open the query to view information.:
Query Finish button. Modify the query design: View Query Design
View Finish Button 8.
2.1.1 Crosstab Query Wizard Query Tool
Consolidating data S ject……………
1) Query Wizard Crosstab Query Wizard
2) OK
3) Table Next 4) Field
5) Next Next
6) Tick Yes, include row sums 7) Next
8) Finish 2.1.2 Find Duplicates Query Wizard
Query
1). 2). Find Duplicate Query Wizard OK
3). Table
Table Tblstudents
4). Filed Next
5). Field Field S ject
6). Next Button
7). Finish
Auto Engineering)
2.1.3 Find Unmatched Query Wizard Table Relationship
1. Find Unmatched Query Wizard
2. Table “ Tblstudents”
3. Next 4. Table “ Tblpayment”
5. Next
6. Field Next
7. Query
8. Finish
2.1.4 Design View Query
Query
1. Create Tab Query Design Queries Group
2. Table Add Table
3. Table
4. Add Button
5. Field
6. Add Field Run Result Group
7.
Query Type: Group Option Modify Properties Query
Query Setup Command modify attribute Query Se rch
Show/Hide Command modify View Background attribute query
i. Column
- - Table Tbllecturer
- Field LectureName - Run
ii. Columns
- - Mouse Query Show Table
- Dialog Table
- Table Tbllectuere Add
- Run
iii.
Table Tbllectures Table store Field Place of Birth
Mouse Query Per erties…
Unique Values Yes
Run Query
iv.
Record Field Place of Birth Table Tbllecture ៤ Records
Mouse Properties Query
Top Values ៤ Run Query
v. Sort Sort
a) Query Design View
b) Cursor Column Sort c) Sort Combo box
Ascending A Z
Descending Z A
d) Sort Descending
vi. Show Show Field Field Show Field Add
1) Query Design View 2) CheckBox Show Tick
Field
3) Run Query
vii. Record:
Criteria: riteri
Battambong
1) “ tt ong” Criteria Field Place of
Birth 2) Run Query
Or
Battambong , Kampot Phnom penh
1) Criteria Place of Birth Battabong 2) Or Place of Birth Kampot
Phnom pehn
3) Save Query Run
Wildcard Character:
Wildcard h r cter T
Between…..and….
M R Criteria StudentName
Run
Operators Criteria
Operators
= ProductName =”A ”
<
UnitPrice Quantity > 30
=40
ProductNaem ABC
And
Pro ctN e= ‘A ’ and Quantity< 20
Or
Quantity>50 or Unitprice
Like St ffN e Li e “ *”
Between
Unit rice etween “ 20” n “ 0”
In Or Pro ctN e In ‘ Love’,’ h ng’,’A ’
Not Unitprice 20
Is Null Null Phone Is Null
“ ” Text “ Mr oth”
# # Date #19/08/2012#
Date () 19/08/2012
# Character
1#3= 123,103,153
viii. Queries: Query viii.1 Field Field Field ១ “ Unit Price” “ Q ntity” “ A o nt”
le “ l r er” Unit Price Quantity ([Unitprice]*[Quantity]) Column Amount 1) Query Design View Field
Field le “ l r er” Save “ l r erDet il”
2) ight-clic Field [Quantity] il …..
3) Amount
Click CalOrderDetails Double Click Unit Price < Expr> * Double click Q ntity OK
4)
5) Run Datasheet View
Query
(Sum formula) Example score 1) Query Design le “ Ex le score” 2) Field
Amount: [Unit Price]*[Quantity]
: Field Field
3) Right Click Build
4) OK Design View
5) Run
le “ Ex le Score” 1) Query Design ” E le Score Q ery”
2) Run
Text Manipulation Function
1. Left String, Length Text Length Left ([Field Name], Number of character)
le “ lSt ents” Query Fieldname Character
- OK Design View
- Run
2. Right (String, Length) Text
Length Right ([Field Name], Number of character)
-
3. Mid
Mid (String, Length) Mid([Field Name], Number from Left character, Number of Character)
-
4. “&” Field Field
iel N e & iel N e &………
-
-
5. LCASE (FieldName, String) Function
-
6. UCASE (FieldName, String) Function
-
7. Trim (FieldName, String) Function Space
-
8. LTrim (FieldName, String) Function Space
-
Aggregate Function Query Function 1. Count: Record Field
TblStudents Query Design View
- Totals Show/Hide Group - ២
2. Max: Column - Tblscore Query Design View Total Max Run
-
3. Sum: Column
-
4. Avg Column
Manipulation Function Date/Time nction Date/Time 1. DatePart(Interval, date)
- Interval: Date/Time
- Date: Field Date/Time ១
le “Tbllecturer”
-
២
-
-D teP rt “yyyy”,D te -D teP rt “yyyy”, D te of irth
Interrval yyyy Year
q Quarter m Month d Day
ww Week w Weekday h Hour n Minute s Second
2. DateDiff(interval, D te1,D te2
Date1 Date2 +[Start Date]=19/8/2011 +[End Date]=19/6/2012
-
**
-
3. Date(Date): Date/Time
-
Month Year Day
4. Format
-
IIF ...... 90.5 80 90.5 .......
IIF(expr, truepart, falsepart) -ex r -truepart: -falsepart:
១ (Division>=50 P ss Division
-
២ “Excellent, Very goo , Goo , ir, We ”
-
Parameter
Query Parameter
“ M”
Function
Run Query Dialog
M Text Box OK Button
Update Query Query (Update)
៥ Network le “ Ex le Score” Update Query Query Design View Update Query Type
- Run Query Dialog box Query Update
- Update le “Ex le Score”
- Update:
Update Table Query Update Run Message Confirm Table Update Message Task Bar U te
Security Warning Option Group
Dialog Enable this Content OK
Make Table Query
Table Table
Query Design View Make Table Query Type Group
Table OK
Run
The action or event has been blocked by Disable Mode.
Yes Navigation Pane
Table Append Query Copy Table Table Copy Table Table DataType ..... Table Customer Khai Vichara, Teng Kongsim
- Query Table
- Field
- OK - Append Field
- Run - Di log ox “ Microsoft ffice Access”
- Yes -
- Append Query
Table Query l sto er “N e Kh i hich r ”
- Query Design View - Delete Query Type Group - Query Design View
- Run - Yes -
SQL Query
SQL Structure Language SQL Query
o View SQL View
o SQL statement
o (Code)
code Run Run Query
-Syntax ១:
ID,
Select Fieldname1, Fieldname2 From Tablename;
o
Syntax ២:
៥
o
!
Select Fieldname1, Fieldname2
From Tablename
Where condition
៤ FORM
1. Form?
Form Table Query Dialog Form Store Table Form Store Table Form
2. Form Form
Create Tab Form Group
2.1 Form Form
Form Table Query Form Form Form Group
Form
First Moves to the first record in the table.
Previous Moves to the previous record
Next Moves to the next record
Last Moves to the last record in the table.
New Creates a new record at the end of the table.
Save Form
Frm r st ents….. 2.2 Form Split Form
Form User
១. Table Query More Form ២. Split Form
2.3 Form Multiple Items
Form Datasheet View ១. Table Query ២. Multiple Items
Design View
2.4 Form Blank Form
Field Table Blank Form
១. Blank Form
២.
. Table Fields
៤. View View Form
2.5 Form Form Wizard
១. Form Wizard
២. Field
. Next Button
៤. Layout Form Option Group Style ៥. Next Button
៦. Finish
2.6 Form Form Design Form
Form Controls Controls Group Form Code
១. Create Tab Form Design
២. Form .
Controls Control Group Microsoft Access 2010
2.7 Controls Controls Group
Controls
Logo Control Logo Form
Title Control Form Report
Page Number Control Form/Report
Date & Time Control
Form/Report
Text Box Control Form/Report
Label Control Form/Report
Button Control
List Box Combo box List box Store Combo box
Sub Form Control Form
Rectangle Control Bound Object Frame Control
Option Group Control
Check Box Control Option Check Option
Option Group Control Check Option
Toggle Button Control Option Option Group
Tab Control Form
Unbound Object Frame
Image Control Form
Insert or Remove Page Break
Form
Insert Chart Control Form
Select Control Select Select Control
Use Control Wizard Control Wizard
Insert ActiveX Control ActiveX Controls
Attachment Control
Store File Attach File File Support Attach:
3. Form Form
Format Tab Field Property
-Neither: Scroll
-.Horizontal Only: Scroll -.Vertical Only: Scroll -. ecor Sectors Option Record Sector
-.Close Buttons Enable Disable Close Button
-.Min M x ttons Min MaxButton
-None -Min Enabled Button Min -Max Enabled Button Max -Both Enabled . Control Control
Microsoft Access 2010 Controls
Logo Control : Form Form Database Control Logo
Dialog
Form Open/OK
Title Control: or Form
Database Control Tile Header Form
“ KIP” Properties Home Text Formatting Properties
Date & Time Control: Form
Date&time Control
Include Date Include Time
OK Button Dialog
View Form
ext ox ontrol Control Fromt
Label Control: Control Form
Button Control: Button Control Form
Command
Button
Control
Dialog Wizard Actions Button Control
Categories Actions Comment
Record Navigation
-Find Next -Find Record -Go To First Record -Go To Last Record -Go To Next Record -Go To Previous Record
Field Record Form
Record Opertations
-Add New Record -Delete Record -Duplicate Record -Print Record -Save Report -Undo Record
Form
Form Operation
-Apply Form Filter -Close Form -Open Form -Print a Form -Print Curent Form -Refresh Form Data
Form
Report Operations
-Mail Report -Open Report -Preview Report -Print Report -Send Report to File
Report
Application -Quit Application
Miscellaneous
-Auto Dialer -Print Table -Run Macro -Run Query
Macro Query ,Table
o o ox ontrol Control Form
- - Next Table/Query Next
- Field
- Next
- Next
- Label Combo box
- Finish View Form
២
- Next Combo box
- Next
- Finish
List ox Control Form
- Combo box - Next Select Field Next
- Next
- Hide Key Column (Recommended)
- Next Next
- Finish Button
Sub Form Control: Form Sub Form Sub Form Form - Dialog Table/Query Sub Form
- Next Finish
Line ontrol Form Line Control
Form
Rectangle Control: Rectangle Control
Form o n ject r e ontrol
or View Mouse Insert Object..
- Create from file Option Browse - Store OK
Option Group Control: Table Product Discount Store Text box Discount Disco nt Form
- Control Form Dialog Label Next - Default
- Next Button
- Discount - Next Button
- Field Store Discount Field Discount - Next
- Style Next
- Finish
Check Box Control: Form
Option Group Control: Form Insert Tab Page Control:
Form Page Image Control:
Tools Microsoft Access 2010 Options Control Wizard Options Command Form Option En le
Insert Active X control: Control
OK
4.1 Form Properties
Object Object
Data: Link Record source Table Form Record
Event:
Form
Events Before Insert Bound Form
Table After Insert Bound Form
Table Before Update Bound Form
Table After Update Bound Form
Table On Load Form On Open Load Form Form Load On Close Form
On Activate Form Open On Got Focus Cursor Object On Click Mouse Object On Double Click Mouse Object On Mouse Move Mouse
Object On Mouse Down Mouse Object
On Key Press Keyboard On Key Up Keyboard
On Keydown Keyboard
On Timer Event
Timer Interval Interval 1000
Timer Interval Event Properties Timer Event
Other: Form
Form
All: Tap Properties Form
4.2 Form
Form Controls Microsoft Access 2010 Form Form
Form Form Design Text Box Control
=[Field Name]+[Field Name]
Fields
Text Box Mouse Properties Other Tab
Text Box ១ txtval1 Text Box ២ txtval2 Text Box txtResult Text Box Select txt es lt Data Tab iel Pro erty Control Source ...
OK Text Format General Number
(...)
(+, -, *, /) SUM:
Column Stock =Sum ([Field Name])
1. Form Muliple Items Table Product
2. Design Text Box Form Footer
3. OK View Form
Max: Column =Max([Field Name])
Min: Column =Min([Field Name])
Count: Column =Count([Field Name])
IIF: =IIF(Expr, Truepart, Falsepart)
- Expr: - Truepart: - Falsepart:
Aver ge >=95 “A” Aver ge >=85 “ ” Aver ge >=75 “ ” Aver ge >=65 “D” Aver ge >=50 “E” 50 “ ” =IIf([Average]>=95,"A",IIf([Average]>=85,"B",IIf([Average]>=75,"C", IIf([Average]>=65,"D",IIf([Average]>=50,"E","F")))))
5. Sub Form Main Form
Form Main Form Table Student Form
Sub Form Table Score Design Sub Form Main Form
Main Form
Sub Form
6. Text Box , Label Cambo Box Combo box
Record
Form Text box Combo box
1) Form Design 2) Mouse Text Box
Combo box
3) Change to Combo Box 4)
5) Combo box
6) Mouse Combo box
Properties
7) Data Tab ... Row Source Field Property 8) Table
9) Add Close Button 10) Field
11) Query Yes
12) View Form
13) Combo Box 14) Mouse
(Combo Box) Properties Data Tab Row Source Select
7. Text Box Text Box Field Text Box Sex Form User Male Female User
1) Form Design View 2) Mouse Text Box Sex Propeties 3) Data Tab Validation Rule ...
4) OK
5) Validation Text Message
6)
8. Events
Events Microsoft Access 2010 Events Object Event Object
Form Load Message Welcome Form OK
- Form Load Design View - Mouse Properties
- Tab Event n lo Event Code Builder
Choose Builder
- Code VBA (Visual Basic for Application) VBE (Visual Basice Editor)
Events Group Object Group
Form Design
- Code Event
Status bar
Event Close Code Event Close Form Form
Event lose Events Group
Event efor Del onfir Event
Event After/Before Insert
Event After/Before Update:
Command Event Click
1) Form Design 2) Design Ribbon/ Button 3) Form Footer /Select Button 4) Property Sheet/ Format Caption
V B
5) Button Other Name
6) Event On Click ... Code
7) Code
Command MsgBox nction “MyFiel ”, “ MyTable”
DAvg: Field
DCount: Record Table
DFirst: Field Table
Dl st Field Table
Button Event lic Form
DLookup: Field Table Record Record Msg ox DLoo “My iel ”, “My le”, “My V l e”
9. Chart: Chart Table
- Form Design View - Chart Control Form
- Dialog
- Table - Next Button
- Field Next Button
- Chart Next Button
- Next Button
- h rt Finish - Double Click Form
Mouse Chart
!
៥ Report Object
. Report? e ort Object Objects Access 2010 View, Print Report 2. Report? e ort ១. Report Wizard Field
1) Create Tab Report Wizard Report Group
2) Dialog
3) Table or Query Report 4) Field
5) Next
6) Field Group 7) Next
8) Field Next
9) Layout
Report 10) Next
11) Report
Options 2 A. Preview the Report
Report
B. Mo ify the e ort’s esign Report Design
12) Finish
២. Basic Report
1 Select Table/Query 2) Basic Report
3) Report Design
4)Report Print Preview
. Blank Report Report Field Design Control
1) Blank Report
2)
3) Table Report
Field Blank Report
៤. Design Report Report Controls
1) Report Design
2) Report Design
3) Add Exiting Field Tools Group
4) Table
Add Fields Report
5) Table Add Fields Blank Report
6) Field 7) View
៥. Labels Wizard
1) Label Reports Group
2)
3) Customize
4) Button New
5) Label 6) OK
7) Close Button 8) Next Button
9) 10) Next
11) Fields
12) Next
13) Short Field 14) Next 15) Label Finish
16) Report Design