You are on page 1of 65

PDF

Name: Muhmmad Dhadin Taha


Address:Iraq\krikuk\ Altunkopri
Email: KOPRLOCENTER@YAHOO.COM
Microsoft Access programming

:
koprlocenter@yahoo.com
2008

.
.
Microsoft Access
Microsoft Access
.

. Windows

MDB -
.

. -

. -

. -

. -

- -
.

Access XP Access Access Access : Access


Access

Access
: -
( )
" " " "
" " " " " " "
". " "
: -

.
: -

.
: -
.
: -

.
: -
. Access
: -

.
:
( )

- -
.

:
Access
:
( ) : -
.
( ) :
: -
.
. : / -
: -
Windows .
: -
. (1)
). ) : / -
Windows OLE : -
. Word
. Web : -

:
" " : -
". "
. : -
" " " " : -
.
. : -
: -

- -
.
. : -
. : -
. : -
. : -
" " :
.
. : -
. " " Unicode : -
" " " "
" " -
". " ( )
" " " "
: " "
. -
. -
. -
: " "
. -

:
. -
-

:
. -
. -
. Access -

."( ) " " "

- -
" " " "
": " -
.
. :" " -

:
. -
. -
. -
. -
. -
. -
. -

. :

( : ) -
. ..

( : ) -
.( : )-( : )- ( : ):

.( ) -

. :

. -

. :

" " -
.

-
.

. :

- -
( - - ) -

. -

.( ) ( )

. -1

. -2

" " " -3


. " Access

" " -4

" " " "


.

. " " -5

. " " -6

- : -7
. -

( ) -8
. - - :

" " -9
" "

( ) - 10
" " " "

" F6 "
.

- -
( ) - 11
". " " "

". " - 12

" " - 13
" F6 " .( ) ) )
.( )

-
. " "

) -15
." " (

: . -

-:

. .

.
.

. .

-:

. .

. .

. .

- -
-:

. .

Del .
:

. (

. (

. (

-:

. .

.
-: .

-:

.
.

Shift .
.

. .

-:

. .

. Del .

- -
-:

. .

. .

. .

. .

-:

. .

. .

-:

.
.

" " .
.( )

.
.

-:

-:

- -
-:

. .

. .

. .

. .

. .

. .

-:

-: .
. .

. .

. .
.

: .

-:

. .

. .

- -
. .

.
.

. .

-:

.
( ) .

( ) .
.

-:

.
.

- -
. .

. .

. .

. .

-: Filtering

-:

-: .

(
.

. (

. (

-: .

. " " (

- -
. " "
(
.
(
.
( ) (
.

( ) (
.
. / .(

-:

-:

. .

. ( ) .

-:

-:

. .

. ( ) .

- -
. Relations

Microsoft Access <-- <--


Access Microsoft <-- Programs <-- Start

Blank Database New File


.my database

: :
Student Table :
:

Primary Key " "


Primary Key
. Edit

:Course Table :

Primary Key " _ "


Primary Key
. Edit
Grades 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 -

Course Student Table Show Table -


Grades Table Table
.Add

: one-to-many Grades Table Student Table -


Grades Table Student Table -
.
" _ " Primary Key " " -
. Foreign Key
" " one-to-many
Grades Table " _ " Student Table
:

- -
: 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
:

: Relational Integrity Enforce


( ) Cascade Update Related Fields
( ) Cascade Delete Related Records

- -
.
. 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

Select Query Query -

- -
. -
: 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 -
: " "

Design View " "


" " " "
: Show

- -
" " Yes
.
:

Queries Append

.
"
"

:
New Queries -
.Design View

- -
Table Show -
.

." "

: Append Query Query -

- -
:

.OK

Append -
: Grid

- -
-
:

Yes ( )

. Yes

-
:

" " Tables -

- -
:

. Update Query

Queries Update

.
.

" "

- -
!

:
New Queries -
.Design View

Show Table -
.
Table Grades
.

Make-Table Query Query -


:

- -
: Query By Example - QBE (Grid)

Field :

Table :
Table
.

Update To :
.

Criteria :
.

- -
or :
.OR

. -
(: " _ "
.Field " "
-
" _ " Update To
Criteria
: . =>

Run -

.
Undo ”Yes“

- -
.:

Grades Table -

Grades Table Tables -

. Delete Query

Queries Delete

- -
.

" "

( )
.

Yes - " "


. No

" " (
: Design View

- -
Datasheet View
..

New Queries -
.Design View

Show Table -
.
. " "

- -
: Delete Query Query -

.By Example QBE - Query (Grid)

- -
:

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

Microsoft Microsoft Access


.HTML Microsoft Excel Word
:

. Access
:
.
.
. Microsoft Access
:
Microsoft Access " / "
.Microsoft Access " "
.
:
Microsoft Access " / "
.Microsoft Access " "
.
:
Microsoft Access " / "
.Microsoft Access " "
.
:

.
:

Microsoft Internet Explorer Access

- -
.
:
.
:

.
:
. Microsoft Excel OLE
.
:
. OLE
.
.
:
.
:
.
/ :
.

. :

.
.
:
.
:
.

- -
Access

:
Microsoft
. Access
:
"
" "
: ."

:
.
.
.
" " :

- -
" "

" " " ":


:

- -
.
' ' :
. " "

..
.
:
:

- -
.

-
." " " "

:" "

-
.
-
:

- -
" " " " " "
.

" " -

.
.

" " " " " "


" "

: " "

- -
. " "

. " "

" "
. Crtl+s

/ **

- -
) **
(

: **

". " " " Labels 2


. Label

- -
:
.

-: ( )

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

- -
.

Sql visual basic

visual basic access basic

-: -

Function function name()

function name

. end function enter

-: end function function -

............
-:

“ ”Msgbox

Inputbox(“ “)

- -
. -

-:

( ) -

-: -

() =

. -

-:
" "

Function ()

Dim as string

=inputbox(“ “)

- -
PD

Name: Muhmmad dhadin Taha


Address:Iraq\krikuk\ Altunkopri
Email: KOPRLOCENTER@YAHOO.COM

- -

You might also like