قاعدة البيانات مع اكسس
قاعدة البيانات مع اكسس
قاعدة البيانات مع اكسس
:
koprlocenter@yahoo.com
2008
.
.
Microsoft Access
Microsoft Access
.
. Windows
MDB -
.
. -
. -
. -
. -
- -
.
Access
: -
( )
" " " "
" " " " " " "
". " "
: -
.
: -
.
: -
.
: -
.
: -
. Access
: -
.
:
( )
- -
.
:
Access
:
( ) : -
.
( ) :
: -
.
. : / -
: -
Windows .
: -
. (1)
). ) : / -
Windows OLE : -
. Word
. Web : -
:
" " : -
". "
. : -
" " " " : -
.
. : -
: -
- -
.
. : -
. : -
. : -
. : -
" " :
.
. : -
. " " Unicode : -
" " " "
" " -
". " ( )
" " " "
: " "
. -
. -
. -
: " "
. -
:
. -
-
:
. -
. -
. Access -
- -
" " " "
": " -
.
. :" " -
:
. -
. -
. -
. -
. -
. -
. -
. :
( : ) -
. ..
( : ) -
.( : )-( : )- ( : ):
.( ) -
. :
. -
. :
" " -
.
-
.
. :
- -
( - - ) -
. -
.( ) ( )
. -1
. -2
" " -4
. " " -5
. " " -6
- : -7
. -
( ) -8
. - - :
" " -9
" "
( ) - 10
" " " "
" F6 "
.
- -
( ) - 11
". " " "
". " - 12
" " - 13
" F6 " .( ) ) )
.( )
-
. " "
) -15
." " (
: . -
-:
. .
.
.
. .
-:
. .
. .
. .
- -
-:
. .
Del .
:
. (
. (
. (
-:
. .
.
-: .
-:
.
.
Shift .
.
. .
-:
. .
. Del .
- -
-:
. .
. .
. .
. .
-:
. .
. .
-:
.
.
" " .
.( )
.
.
-:
-:
- -
-:
. .
. .
. .
. .
. .
. .
-:
-: .
. .
. .
. .
.
: .
-:
. .
. .
- -
. .
.
.
. .
-:
.
( ) .
( ) .
.
-:
.
.
- -
. .
. .
. .
. .
-: Filtering
-:
-: .
(
.
. (
. (
-: .
. " " (
- -
. " "
(
.
(
.
( ) (
.
( ) (
.
. / .(
-:
-:
. .
. ( ) .
-:
-:
. .
. ( ) .
- -
. Relations
: :
Student Table :
:
:Course Table :
- -
:
: :
No
:
_ _
.
.
: :
Datasheet View
.
:
Table Student
- -
Table Course
Relation ships
.
: one-to-many
Primary Table
.Table Related
: one-to-one
.
: many-to-many
one-to-many
.
- -
:
:
. Type Data / .
. .
.
.
.
.
:my database
. -
.Relationships Tools -
- -
: Relational Integrity Enforce
( ) Cascade Update Related Fields
( ) Cascade Delete Related Records
.
. one-to-many Create
: one-to-many Grades Table Table Course -
Grades Table Course Table -
.
" _ " Primary Key " _ " -
. Foreign Key
" _ " onev-to-many
Grades Table " _ " Course Table
:
- -
.
. one-to-many Create
: Relationships
. -
. -
.one-to-many relationship -
-
Relationships Tools
Relationships
Table Show
: -
. -
. " " -
- -
-
.
" -
. "
" -
. "
-
( Count ) " "
. " "
) -
. ( _
: " _ " -
. -
. " " -
- -
" " -
( - - )
" _ " " "
.
" _ " -
.( )
-
" " "
."
" -
. "
. -
." " -
.
:
-
-
-
-
. -
! -
...
:
. <--
. <--
. <--
- -
:
:
: :
: Select Query
: :
.
:
:
Microsoft Access
.
.Select Query -( )
.
.
- -
.Criteria
.
Action Queries. -( )
.
:
Delete Query •
.
.
.
Update Query •
.
. .
Append Query •
.
.
Make-Table Query •
.
Microsoft Access
.
. Parameters Queries -( )
Criteria
.
. Access .
.access
- -
.
. Access
. Access
.Crosstab Query -( )
.
—
.
SQL ( )
.SQL SQL
:
: ( )
.
: ( )
.(QBE )Query By Example (Grid)
.
Select Grid
Query
:
- -
/ Field :
.
/ Table :
.
/ Sort :
.
/ Show :
Default
Criteria .
. .
Criteria / :
.
or / :
.OR
. :
.
( )
.
database my :
( ) Student Table
- -
:
New Queries -
.Design View
Show Table -
.
Student Table
. Add
- -
. -
: Student Table
_
_
: Field
Datasheet View -
- -
:
. -
Action Queries
.
Delete Query
Query Update
Append Query
Make-Table Queries
Make-Table Query
.
Microsoft Access
.
- -
" " Student Table
" "
:
New Queries -
.Design View
Show Table -
.
Table Student
.
- -
Make-Table Query Query -
:
.OK
. -
: Student Table
" "
.
. Field
Criteria -
"Yes" " "
. ”Yes“ " "
- -
Data Type
: "Yes/No"
: Yes
.
. : No
Datasheet View -
Run
:
:
”Yes“ .
Undo
: --- :( )
- -
-
Tables -
: " "
- -
" " Yes
.
:
Queries Append
.
"
"
:
New Queries -
.Design View
- -
Table Show -
.
." "
- -
:
.OK
Append -
: Grid
- -
-
:
Yes ( )
. Yes
-
:
- -
:
. Update Query
Queries Update
.
.
" "
- -
!
:
New Queries -
.Design View
Show Table -
.
Table Grades
.
- -
: Query By Example - QBE (Grid)
Field :
Table :
Table
.
Update To :
.
Criteria :
.
- -
or :
.OR
. -
(: " _ "
.Field " "
-
" _ " Update To
Criteria
: . =>
Run -
.
Undo ”Yes“
- -
.:
Grades Table -
. Delete Query
Queries Delete
- -
.
" "
( )
.
" " (
: Design View
- -
Datasheet View
..
New Queries -
.Design View
Show Table -
.
. " "
- -
: Delete Query Query -
- -
:
Field :
.
Table :
Table
.
Delete :
:
From
Where
.
Criteria :
.
or :
.OR
. -
! " "
.Field " "
" " No
: .Criteria
- -
Run -
.( )
Undo ”Yes“
.:
.:
Tables -
:
- -
: -
.
:
:
. -1
. : " " -2
-3
.
.
: -4
-5
". "
" " -6
:
- -
: -
. -8
. -
:
. -
" " -
. :
. (
: -
- -
-
." "
" " -
:
: -
-
.
. :
- -
:
.
. -
. : " " -
) -
. (
: -
- -
: -
: -
. -
:
.
- -
.F4
:
.Access
. Access
:
.
.
. Microsoft Access
:
Microsoft Access " / "
.Microsoft Access " "
.
:
Microsoft Access " / "
.Microsoft Access " "
.
:
Microsoft Access " / "
.Microsoft Access " "
.
:
.
:
- -
.
:
.
:
.
:
. Microsoft Excel OLE
.
:
. OLE
.
.
:
.
:
.
/ :
.
. :
.
.
:
.
:
.
- -
Access
:
Microsoft
. Access
:
"
" "
: ."
:
.
.
.
" " :
- -
" "
- -
.
' ' :
. " "
..
.
:
:
- -
.
-
." " " "
:" "
-
.
-
:
- -
" " " " " "
.
" " -
.
.
: " "
- -
. " "
. " "
" "
. Crtl+s
/ **
- -
) **
(
: **
- -
:
.
-: ( )
Beep
Close
. ...... / / Go to record
msgbox
Maximize
Minimize
quit
open form
open query
open table
Print out
pbrush runapp
go to record -:
. ....... ... ....
...... ......
........... :
msgbox maximize open form
- -
.
-: -
function name
............
-:
“ ”Msgbox
Inputbox(“ “)
- -
. -
-:
( ) -
-: -
() =
. -
-:
" "
Function ()
Dim as string
=inputbox(“ “)
- -
PD
- -