Вы находитесь на странице: 1из 753

Microsoft

SQL, VBA

SQL Server

Microsoft

-
-
2004

681.3.06
32.973.26-018.2

42
42

. ., . .
Microsoft Access 2003. - .: -, 2004. 752 .: .
ISBN 5-94157-405-3
. , , , ,
,
Visual Basic . ,
. .

Microsoft SQL Server , Web-
.
.

681.3.06
32.973.26-018.2
:

.
.

No 02429 or 24.07.00. 23.07.04.


'. . . . . 60,63,
5000 . Na 835
"-". 190005, -, ., 29.
, NB 77.99.02.953..001537.03.02
13.03.2002 . .

" "
190005, -, ., 29.
ISBN 5-941 57-405-3

. ., . ., 2004
, "-", 2004

II

I. MICROSOFT ACCESS

1. Access

Microsoft Access





Access


Access

Access




Access
Access SQL Server
-
Microsoft Access
Access
Access







Access
2.

-

7
7
10
11
11
14
15
17
19
2U
21
22
27
28
29
31
32
34
35
37
37
38
38
39
39
43
43
43
44
46
5(1
50
52
53
5.5

IV


" "



-

3.
Access




" "
1



" "
OLE


Access
" "










4.






56
59
71
71
73
75
76
81

84
87
88
89
93
94
95
101
103
304
106
107
109
116
117
117
118
120
121
123
125
128
133
133
134
137
137
139
140
141
142
143
144


144

145

146

148

150

153

154

154

155
Sum
155
Count
159

160
SQL
162
SQL
164

165

166

167

167

168
SQL
169

172

173

175

176
...177

186

187

187
,

189

191

193

195

197
,

198
,

199

2(11

201

201

203
,
203

204

207

VI

5.

/

,

























6. ,

212
212
212
214
215
225
226
226
229
230
231
231
231
233
234
235
235
236
236
236
236
243
244
245
248
253
254
256
259
259
259
260
266


267

26S

269


272

272

273

273










,


7. .











8.

















VII
276
276
278
278
280
281
287
288
289
291
292
30(1
301
301
302
304
306
30S
309
310
310
310
314
32(1
320
321
321
32'2
322
323
324
326
326
328
330
33 3
333
33 J
335
336
337
340

VIII






II.
9. Access
Access





,

,





10. Access SQL-
Microsoft SQL Server
Microsoft SQL Server 2000 Desktop Engine
SQL
Access SQL Server ODBC
ODBC


SQL SQL-
SQL
SQL
SQL
SQL-


SQL- Access
Access SQL-

341
343
344
346
347
350
353

359
361
363
364
365
370
370
373
374
375
376
377
377
378
379
380
384
384
386
388
390
391
393
393
399
400
400
402
404
404
409
411
412


. Access Microsoft SQL Server
Access 2000
OLE DB
Access
,,

Access Microsoft SQL Server 2000
Desktop Engine

Access SQL-
SQL-

.-'.




12.
Web-, Access
Web-
Web-
Web-
Web-
Web-
Web-
Web-
Web- HTX/IDC
Web- ASP
Web-
,













:
Web-

/
416
416
417
419
421
423
425
428
433
434
434
43')
442
448
450
451
457
45S
459
460
460
465
466
467
469
469
47-!
474
476
477
47S
479
481
481
482
482
48>J
497
502
506
507
507
50S

III.

511

13.

513

14.

518



-.










-.






,




,




15. Visual Basic
VBA

Access

ADO
VBA

-.

520
520
521
521
522
522
523
524
524
526
527
527
528
528
529
531
532
532
533
535
535
536
536
537
537
541
544
548
551
554
556
558
558
560
562
564
566

XI

568
-
568
-
570
VBA
571

572

572

573

574
,
575

576

577

579

580
GoTo
5
Call.
5SI
If...Then...Else
581
DoLoop
583
DoCmd.
584
VBA
585
VBA
586

586

588

589

589

591

594

595

595
VBA
596
,
596
,
599

601
,

605

607

608

609
...613

614


615

621

624
SQL
627

628

XII

16.







Access


17.




,
-









-


-





"- "




638
640
640
642
643
644
648
651
652
653
657
658
661
661
662
662
662
663
664
666
667
667
667
..668
669
670
670
674
676
676
678
679
679
681
682
684
686
686
687
688
690
692



()
" "

""

;

""

- ,...,
"- "

.

,

694
696
697
700
701
703
705
708
70S
708

711

1.
" "

713



-
2.
" "


-

713
71.5
716
718
718
719
720
721


Access
, .
,
.
.
,
. .

. , . . ,

.

- .
,
. .
-
- .

, , - . Access -
.

, , -
. Access

_2

, ,

.
: ,
,
. ,
, .
Access ,
.
Access Web-,

.
.
.
: , ,
: , , , .
Access 2003 , .
, , . "-", . Access
SQL-.
Access Web- Web-; ,
Web- , Web-,

.
,
VBA,
.


Access.
. .
, .
, Access, Access ,
. . , .
, Access ,
Access 2003. ,
.
Access 2003
,
, ,
Access Web, .
, , Access ,
, . .
.
, .
, , , Access 2003.

I

MICROSOFT ACCESS

-^-

Access
Microsoft Access


( ) .

.
. () , . , .
( ) , .
,
( ), SQL (Structured Query Language).

.
.
,
.
, , , .
.

I. Microsoft Access

.

.
. . , ,
,

, , , . .
Microsoft Access
, ,
SQL-,
, . Access, , . , : , , .
, MDB-, ,
.
Access ,
.


, .
,


.
Access :
;
"3 ,
,
;
;
, ,
;

1. Access

\ ,
;
,
;
: ,
, , .
SQL, - Microsoft Visual Basic for Applications (VBA).
VBA Microsoft Visual Basic, Visual Studio.
VBA Microsoft Office:
Access, Excel, FrontPage, Outlook, PowerPoint Word. ,
,
VBA ( ). VBA
Microsoft Office.
VBA
Microsoft Office, . VBA
Access, "-", Microsoft SQL Server, Oracle . ODBC- (Open
Database Connectivity )
(Component Object Model), OLE DB. VBA OLE DB ActiveX (ADO).
, Access, Microsoft Jet. Microsoft Jet 4.0 .
Jet 4.0 Unicode,
. Unicode
, , Unicode.
Microsoft Jet Microsoft SQL Server
SQL SQL 92
Microsoft Jet 4.0 SQL.
Access ,
:
"-" Access , SQL
Server.

10

I. Microsoft Access

OLE DB Microsoft Jet.


Access . Access. "" Access .

,
. ,
Microsoft Office Microsoft SQL Server Desktop Engine (
Microsoft Data Engine, MSDE), , Microsoft SQL Server 2000,
, .
"-" , .
~3 -
.
. Access
Web- Access SQL-.
Web-
. Access
, Access .


Microsoft Internet Explorer 5.01 SP2, Microsoft Internet Explorer 5. 5
.
Internet Explorer 5. 5 .


Access 2003 Microsoft Office 2003 (
Professional, Professional with FrontPage, Professional Special Edition Developer).
Access 2002 Pentium III 128 RAM, -

1. Access

Windows XP . Windows XP Windows; Office 2003 ,


Office 2003. Windows 2000 3,
Windows ME, 98 NT, Microsoft Office 2003
.
, Access 2003
, Pentium 233
64 . Office 2003 .
Office 2003 Professional Professional Special
Edition 250 ,
115 , .
. , Windows 2000/XP,
50
. Office
.
Super VGA (800x600).
256 . Office 2003 CD-ROM.




, ,
.

, ,
.
, , .
, ^
. -

12

I. Microsoft Access^

. , , ,
. , .
, .
.
.
, ,
. . .
, .
.
()
() .
.
.
.

.
.
.
~~ (1:1) --
(1:). 1:1 , . 1: ,
,
.
, 1:,
,
"", . ,
"" ,
, . ,
. 1.1 , 1: ()

1. Access

13

.
, .

001
002
004
005
006
:

1:
!,^

778957651111
789889*98798
456575675677
:

: ^
1 1 1-1
1 1
1 1 1C .11
111
01.01.2004 135400,00
T1DD1
222
29.02.2004 773 024,00001
777
14.05.2004 250 000,00

01.01 2004
75 160,00
002
555
12.01.2003
:

. 1.1.


.
.
,
. (, , .) ,
, .
.
Access 2000, , .
. .
. .
. ,
, (. 1.2), --,
,

I. Microsoft Access

EBB

*
1
778957651111
.


01.01.2004
+ 111
1 135400,00.
* .
29.02 2004
222
77 024 ,00.
i 777
14.06.2004
250000,00.
0,00.
L*_
002
789809798798



01.01.2004

75 160 ,00
555
12.01.2003
1 2 000, 00
23.05.2004
30 000, OQp. J
88
12.09.2004
999
450000,00.
.
*
004
456575675(577

-
005
77124357822

-
006
587879879123

,
:

'

: LJ!

> ]H|t* 3

. 1.2.


Access . : ,
.
, -
- ,
.
,
.
, ,
,
.
, , , , ,
.

1. Access

75

,
, .

Access
Access mdb :
, , ,
;
D , , , , .
,
, , , . , . ,
.

. , , . , Visual Basic for
Applications (VBA), .
, , .
,
VBA, .
Access.
.
(Tables)

. () ().

. .
Access 32 768 ( ,
. .). 2048 .
dBase, FoxPro, Paradox , "-", Microsoft
SQL Server, , Excel Lotus 1/2/3. -

16

I. Microsoft Access

,
Access.
(Queries).
. . ,
, .
. SQL . , ,
.
(Relationships) ,
,
, , .
Access,
.
Access | (Tools Relationships).
(Forms) . , .
.
, , , .
. , ,
. .
(Reports)
, ,
. , .
.
(Data Access Pages) Web,
, ,
.
(Macro) , , . .

1. Access

, .
(Modules) Visual Basic for Applications.
-, -,

, . ,
,
.
Access
.
.
Access (shortcuts),
.


,
,
(. 1.3). .
* :

* :
2004
" : ' '
:

"

111
222
" ; "
'
'7 ~
+ +* + , -1
.+ .. + -.'
- ; + :-'
", "! " ": " "
:
40
CD-ROM Panasonic IDE
24
16
1
1

5
DIMM64MPC100
i "
5
15
15
FDD3j5

15
3
11
8
HDD Maxtor 20GB
",-,
8
3
3
13
10
' Genius Liv ~"in
10
4
4
23
13
17LG
!
12
12
12
23
11
'
]|
1
10

. 1..

, ,

*"

I. Microsoft Access


( ), ( ,
() ( ).

. , , , . ,

. ' .

, (. 1.4).
2004"""
"

CD-ROW
Panasonic

IDE

DIMM 64M

PCI 00

FDD 3,5

HDD Maxtor 3e K.spra


20GB
Genius Liv

1TLG

'

. 1.4.

, ,

Access , , ,
, ;
, -

1. Access

^^^

/9

, Microsoft
Internet Explorer 5.1 SP2 .
,
,
, .
Access ,
SQL; Access , , SQL .
OLAP (OnLine Analytic Processing),
Microsoft OLAP Service SQL Server.


, Access: , ,
, , , MDB. .

.
Access , .

MDE, ADE.
VBA , , , , ,
. ADE
, , . | [ MDE-.

Access , ,
. , , .
Access, , MSDE, , SQL-, .
adp .
SQL-
.

20

/^ Microsoft Access

Access
Access Microsoft Windows
, . Access
- . Microsoft Office
, .
Access, Microsoft Office,
, . (New Fi]e)
, ,
(Search File)
, (Clipboard)
.
Access ,

. ,
. Access .

, .
Access HTML,
. Access, , .
Access 2002,
, .
.

.
. ,
,
.
(), , Access 2003 -.
Access 2003 - , ,
-. -

1. Access

, , -.
, , ,
, - Outlook Express. Outlook .
Access -.
-, Microsoft , .
Microsoft Office 2003 Microsoft Office . ,
Windows XP Windows Windows XP/2000.
Drag and Drop . ,

.
.
- .

. Microsoft Access. Access , ,
Microsoft Word Microsoft Excel.
. Microsoft Excel
Microsoft Access.
OLE ,
.
Access IntelliSense, . (Office
Assistant) -
, ,
Access.


Access ,
, SQL Microsoft Visual Basic for Applications.

22_

I. Microsoft Access

: , , , : , ,
, (Design). , . ,
, .
Access , , ,
.
, , ,
- .
Access .
,
, , , , , . ,
( ) , .
.
(Name AntoCorrect) (General), ) (Tools|Options).

Access
Access
, , , ;
.
(Wizard), .
(Lookup Wizard) .


(Lookup Wizard). ]
(lnsert|Lookup Column).

1. Access

, .
(Crosstab Query Wizard) , , , -- , ,
.
. ,
, . -.
SQL, , .

( ). - .

T001

17|_6
[1 000,00.
15

COJ

. 1.5. ,

(Chart Wizard) , .
. 1.5 ,
-

24

I. Microsoft Access
/

. [
, , .


. ] (Conditional
Formatting). , , ,
.
, , | (AutoFormat).
(Command Button Wizard Page Command Button Wizard)

. , .

VBA. , Visual
Basic,
.
(Switchboard Manager) , .
(Table Analyzer Wizard) .
,
.
| (Tools Analyze)
:
(Performance), ;
(Documenter),
Word.
(PivotTable Wizard) Access 2002/2003 , ,
.

1. Access

25

( | | (File Get External Data|Import))


, .
Access, Excel, Lotus, Paradox, dBase
. HTML-
Microsoft Access. , ,
XML Access, Microsoft SQL Server Microsoft SQL
Server Desktop Engine. XML Access. XML
.
( | |
(File Get External Data Link Tables)) ,
, ,
, , .

. ,
- . , :
. ,
,
.
( | (File|Export)) ( )
Access, Access,
. ,
, . , Access ( mdb), , , ,
Access (
adp) XML- ,
.
XSL. XML
, .
(Label Wizard)
. .

26

I. Microsoft Access

(User-Level Security Wizard)


.
, , , , . .
(Database Splitter Wizard) , ,
, , , . , ,
, , , , ,
.
SQL Server (Upsizing Wizard)
Access ( mdb) Microsoft SQL
Server Access (
adp).
.
SQL-,
Access.
. , , ,
. ,
.
Microsoft SQL Server (Microsoft SQL Server
Database Wizard) Microsoft- Access
SQL- .
(Database Utilities) (Convert
Database)
( Access To Current Access Database
Version). ,
( Access To Prior Access
Database Version).
Access 2003 Access 2000/2002
.
Microsoft Access 2002/2003 Microsoft Access 2003.
Access 2003 Access 2000. |,
(Other) Access.

1. Access

27

(Database Utilities)
(Compact and Repair Database)
- .
,
.
. , , Access , ,
.


, . .

. .
Access , , , .
..
, , (New) Access, (New file)
. (Database) (. 1.6)
. , Web- Microsoft Office,
Office Online.
, , ,
. .
, .
, ,
Access. , ,
, .
, , ,
. , -

26

I. Microsoft Access

, , , .

-i

Office Online

. 1.6.


, ,
Access .
, , .
.
Access \.
, , ,
, , , . ,
,
: ,
.

1. Access

29

,
.

.
Access
- Visual Basic for
Applications (VBA) 6.4, . VBA , , .
VBA (,
, , . .), , .
. VBA , .
VBA :
VBA, , , , . Microsoft Office, Visual
Basic, .
Office
.
, VBA,
, VBA, Visual Basic . VBA Visual Basic .
.
Access VBA.
VBA,
VBA.



Access OLE (Object Linking and Embedding
),
. OLE . -

30

I. Microsoft Access

, , .
- , .
,
. ,
.
Windows: , , , . , , , ,
: , , ,
- . . , Access .
.
Access .
Access, dBase, Paradox, Oracle Microsoft SQL Sewer,
Microsoft Excel, Lotus 1/2/3, HTML
XML, , , , Microsoft Exchange.
.
ODBC (Open Database Connectivity), , , , OLE DB,
, COM. OLE DB
,
, ,
.
ODBC ,
Access, . , ,
, Access.
Microsoft SQL Server Access , , .
Microsoft Jet OLE DB.
Access. Access
.

1. Access

3i


(Intranet)
, "".
(. 1.7). ,
, .
Internet

Access

Internet Explorer
. 1.7. SQL- Web-

Access , -
, SQL Server.
Access.

Web-, ,
. ,
Access SQL Server.

32_

/. Microsoft Access

Access XML XML-.


, Web- - XML Extensible Markup Language) XSL (Extensible
Stylesheet Language).
, ,
Web, .

Access
, , , . Access


.
,
, . .
.
Windows 9* Windows NT/2000/XP.
. , , Access
, .
Access , ,
.
.
,
.
. Microsoft
Windows NT/2000/XP NetWare Novell. Windows NT/2000/XP
Windows NT/2000/XP Server,
, Windows NT/2000/XP Workstation
Professional,
, Access.

.
, ,
, , , .

1. Access

33

Access .
. .
Access
, . Access
.

(Open databases using record level locking) ( || - ToolsOptionsjAdvanced). , .
, ,
, Access . Access,
. ,
, ,
. ,
. Microsoft Jet .

|) (Tools]ReplicationjCreate
Replica). Access
.
. ,
,
, .
, (Synchronize Now).
-
, .
' , (Resolve Conflicts).
.
.

34

I. Microsoft Access

. .

Access SQL Server


15 .
"-". - ,
, ,
.

Access . , ,
SQL Server (. . 1.7). , , . SQL (Stinctured Query Language).
: SQL Server Microsoft, Oracle
Server Oracle NetWare SQL Novell. SQL-
.
Microsoft Access SQL
ODBC. ODBC (Open Database
Connectivity) SQL.
ODBC. MS Access
ODBC MS SQL Server Oracle SQL Server.
SQL

. Access, Excel, FoxPro
, ODBC,
SQL- .
Access , , .
SQL-, . , .
, SQL-cepuepa.
.

1. Access

__

_______

35

Access -,
, ,
, , SQL-. -
(, , , ) , SQL. Access, SQL-, , Microsoft Jet, :;;
Microsoft SQL Server OLE DB.
Access OLE DB
SQL Server, Access, .
Access 2002/2003 SQL Server Microsoft SQL
Server Desktop Engine { MSDE), ,
SQL Server, , . . MSDE , SQL
Server. MSDE
SQL-. ,
, SQL-.

,
SQL-. ,
SQL- .

MSDE - Microsoft Office 2(]03,


Microsoft Windows 98,
Microsoft Windows 2000/XP . MSDE SQL Server Service Manager.
MSDE MSSQLSen/er.
Start/Continue MSDE. SQL Server Service Manager
Autostart service when OS starts.

-
, -

36

I. Microsoft Access

- (. . 1.7).
-, .
Access 2003 - , Web- .
Access Web-
, Jet SQL Server.
,
.
, Access , . Web-,
.
, Access, ,
.
.
, ,
Internet Explorer.
, HTML- Web-.
,
. Web-, .

-
. XML (Extensible Markup Language)
. HTML, , . HTML Web, XML . XML ,
. XML . XML -
.
Microsoft Access XML, a
,
XML.

1. Access

XML ,
Web. XML
, XSL
.

Microsoft Access
Access
Access
Windows 98/ME/
NT/2000/XP Access.
Access
|)1

' ' '|

-
-

f-J

."'- Office Online


-
.Microsoft Office OnSne

Access

: " "

_,1
._ _
. m db
nO_2002.mdb
5ystemi.mdw

. 1.8. Microsoft Access

/. Microsoft Access

Access,
. , , :
Windows XP
, . , , Microsoft Access
. Microsoft Access , . Microsoft Access,
, . 1.8.
Access Windows. . ,
Microsoft Access, .
. ( ).
, , 1.9.

. 1.9. Access

Access .

Access
Access.


(. . 1.7) , - Microsoft Access , .
(Minimize) (l~J) Access,
Access Windows (. 1.10).

. 1.10. Windows

1. Access

39

Access ,
, .
(Maximize) () .
(Close) (I2SJI) .
Access .
(Maximize)
(Restore) (1),
, .

, <11>+<>
<Alt>+<>.
, .
, .


,
, . Access. , . Access
. Access ,
.


-, . , , ,
.

, Access.
,
, . ,
. ,
.
Access ,
-

I. Microsoft Access

. Access . ,
Access (. . 1.8) (Database).
, ,
. ,
, , , . (. 1.11), .
-

,..

Ctrl+N

..,

. , .

Ctrl+0

Ctrl+5

,.,

F7

...

Ctrl+C

CtH+V

Office

Alt+Shift+Fl t
AIM-ENTER

...

: Microsoft Office Access Ft

,..
. , .

. 1.11.

1. Access

41

, (Add or Remove
Buttons).
(. 1.11). .
.

,
.

| (View|Toolbars).
(Customize)
, (Toolbars) Access,
(. 1.12). .

:

-
"


"
"
"
~
"
"
?
"
"
"
"

..

. 1.12.

I, Microsoft Access


(Commands) (. 1.13). , .
. , , ,
Access. , , , , .

.

,
.
:

*
2MMWHM -'-
^


<
.^

i^j'
. , , .
.;

I
i
_* - Office, . ,

* 1

...

. 1.13.

,
,
. (Modify Selection) , . .
, , , , . .

1. Access

43

, (Customize) (Options) (Show


Screen Tips on toolbars).

Access
,
.


Access , Microsoft Office, , .
.
Access (. . 1.8).

,
| (ToolsjOptions). (View)
.

Access : ,
Access, , . , , .
.
, ,
.


,
, , . (Ready) , Access . , , <Caps Lock>, <Num Lock>, <ScrollLock>
.



, , . . , .

'

I. Microsoft Access


Microsoft Access , , \
(. . 1.8).
,
. , .
, ,
.
| (FilejOpen)
(Open) .
. 1.14.

. 1.14. Access

1. Access

45

, Access, ,
, - < >:
(Database) .
Access ,
.

(Objects), Access:
(Tables), (Queries), (Forms), (Reports),
(Pages), (Macros), (Modules). , (Groups). (Groups) (Favorites). .
.
.
(Favorites)
(New Groups), , ,
(Add to Group) , . , .
.

. , ,
.
:
(Open), , , , (Preview), , (Run), ;
G (Design) ;
(New)
.


.

. , , .

46

'

I. Microsoft Access

(. . 1.14)
(Database).
Access ,
.

Access
Access
.
Access, Microsoft Office Windows, .
. , .
,
. ,
. , . . .
.
. ,
, Web- www.Microsoft.com.

Access |: Microsoft Access Fl
(HelpjMicrosoft Access Help Fl). Access. .
.
.
. ,
(. 1.15).
,
Access Web- Microsoft Office
Online. Web- , ,
, , , .

Office.

1. Access

'

2050 ,
.

"~

.I_-*jiV !
Access

or ,
(&

Access
,
,

,

,
,

.
, ,
:
,
,
, ,
.



.

^
*(

^ " i
-1^' Access
>i>i
^ Microsoft Access
^
^
-/' Microsoft Access
^ Microsoft
f
:
?
-;#?
^
Vf ,
-$'

> Microsoft Access


k
!>
)
^
*

. 1.15.

Web- , , , , .
, Office.

48

I. Microsoft Access

, , Access Web- Microsoft Office Online.


,
.
. , ,
, . ,
.
,
.
Access
.

, , . 1.16.
. , .

Office. ^

.


?
* ,
;
,

. 1.16.

Access.
, , . , ,
.

1. Access

49


1.
Access?
2. ?
3. ?
4. ?
5.
?
6. ?
7. ?
8. ?

1. .
2.
.
3. .
4. .

5. .
6. .
7. .
8. .


Access .
.

. ,
.
(),
, . ,
, .
, ,
1:. Access .



,
,
. ,
- .
,
, .
().
,

2.

5,7

.
.

. ( )
, , ,

, . () .
. ,
, , . , Access

.
Access ,
. 2.1.

0
3

ml]

RP



1 . ..!_.. 1.. 1

_ _

f i l l



CIJ.:X.I 1 1 1


Access

. .


Access


1-"| Access


/ /

RP
If

1 1 1 I I l"'"l ' 1
' * ' -'JJ



(~| Access


Access

I- i

. 2.1. Access
3 . 835

52

I. Microsoft Access


(), , --
(1:).


, . , . ,
, , .

Access. , .
,
.
,
, ,
. , .
Access
,
.
,
, .
,
,
Access, .

-

- ()
() . ,

2.

.
.


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

. , , , . . ( ), , , . . ( ).
, , , . . . , .
,
, , -

I. Microsoft Access

54

.
.

( ), . . +
+ , . . ,
. ,
( ), . 2.1.
2.1.

20

"~~ ^


(, ),
, .


.
. 2.2. _ ( ) , + ( ) +
( ) .

+ +

. 2.2.

55

.
, :
;
, . .
;
, , ;

, . . , , ;
, . . .
(~


,
,
.



, , () . , . - , , ,
, - .
.

56

I. Microsoft Access

.

. .

, , , , ,
. ,
.
, -
.
, .

.
.

. .



:
;
"3 .
, -
.
. - , , , ,
, , . . . ;
,
, (, . .) .

2.

- -:
- ()
( , );
- ,
, ( , ).
, - , - , ;
] ()
.
. , .
()
.
.
, ,
. . .

, ()
().
. , . " "
(. 2.3),
.

KODT
NAIM
CENA
EI

. 2.3,
" "

58

I. Microsoft Access


, .
.
,
, .
1. .
. ( ),
. , ,
(), ,
. . (,
, ). - (, ) .
(, ,
. .), , . (),
( ).

.
2. , . . ( ),
.
,
. 2.2.

2.
2.2.

()

3. , .
. , .
.
.

.
.

, , , -- (M:N). ,
- .

-
, , .


" "

" ".

/. Microsoft Access


,
.
, ,
, .
:
;
();
, ;
;
3 - .
-
.
" ",
" ", " ". . 2.4, 2.5, 2.6 .
,

. 2.4. " , '


/, /

. 2.5. " "

2.

. 2.6. " "

. . 2.7.

h 9
"

200

"

()

. 2.7.

- ()

(. 2.8).
, ,
/ .

62

I. Microsoft Access

, _

-:

200

_200_ .

_ .

. 2.8.

,
,
, .

, , ( ).
, ,
:
, . .
,
. , ,
.
.
" ", , . 2.9. .

2.

S3


, . , (HAHMJTOB),
(), () , .
(_). , _ .

, , .

, 2.9.

, . .
, . .

.
(_).
. (_,
, ,
, , , , .

.

. 2.3.

I. Microsoft Access
2.3.

TOE

_
_

" ". " ", (. . 2.9). -- .


(__), (_),

(_) (_), . ,
(_) . , , . . , .
.

^ _ , , .


" " . 2.10.
, _
. ,

2.

. _
_ _. ,
.

. 2.10.

, -
, .
,
_, ,
(), _. () _
_. _
__ . .
. 2.4.
2.4.
" "
()

__

__

66

I. Microsoft Access

, ,
.
" "
. 2.5.
2.5.
" "

_
_
_
_

, " "
.
, , ,
.

"".
"",
(. 2.11). .

"".
.
.
: , ( ,
) , ,

2.
. .
""

*~

. 2.11. "'
, , , , , . , , ,
.
, , .
. ( ) ,
, . .
.
, .

, , , , ,
.
, ,

I. Microsoft Access

68

, ,
. - , , ,


,
.
,
. , , .
+ .

,
,
, . . , + + (. . 2.11).
"". , ,
, .
. , ,

(). "" . 2.6.
2.6.
""

_
_

_


2.

69

"".
. .
, (. .
). + .

.( ) -.

, ,
( + ).
.
,
.
, . , , . . . , ', ' "" .
' ' .
' .-

, .
( ),
, . ,
- .
'' ' . ( -

) ' ,
..'

, ,
. ( ),
( ), ( ).
, , , , , .

. , -

I. Microsoft Access

70

, . . , .
,
.

, , , , ,
.
, , ,
,
.
- ()
. ,
. ,
[] + -f .
. 2.12
.

""

*-

. 2.12.

2.

71

. , , , .
. , ,
(). . 2.7.
2.7.
""


()

_
__
_
_


.
. , , , ,
. ,
.
, ,
, , , . .


:
- (1:1);
- (1:);
- (M:N).

I. Microsoft Access

- ,
() (), , ()
(). ,
, ,
, . . . -
. 2.13. - : , . .
1:1

. 2.13.
-

- (1:) ,
()
(), () ().
- . 2.14.

1:

. 2.14.
-

, , . .
. - : , , . .
- (M:N) , () (), , ()
().
M:N . 2.15.

'N
-

'

. 2.15.
-

-
. , , "".
- . , -
- (. 2.16).

1 :

:N


Kb
1

. 2.16. :
-

- , (. . 2.16).
-, ,
. - , . . , - .
- , ,
.



, , .
" ".

74_

I. Microsoft Access

- (1:), . .
, .
, , 1:.
- ,
(). ""
, ,
^, . - ~~
_,
, .
"" ,
- .
-> _.
- ,
( )
,
( ).
> , - .
-* -, ,
.
, _ - - ,
- - (. 2.17).
. 2.8 -
.
2.8.


1 ;
1:

2.

75

2.8 ()

M:N

\ /

\ /
N

. 2.17. -

-

. 2.18 - , .
- , . , .
,
, - .

I. Microsoft Access

, , .
, .
.

.

. 2.18. -
" "



Access
-
. .
:

, ()

<^2.

77

. . () ,
. () .
.
1: .

, , (,
).
,
- " " 1:. ,
(_),
(. . 2.6).
_ , _ (. . 2.6).
.
(_),
(. . 2.7).
_ (_),
__
(. . 2.6).

-- _ + _,
(. . 2.7).
Access , . -

. - .
(. . 2.18), ,
Access . 2.19.

, ,
.
.

I. - Microsoft Access

- _

_

_

'

_
1 _
_

_
-

- _

_

. 2.19.
" "

1. ?
2. ?
3. ?
4.
?
5. ?.
6. , , ?
7. , ,
, ?
8. , ,
, ?

2.

79

9. ?
10. ,
?
. .
12.
?
13. .
14. - ()
1:. ?
15. ?
16. -

17. - -?
18.
?

19. ""?
20. , - ?
21. ,
?
22. , ?
23.
?

1. , , .
2. , , .
3. , .
4. () .
5. ,
, Access.

80

/. Microsoft Access

6. .

7. .

8. .
9. _ .
10. .:

11. ;
; ^ ; , ,
.

12. .
13. -, -, -.
14. .
15. , .
16. .

17. "".
18.

19- .
20. , ,
, .
21. .
22. , .

23. .


Access , . .
, . -,
-- --. - ,
, .
, 2.
. . , . Access
.
, Access .
,
.
, . .
.
. /, . (
. 5, 6) ,
.

82

4acTbJ. Microsoft Access

6.
.

,
. ,

.
Microsoft Access
(. . 1.7 /). .
,
. .

^
Access
| (ToolsjOptions), (View)
.
|
(File)New) (New) (ill)
(Database).
(New) : , ,
.
(New Database)
.
(Data Access Page)
Web- . , , Microsoft Access Microsoft SQL Server no
.
Microsoft Access.
,
. , (Pages) ,
. ,

3.

83

, , ,
.

Access.
.
Microsoft Internet Explorer 5.01 SP2
. Access Office Developer Edition
.
Project (Existing Database)
Project (New Database) , ,
SQL-.

. Microsoft SQL Server
11.

.

j (

~

. , .

, , .

(,

(
)

Office Online

. 3.1.
4 . 835

84

J^ Microsoft Access^

, ( ) Web Microsoft Office Online (www.Microsoft.com). ,


. (. 3.1).
(General)
. (Blank Database)
. .
,
.


Access
Access ,
. , .

(New Database).
(File New Database) (. 3.2) (Save in) ,
, , , "
TOBapOB.mdb", (Create).
< >: (Database).

, Access, MS Office, (My Documents). ] (Tools|Options)


(General) (Default Database
Folder) , . | (Tools|Options) .

, ,
255 , , Microsoft Windows 98/
NT 4.0 215 , , Microsoft Windows 2000/XP
Millennium Edition. : \, / , - , : * , ? , " , < , > , |.

3.

Microsoft Access
(*.mdb) (Microsoft Access Databases),
, mdb. Windows
Access.

_2003,^

_-J

- ,jj ' ^

_j . tl < *
jj J f !

~4

'j;:;'|
flfp 1

:|
;: j

.'"}

( fed - is *

. mdb

Microsoft Office Access (*.mdb)

1
*

. 3.2.

Windows
. ,
Windows
| .


(File New Database) , (. . 3.2). (File of
type) Microsoft Access (*.mdb) (Microsoft
Access Databases).

86

I. Microsoft Access

(File New
Database) , . UES . (Up One Level)
. (Views)
. (Tools) ,
. , .
,
, , .
< >: (Database) (. 3.3)
< > (File New Database) (. . 3.2).

: ( Access 2002 - 2003)

'^. | X 1


. 3.3. " "


{ )

(Objects)
, :
, , , , , .

3.

87

. "
Microsoft Access" 1.


.
: , ,
, , , ,
.
.
(. . 3.3)
(Tables) (New).
(New Table) (. 3.4). ( ) ,

(. . 3.3). , .

. 3.4.

(Create table in Design


View) (Design View)
(New Table) , .
.

I. Microsoft Access



!:
(TableI: Table),
(. 3.5).
SB ! :

_

- )

OL








IME
IME
-


,
.

F1.

. 3.5.

,
(Table Design) (. 3.6).

, , Access. () .

3.
*

*
.' ,.,

[:

^ | ^J.
4

r-'J^,

Ctrl+S

.,,

v" Jj
L

,.,
-'

/*

v [^J

F7

Ctrl+X

Ctrl+C

v .^"

Ctrl+V

Iv i,J^<;.i
PJ i;

/
! -^ |

- :-:. P.'."- IK.ilV

^ \'&
v
\ -s

*^
--

-i-t TI rifiMi

01 !

Alt+ENTER

^ !;3! ...
' ^3

F1 1

v J -. jj;

^^^ : Microsoft Office Access Fl


?

I Cfipoc

. 3.6.


(Table) (. . 3.5) (Field Name), (Data Type), (Description)
(Field Properties). (General)
, , , , (. . 3.5).
(Lookup) (Display Control):
, .

I. Microsoft Access


(Field Name).
, Access. , , , ".", "!",

"[ ]".
ASCII 00 31.
64 .
(Data Type). ,
, ,
. Access .
(. . 3.5).
, Access,
.
" ".
Access : " ,
Microsoft Access (MDB)" " (MDB)".

(General)
. (. . 3.5).
, .
(Field Size) , . 1
255 ( 50 ). :
(Byte) 0 255, 1 ;

(Integer) -32 768 32 767, 2 ;

(Long Integer) -2 147 483 648


2 147 483 647, 4 ;

(Single) 3,438
3,438 7 , 4 ;

(Double) -1,797 10308


1,797308 15 , 8 ;
(Decimal) 1038 1 1038 1
( ,
adp) -1028 1 1028 - 1 ( mdb)
28 , 12 ;

3.
(Replication ID). (Globally unique identifier, GUID), 16 .
Access
, , ,
.
:
(Long Integer) 4 ;
(Replication ID) 16 .
,
, . .
.
, ,
.
(Format)
, .
Access
(Number), / (Date/Time),
(Yes/No) (Currency). ,
Microsoft Windows. , OLE, .


(Format).
(DecimalPlaces) .
0 15. ( (Auto))
(Format). ,
,
(Format) (General
Namber). (DecimalPlaces) , ,
.
(FieldSize).
(Caption) , ,
, .

92

I. Microsoft Access

G (DefaultValue) ,
. , = N O W ( ) ,
. , , .
(DefaultValue) . 255 . (AutoNumber)
OLE (OLE Object).
(ValidationRule)
, , ,
(ValidationText).
(ValidationText) , ,
(ValidationRule).

, , .

.


(DisplayControl) (Lookup) (. . 3.5).
,
(Text Box), (List Box)
(Combo Box).
(List Box)
(Combo Box), (Lookup) ,
.
, ,
.

(Lookup
Wizard), (Lookup) .

3.

93



() , .
, , .
, ,
Null. ,
Access Null
. ,
( 10). ,
, (Table Design) (Primary Key)
) (Edit Primary Key).
.
, . : <...> (Indexes: <...>) (. 3.7) (Indexes) ) (View)Indexes).

f :

j PrimaryKeyJ

[5]

1

_
KCVLCK
_

"'


,
j

. 3.7.

. 3.7 ,
PrimaryKey, (Field Name) ,
. .

Access .
, .

94

I, Microsoft Access
, , .
,

, . , ,
. 32
.

(AutoNumber).
( 1) . .
. 4 , J6 . .
. , Access
. Access
(AutoNumber).


" "

2 "
".
, Access
,
(New Database). (File
New Database) , , " .mdb" (. .-3.2).
(. . 3.3)
: ( Access 2002 2003).

" "
(. . 2.3, 2.5, 2.6, 2.7 2),
, , . 3.1.

3.

95


. (. . 3.3) (Tables) (New). (New
Table) (. . 3.4) (Design View).
,
(Create table in Design View) pa
.
. 3.1 , !: (. . 3.8) (Field Name)
(Data Type).
^

. 15 4 . 8 .
(General) :
(Field Size):
_ , ,
(Single);
,
;
(Format):
(Currency).
Microsoft
Windows : 123 456 789,00 ;
_ .
_,
,
100 .
, , 15%, 7,5%;
(DecimalPlaces)
_ 0;

2,

(Caption), (ValidationRule),
(Validation-Text) , . 3.1.

I. Microsoft Access
3.1.

__

TOE

25

OLE

~)
_ : >-, 05
And <=0, 35 : " >=5% <=35%".
; >=0 And <=35000
: " >=0 <:=35 000".

, , .
(. 3.9). (ValidationRule). (. . 3.8).

<; > < . . .

OK Access
(ValidationRule).

3.

97

:

^

_[

0

0
>=0,OSAnd <=0,35
>-5 % <=35%

[
'
:

.



.

>

F1.

. 3.8.

. 3.9.

. _, ,
(Primary Key).

98

t. Microsoft Access

.
. 3.1.
. { (File|Save)
(Save). (Save As) ! (. 3.10).

. 3.10.

, .
(Tables) : .
, .
, , (View)
(. . 3.6)
(. 3.11).

. 3.11.

1.
, , , ,
, _. (. 1).

3.

99

, ,
, , , _ " ".
OLE
, , Paint
bmp.
OLE (OLE Object).
. Access . .
.

OLE (Object Linking and Embedding )


Windows.
OLE , . , ,
.
, , , (WAV), MIDI {- ), (FLI, ),
(AVI), , . Access, OLE, Microsoft.
. , ,
, .
. .
.
. ,
. , , , , , .
,
.
^f
MEMO
, .
MEMO (Memo).

100

I. Microsoft Access

, <Shift>+<F2>.

, , Microsoft Word, ,
OLE (OLE Object).

.

(Hyperlink) .
(Hyperlink)
Access , Microsoft Office , Web- .
,
.
( _
).

() _ _.
, <Ctrl>, (Primary Key).

_.

/
_. /.
,
. .


_ . ,
( , )
, , , -

3.

101

. ,
00.00.0000, 00->L<LL0000. "" , 0 9 . "9" .
"L"
Z. ">" "<"
. , .
: (999)000-0099, .
. 5 7. 9 ,
,
.



, .
(Datasheet View). (Open)
(. . 3.3).
(View)
(. . 3.6) ) (ViewjDatasheet).
(Table Datasheet), . 3.12.

, . , . . (Admin) .
|| (Tools|Security|User And Group Permissions).

, .
| (Records|Data Entry)

102

I. Microsoft Access

.
( (Records|Remove Filter/Sort).

,37. .#

*

..,

* haJi

Ctrl+S

v | -^ ,,

F7

,.,

CW+C

Ctrl+V

CtH+Z

,.,

CW+K






...

Ctrl+F

Ctrl++


QKHO

^:

F1I


Microsoft Office Access

Fl

.,.
'--
...
,..

. 3.12.

, , , -

3.

103

. .
Access , . ,
, , Access
. , , , . , .

. , -

.
.


. , ,
, , , ,
, .
, , .
.
. (Format) ( ) (Formatting (Datasheet)),
.

:
.
, .
.
;
.
, ,
.
, ;

104

I. Microsoft Access

. ,
;
.
.
, .
( );
, , ,
(Format);
(
(File|Save Layout) " '< >'
(Do you want to save changes to the layout of table < >1).

" "
. :
(Open). (Datasheet
View). () (. 3.13) ().
, - 2.
:

031
002
003

[ ]

; 17LG
6587,.
5%;
20%:
FDD 3,5
363,00.
:
HDDMax1or20GB
2590,00.
10%:
MiniTower
916,00.
CD-ROM Panasonic IDE 1 153,00. 1
360,00.
DIMM64MPC10Q
EPSON ST.A4
2432,00.

2 338,00.
. Genius Liv
789,00.
Genius ext
1 295,00. .
' 00. "
10 |>#1 10


. 3.13.

3.

105

( ,
,
) . .
,
<Esc> ] .
<>
. ( ) <Esc> | / (Edit|
Undo Current Field/Record).
( ). ()
, | (Edit Undo Saved
Record).

(Undo) , . ,
. .

, (*).

|]
(New
(Table Dataslieet).
.

(Edit|Go To|New Record) Record)


-


, , ,
.


] (Records Save Record).

(Delete Record) | (Edit|Delete Record). Access -

I. Microsoft Access

106

. .
. Access
. ,
. ,
. / (Undo Typing). )
(Records|Save Record).

OLE
OLE
. Paint
bmp.
.
(CMI . 3.13).
] (Insert|Object). (. 3.14)
(Create from File).
Microsoft Office Access
:
*

OK

j
I Microsoft Excel
;
, Microsoft PowerPoint
1
Microsoft Word
Paintbrush
!_ Microsoft PowerPoint

"


'
Paintbrush'.

. 3.14.

(. 3.15) .
(Browse), ,
.

3.

107

Microsoft Office Access


:
***

;E;\Documents and Settings\NVP\MoK |!

(*

" g

- -

. 3.15.

(Link) , ,
.
. .
(Link).
, .

. 3.13, ,
.

.
,
, (Insert Object) (Display As Icon).
.



_.
_ -- , .
_ - .
.
. ,
, -

I. Microsoft Access

. , , .
_
,
( ) .
,
.

(. 3.16).

222

444
555

_
08.01.2003 001

_ :
_

CPOKJIOCT | _ | _

. 3.16. _

(Tile Horizontally) (Tile Vertically)


(Windows).

, . " ", ,

.
, .

3.

109




. .
.
_ _ ( )
, . _ (. . 3.5). _ (Data Type),
(Lookup Wizard). (Create Lookup) ,
(. 3.17).


,
.
? 9
( |0 " "
| ,
*~ .

. 3.17.

, (. 3.18).
,
(. 3.19).

I. Microsoft Access

110


,
.

;
;
;
: _
:
;
;

-'

<

. 3.18. ,



?
" ".


_
_

<

>

. 3.19. ,


. . -

3.

111

, ,
(. 3.20).
_ :

J? ^
_
1

7'

MHHJTOCT
"


5ELECT ,_ FROM ;
1

2., 54
8
2,54

. 3.20. , ,

_
, _,
(. 3.21). _.
__ ,
.
(. . 3.20)
, ,
, .
, . 3.22. , ,
.
,
, .

112

I. Microsoft Access

:
KQflJQB

| _

111
111

111

_ |

100
20

10
1
2
2
3
0

001
TQ01
TQ03
004

10
4
5
15
0

"
~50

100
12
10
30
0

1C

. 3.21.

Microsoft Office Access


.
, .

. 3.22.

.
_ _ ( ) .
,
_ (Data Type),
(Lookup Wizard).
_ ,
, , : _
( ) _ ( ). , ,
,
(). . 3.23.
() , .
(. 3.24).

3.
to _ :

_
_
CPOKJTpCT

KOJTJIOCT
_





SELECT ._, 0 , JOB FR<
1

2


; 3,836

8

3,836

. 3.23. ,

Microsoft Office Access
6 'Microsoft Office Access'
" " (Limit To List) "".
"
, " " (ColumnWtdths),
,
" ", " ".

. 3.24.

,_
__ ( ),
. . 3.25 , _
.

I. Microsoft Access

114

ffi


111
111
111
111
111
222
222
222
222
>

; J4 | f | (



1
10
2 .
5
3 !
5
1
10
3
5
1
10
2
4
2
5
3
15
1
10'
0
0

17LG
17LG
17LG
FDD 3,5
FDD 3,5
17LG
17LG
HDD Max!or20GB
MiniTower
L U-ROM Panasonic IDEl
HDD Maxtor20GE
MiniTower
DIMM64MPC100
EPSON ST.A4

. Genius Liv
Genius ext


100
20
" 30
50
10

100
12
10
30
40
0

Al

. 3.25. _

,
,
,
, .


, , , .
(Relationships),
(Show All).

, . " "
(. . 2.19) . .
Access,

. , ,

3.

175

(Relationships) (Forms). , ,
.
2.
, ,
.

1. Access?
2. ?
3. ?
4. ?
5.
?
6. ?
7. ?
8. ?
9. ?
10. ?
11. ?
12. ?
13.
?

14. ?
15. .
16. ?
17.
OLE?

-', **.;
" i f . f l

-S

t. .mdb.

2. , , , , , .
3. .
5 . 835

176

I. Microsoft Access

4. , , .
5. .
6. .
7. .
8. PrimaryKey.
9. ()
().
10. .

11. .
12. Her.
13. .

14. .
15. , , , , .
16. .
17. | (Insert(Object).

Access
, , , - .
, , .
, .
(. . 2.19),
Access. , .

, . ,
. .

3.

117

, , , .


" "
,
" ",
2.
: (Database) | . (Tools Relationships) (Relationships.)
,

) , , .


(Show Table) (. 3.26) (Tables) , (Add),
(Relationships) "
", (Show Table). (Close).
(Relationships)
(. . 3.30).
.

] |

. 3.26.

\. Microsoft Access

118



, - .
( ).
() ,
. - . - , , , ,
.
.
, --.
,
I:M, _, . , , .
, , Access
-- . - (One-To-Many) (Edit Relationships) (Relationship Type) (. 3.27).

/:

/;

.,. ]

rJ7

(. ,

!
:

--

. 3.27.

3.

119

,
Access -- ,
1: 1:1.

3.

" ": > (
_), -> _1
(

__),

-^

_),
(

>

_),

>

( ).


, .

. -> , ^
+ _. ,
<Ctrl>,
.

(Edit Relationships) (. 3.28)


, /
(Table/Query), ,
/ (Related Table/Query).

/;

..

; IKO/LCK!

.
..

j " 1-. .

--

. 3.28.

120

I. Microsoft Access


1:1
1:,
.
, Access :
;
,
;
,
,
.

Access . Access
, .

:
,
;
Access;

.
" "
(Edit Relationships)
(Enforce Referential Integrity). ,
.
. ,

, , . 3.29.

3.

121

Microsoft Office ACCESS


] 'Microsoft Office Access'
.
'' .
, , .
, ,
, .

. 3.29.


,
/ , .
, . .

, .


. ,
.

Access .
(Edit Relationships) (. . 3.27)
(Cascade Update Related
Fields) (Cascade Delete Related
Records)
.

. Windows . . 3.30 " ",
, 2 (. . 2.18).

722

I. Microsoft Access

. 3.30. " "

. 3.30 " ",


1, .. , - ( )
.
4.
,
,
, ,
. , , .

. . _ ( ) . , , ,
_. , . .
(Cascade Update
Related Fields) (. . 3.27). ,
.
.

3.

123

_
, , ,
, . .
,
.
. ,
_, .
. ,
, . .
(Cascade Delete Related Records).
, , , ,,
.


, , , : .
_ _. , . , .
--.
_ .
__ . _,
, . 3.31.
,
.
( ) _ , --, , _ (. 3.32).
(. . 3.32),
,
_ = 001, 002, ..., 005.
, .

I. Microsoft Access

FDD
HDDM

CD-RO
DIMME

. 3.31.

JM

& ? :

001
001
001
TG02 .
TD02
TD01
_01

_
_7004
V 005

*
:


17LG
17LG
17LG
FDD 3,5
FDD 3,5
17LG
17LG
HDD Maxtor20GB
MiniTower
CD-ROM Panasonic IDE

J < I

to

| ] ] |
6587,00. 111
1
100
597 ,00. 111
2
20
6587,00. !1 11
3
30
363,00. 111
1;
50
3
363,00. 111
10
57,. 222
1 '
100
6587,00. 222
2
12
2590,00. 222
2
10
916,00. 222
3
30
1 153,00.
40

I>JM1>#| 10

. J

. 3.32.

, , 008 .
_ , ,

3.

, ,
.

. :
1. ,
( ).
2. , , , , .
3. , , , , .

, 1:1, 1: .


(Edit Relationships) (. . 3.28) 15. .
, (. 3.33). , .


f ii.] ,
.
2. ""
"_",
.
3, "_"
"",
.

. 3.33.

,
_, . 3.34.
: , .

I. Microsoft Access

126


<_
KO/LTOB
CPOKJIOCT

;_

JOT

JOT

_06

CPOKJTOCT

_
_

_
_

. 3.34.

. 3.32, 3.35, 3.36.

( . 7),
. , .
(. . 3.35) , , , __. _, Null.
,
006, 007, ..., .

Null , ,
. Null,
. ,
(""), . Null . ,
. (""). Null .

3.

[
537,00. -111
S 537,00. .111

17LG
17LG
17LG
17LG
17LG
FDD 3,5
: FDD 3,5
HDD Max1or20GB
MiniTower
CD-ROM Panasonic IDE
DIMM64MPC100
EPSON ST.A4

. Genius Liv
Genius ext

6587,00. 111
6587.00.'222
6587,00. 222
363,00. ;111
363,00. ;111
2590.00. 222
916,00. .222
1 153,00
360,00.
2 432,00.
2 338,00.
789,QOp
1 295,00p

|| 15

. 3.35.

(. 3.36) , , _,
.

& :

TVJ02

TD02
001

TD04
TDQ5

| - || j X J

[ -
1
100
6 587,00. 111
2
20
6 587 ,QQp. ;
30
6 57 ,QQp.
1
50
363,00. 111
'FDD 3,5
10
363,00. 111
.FDD 3,5
. 3.J...
.
100
" ' 587,00. 222
17LG
2
12
17LG
587 ,00. 222
10
2
| 2590,00. 222
HDD Maxtor2QGB
30
916,00. 222
MiniTower
40
1
CD-ROM Panasonic IDE I 1 153,00.
1
450

550:
2
444
.

|
001
17LG
001
17LG
17LG
TG01

*
: MJJ 11

12

>'1>*1 12

. 3.36.

128

I. Microsoft Access

,
Null. ,
15 16 .
(

, > _
, _ , , .



Access
, .
, . , _,
_ ( ), _ _, . .
. _, _
( ).
, ,
"+" (. 3.37).
"+" , , . "+" ""
(). "- -" .
.
, , , ( ,
).
,
)| (Formar|Subdatasheet|
Expand All) (Collapse All).
Access
.

3.

17LG
17LG
17LG
FDD 3,5
FDD 3,5

1
2
3

-'

10D
2D

10
_ 5,
5
10'

'
50

"

222

17LG
17LG
HDD Maxtor20GB
MiniTower

0,00.
|

: __).

i:
I

. 3.37.

Access ,
-- --,
.
"+"
(Subdatasheet).
(Insert Subdatasheet) (. 3.38), .
,
(Insert Subdatasheet)
, . _ , (. 3.39).
.

130

I. Microsoft Access

1
TTJ02
+ TOQ4
+ TD05
+
+>
+

TDQE

07

'008

* TD09
+ 7010

: ..H.LiJ

;_

JOB

. 3.38.

Microsoft Office Access


'Microsoft: Office Access*
.
?

. 3.39.

, , ,
[ . (Subdatasheet Name)
, (Link Child Fields)
(Link Master Fields) (
) (. 3.40).
, (Subdatasheet
Name) , .
(Subdatasheet Name)
(Auto), , , Access
"+" .

3.

131

, , , . .
. . .
, . .
, .

..-, ,



, , , .

. . . .;

, _
_
_

. 3.40.

:
]

01

.. : , 15
| *- ,1
- 001
25.01.2004 111


001
10
TD05
20
008
1

0
29.04.2004 222
*|2
+ '
28.04.2004
+ HOQ4
25.05.2004 222
+ 005
10.03.2004 222
;
30.01.2004 1
-f ' "

. .
,29
03

.. , 38
| *- J} j
- 001
25.03.2004 111


004

5
TD06
"*" _

:
*
26.03.2004
20.01.2004 111
*' D3 '

30.01.2004 1
:
*

>

IHi

: JlLl

' J

^]

<\

vllri

. 3.41.

I. Microsoft Access

132

,
, "+" . .
, , (None). (None)
|| (Formar|Subdatasheet|Remove) .
, :

. . 3.41
.

:
]
- 01

..
[ ^ |
-.HD01

25.01.2004 111
\
- 001
|_
_^_ * 17LG|
6587,00.
5%
*_
0,00
20 ^
- TQ05~
{

|
+ CD-ROM Panasonic IDE ; 1 153,00. .
30%.

- TD08
__ *

002

004
005

2338,00.
0,00

*
29.04.2004
28.04.2004
25.05.2004
10.03.2004

22

222
222

..

.,29

' | 1

. 3.42.

' 3.

__

733

, , , ,
.
, , ,
, (. 3.42).
5.
?.



, ,
.



, .
, , , , . . ,
, . ,
.
, .
, ,
. ,
. ,
,
(. 3.43).
.
(. 3.44).
, , ,
.

(Primary Key) -

I. Microsoft Access

134-'

(Indexes), . ,
, , . 3.45.

Microsoft Office Access


.
ReldSee ,
.
?

. 3.43.

Microsoft Office Access


\

'_' 'Microsoft Office Access1


.
.
11111

. 3.44.

Miciosoft Office Access


\
*\
bw

^
^

- ,
. , ,
, , .

. 3.45.

, , .



: , , .

3.

/35

, ,
. , ,
.
, ,
.

. | (Tools)Relationships)
(Relationships) . (Relationship).

(Show Table) (Relationship).
(Show Table) (. . 3.26)
(Add).

. | (Edit (Delete) <Del>.
, , , , (Delete
Relationship). | (Edit (Delete) <Del>.
, | (Relationships]
Edit Relationship) .

1. Access?
2. ,
?
3. ,
?
4.
, ,
?
5. , ?

136

I. Microsoft Access

6. ,
?
7. "+" ?
8. ?
9. , "+"?

1. .
.
, .

2. 1: 1:1.
3. ( ) .

4. .
5. .
6. .
7. .
8. ] (Insert] Subdatasheet).
9. (Subdatasheet Name).

,
.
, . ,
, , .
. ,
.
. ,
, , . . .

,
.
,
, . , ,
. , . .



,
.
, , ,
.
, .

138

I. Microsoft Access

:

;
, ;
;
,
, ;
G ;
,
;
;
.


. ,
- , , . ,
, .
. : , .
(. . " Access" 3).

, .
Access :
. , . .


, . ,
. , .

/39

4.

, , , .
G , , , .


Access.

, .

.
. ,
, .

.

.
, , , . , ,
, .
.
.
. .
.
.

(Query Datasheet) (. 4.1) , ,
(Table Datasheet) (.
. 3.12 3).

^
: ! -J!
1 *.
?i 'I X>
VB / ;I 4A
I - -- -
*
, / _t-M
,,^-,;._
--=> J
;

. 4.1.

, , , , ,

I. Microsoft Access

140

.
,
. , , ,
,
. ,
, .



(Query
Design) (. 4.2). ,
.
-


si| ,,.

:>jj[

"

;*- X II

pjrf^z^""*^-^^.^!
"^5J|
In"
_jf

..,

i.-**?;-
l?f

,.,

">|'=

Ctrl+s

00,1 ...

|_
?


...

F7

CtH+X

[yj -jj !

Ctrl+C

.^

CCH+V

^ |||1|
! / ^
j]

? .
v1

'^_j

...

-
|
|
/

_^

Alt+ENTER

- .{N , . ,
. 1 -
v

F1 1

;-JM|

^ 1 : Microsoft Office Access Fl


i
J
'"'
7
........_

. 4.2.

4.

141


,
.


(Database)
(Queries) (New). {New Query) (. 4.3) (Design View).

$
\
;
.

E
y
l


. 4.3.

,
(Queries) (Create query in Design view).
(Show Table) (. 4.4)
(Add). (Close).
(Query</V>): (Select Query) (. 4.5).

3anpoc</V>

. , . ., , .

I. Microsoft Access

| \

!
1
'

. 4.4.

ts- :

:
;
:
;

; I

! '


. 4.5.


, . -

4.

143

, (*), . ,
Access ,
,
.
, Access ,
, .
. . , .

. , .
,
(. . " Access" 3).

(~

, Microsoft Access
, ,
, . .
. 10 , 4, 40 (10x4). .


.
.
.
, . , , ,
.
( ) :
(Field) , aaripbctf:
(Sort) ^;

144

I. jWicrosoft Access^

G (Show) ,
;
(Criteria) ;
(or) ,

, ,
. (Table
Name) , |
(ViewjTable Names) .


,
. ,
, , ,
Access.
:
(Field) . , ;
\ ;
;
3
"*" ()
.



| (QueryjShow Table)
(Query Design)
(. . 4.2). , .
, , ,
.
.

4.

145

. , , ,
(. . 4.5).
<Delete> | (EditjDelete
Columns).

. ,
, .



(Criteria) (. . 4.5).
, .
: , , ().
, Access ,
. ,
, . , "ft" ( (') ANSI92). : 567, "", #1--2004# ('1- -2004 '

ANSI-92).

,
Access, , (True), (False), Null.

,
. , , . . .
, Access .

,
.
, , , , , ,
.
: [ ] ! [ ] , D e f a u l t V a l u e :
F o r m s ! [ ] ! [ ] . D e f a u l t V a l u e .

146

I. Microsoft Access

, , : = , < , > , < > , < = ,


>=, Between, In , L i k e , And, Or, N o t .

.
,
= .
,
, .
, .
(*) (?) (ANSI-89) (%) (_)
(ANSI-92).
Between . :
Between And loo 10 100;
Between # o i . o i . i 9 9 7 # And # 3 1 . 1 2 . 2 0 # ( ANSI-92
"#" (')).
'
, . :
In("";""; " ")

Like ,
. :
Like "* " (ANSI-89) L i k e "^" (ANSI-92)

AND, OR, . , , "", "".


AND OR . NOT
.
<Enter> Access .



.
, , 1000 .
10%, , 2500 .
(_), ()
(_>.

4.

147


(Queries)
(Create query in Design view).
< >:
(Select Query)
<...> (Show Table <...>) (. . 4.4).
(Add).
(. . 4.6). (Show Table).

1? ? ;

L ||C i X l

_
08

<

>

: _
:
:
:
0
:

<

"
^

0
<1000
>2500

<=0,1

->: ""

. 4.6.


<Delete>.
() .
(. . 4.6) _, , _
(Field).
,
. ,
6 . 835

148

I. Microsoft Access

, ,
. , <Delete>.
(Show) , .
, . 4.6.
, ,
AND. , , OR.
,
(Run) (View).
,
.
, (Save)
"!". , , .
]3 (FilejClose)
(Close). , (Open).




. .
. .
. .
(Field).
, <Enter>
,
(Exprw), N ~ , . ,
, . :
!: []*[],
.

4.

49

! . .
, , ,
.

. Access VBA 150 .
.
.
.
(, , ); , Date , Month () , , 1 12 , . .thName ( [; ; )
, (=) (=) . , MonthNamet [_]; ) . ( ).
.
. , , Format,
(
, ) .
Format([;

[;

__[;

__] ] ] ) . ,
.
. 4.1.
4.1.

dddd

ddd

dd

ww

mmmm

mm

mmm

150

I.

Microsoft

Access

:
Format ( [] ! [_] ; "mmrtm" ) 6

;
Format ( [] ! [_] ; "mm") .

,
Format , "\". , Format { [] ! [_] ; 'mmmrn\ yyyy' ) -

. .

.
,
.
.
,
.
. Excel , ,
. .
. , , , , .
(Expression Builder), (Build) .
.


, ,
.
__ / (Date/Time).

(Field), :
^(!_) , ;
MonthMame (Month ( !_) )
Format { [] ! [_] ; "mmmm") ,

4.

151

Month .
MonthName . Format .
, , 3, . 4.7. ,
, , . 4.8.

_
_
_

HOMJHAKn

([}!{ ])

0
3

<

. 4.7.

:
;
:
:
0
:
:

(*([]![_]))

""

<

>

. 4.8.

. 4.9 4.10 , ,

.

I. Microsoft Access

152

[*?JP^
OK

Month (number) |

+ -1 /|*1 &| =| >] <|<>] And| Or j Not JLike] (| )]


(3

Forms
~

; i<Bce>
' '
I
^

L
i **"
/^,,..
,-

v |
<
>s

A; IsDate
j Minute

i MonthName
Now
Second
;Titne
Time$
Timer
TimeSerial
^ Time Value

4onth(number)

. 4.9.

[?][
OK

Month ( []![_] )

+j - j /j*f&| =|>|<1<>| And] Or | Not JLike | ({ j]


f^Tafinn.^,

-D
- D
- _
-D
-D

<>

*. ; -

] ___ |
^

1 ?

&'

_ ^

4onth(stringeHpr)

. 4.10.


(Exprw). .

4.


!,
2 . .
.

(Exprw) .
,
, .

(Field
Properties),
(Properties). (Field Properties)
(General)
(Caption).


,
.
. , ,
.

(Criteria) .
(Enter Parameter
Value).
, (. . 4.7)
[ ],
(. 4.11), .

'|
. 4.11.

I. Microsoft Access

154

.
. ,
. ,
, OR:
[ ] OR [ ].


, . , [ ?]
, . 4.12.
:

_
_

'

! - j[DJ[XJ

'

'

"

'1

:1
.
^
v-

V-

.<: )

g
: _
:
:
:
0
:
:

<

: []+[]*[ ?]/ 100

=-*S

'!

"-

,>!,

. 4.12.

4.

/55

Access :
sum ;
Avg ;
, Min , ;
count ;
stDev
;
var ;
First Last .
.




. ,
, , .
| (View|Tota!s)
(Totals). (Total) ( ).
(Total), (Group By),
, (Group By) .
.

.

Sum
,
.
_.

I. Microsoft Access

. _ . .
_, sum , .
(Totals).
(Group By) __ sum.
. , . 4.13.
'0 ? :

HOMJOT
_

;
:
;
;
;
;


1i

. 4.13.

. 4.14.
$ ? :

>_ 17LG

FDD 3,5
HDD Maxtor2QGB
MiniTower
CD:ROM Panasonic IDE
; H | ^ | j i ' >

P]f6][x]

Sum-
262
60
10

30
40

[^ "| 5

. 4.14.

4.

157

_ ,
_, . ,
_ .
_ ,
3, .
Sum - _ .

, _ . (Properties). (Field
Properties) (Caption) .
. 4.15.

? :

17LG_
FDD 3,5
HDD Maxtor20GB
MiniTower
CD-ROM Panasonic IDE
:
1

MM

. 4.15.

- " ".
, , _
_, (. 4.16,
. 4.17).
,
,
(. 4.18, 4.19).

reo

I. Microsoft Access

" ". . 4.21.


'is* :..
> 111

222

: JJLJ_j.J |

.00
, 4

1-_

5
3

1 * | |^j

. 4.21.



, ,
.
,
, . 10 000 .

_ (Group By) sum.
_
(Group By) (where), 6 .

(Criteria) : >
(. 4.22).

:
:
:
:
;
;

121

Count
0

Sum

MOQQQ

'*

<

. 4.22. ,

>

4.

'

, ,

10 000 . (. 4.23).

: .

. 4.23.

, , , , , , , : in
("111",-"") : > 000.


, ,
. , .
().
:
DMax(, , [_]}

, , , , .
.
DMin .
. 4.24 , , .
, " ".
DMaxf"[-_]";"
").

I. Microsoft Access

162

lir 3dnpoc13 :

:
:
:
:

-_
i

Sum-

0
("[5-_] ; " ")

<|

> *

. 4.24. ,

1.

,
.

SQL
SQL (Structured Query Language) - ,
.
Access SQL,
Microsoft Jet.
,
SQL.
Access SQL, , SQL. SQL .
SQL , Access.
,

SQL. , Access
SQL. ,
SQL
(RecordSource) (RowSource). -

^4.

,
.
Access SQL SQL:
G ANSI-89 SQL ( Microsoft Jet SQL ANSI SQL)
Jet SQL;
ANSI-89 1, ;
ANSI-92 SQL ,
;
ANSI-92 1, .

ANSI-92 SQL
Access 20022003.

Access , , , .
Microsoft
Access, Microsoft SQL Server,
, SQL Server, ANSI-92 SQL. ,
, ANSI-89 SQL.
Access 20022003
ANSI-89.
SQL ANSI-92 ,
:
d ,
, Access
2002 2003;
CJ SQL
Server (ANSI-92) .
ANSI SQL.
ANSI-92 SQL SQL
Server (ANSI-92) . ANSI-89 SQL .

164

/. Microsoft Access

, , .

, ANSI SQL .

SQL
L. (. . 4.6)
"!".
2. SQL (View) . Access ,
, SQL (. 4.25).

is1 1 :

ISELECT ,_, ., . _

IFROM
IWHERE (((,)<) AND ((, )<-)) OR (((, ) >2soo))
ORDER BY . ;

. 4.25.
SQL

SELECT
.
FROM , ,
WHERE ,
(. . 4.6).
ORDER BY ,
.
. .
1. , ,
, _.
2. SQL , SQL.
3. , SQL,
, SQL,
.

4.

165

4. , _.
5. ,

(. . 4.20, 4.21).
6. SQL. SQL
, . 4.26.

:
[SELECT ._, Count ( . ) AS [Count - ^ ]

IFROM
GROUP BY . _;

. 4.26. Count
SQL

SELECT .
_, , , , count,
_. ,
count: __, .
, , *
, , , .
(Group By) , (_ ) .




.
,
.
, ,
, . ,
.

166

I. Microsoft Access

, ,
, , . , .
.
, .
. , ,
.
, ,
.
(Queries)
(Create query
in Design view).


(Show Tabie) (. . 4.4) 5 :
( _);
_ ( _) , ( _);
( ), __ ^.
(Show Table).
,
. _
. _
, ,
, (. 4.27).
. _ , , , ,
.

4.

167

A.I

:
' I

|_
_ v.|

'

_
'_

"

KO/LTOB
_
_

221

t,

_ ^

.V'l

>'.

gj

;
:
:
:
:
:

<;

. 4.27.


,
, (Field): _
; _ ; _ __ _1.
,
. (Table Name) ,
] (View|Table Names)
.


,
- FDD 3,5. HDD Maxtor 20GB.
(Criteria) , _
"FDD 3,5" "HDD Maxtor ". HDD , "*". Like, .
, . 4.28.

/. Microsoft Access
:

KOfiJTOK
*;

_
!.

KCVLTOB

:
:
;
;
;
:

HAMMJ10K


^
0

TQ8


"
;

0
"FDD 3,5"
Lite "HDD*"

0
V

<; 1

>'*"

. 4.28.
FDD 3,5 HDD

,
(Run) (View). . 4.29.


1 FDD 3,5
3 FDD 3,5
2 :HDD Maxtor 2QGB

I.H ] 4

. 4.29.
FDD 3,5 HDD



, ,
.

, (

4.

169

).
,
--
, ,
.
_
, . ,
_ . _
, _ .
, , , ,
; .

.
: , ,
, .
" ".


SQL
, .
SQL, (View). SQL :
SELECT ._, J1J1AH\ _, . _,
_._
FROM INNER JOIN ( INNER JOIN ( INNER JOIN
_ ON ._ = _._) ON
._ = ._) ._ =
_._
WHERE (((.HAMM_TOB)="FDD 3,5" Or (.HAKMJTOB) Like "HDD*"));

FROM SELECT , ,
INNER JOIN , , : ON ._ = _._.

I. Microsoft Access

170

INNER JOIN , . ,
:
_ ,
, , .

- , - _ ^
, . 4.30.
1

KOflJTOK

_
^
.

.
_
_
*_
WHJTOCT

. 4.30.

,
, , (. 4.31).
, , ,

,
Null.

, Null. , , . .
Null. Not Null,
,
.
SQL :
SELECT .__,
.

JUIAH. J10CT,

.__,

4.

171

FROM RIGHT JOIN ( LEFT JOIN ( LEFT JOIN


_ ON .^ = _._) ON
._ - ._) ON ._ =
. ;

|!

is* ;

.. ; '




1 17LG
2 17LG
^_

3 17LG
:

1 FDD 3,5

3 FDD 3,5

1 17LG

2
:
17LG

2 HDD Maxtor 20GB

3 MiniTower

1 : CD-ROM Panasonic IDE

'


: Hj^j J |

1 > ] |>#j 16

<

*
100
20
30
50
10
100
13
I
10
30
40

TJ
jj

. 4.31.

LEFT JOIN , .
( ) ,
() .

, . RIGHT JOIN , .
( ) ,
() .

_.

, .
, . ,
. _

I. Microsoft Access

172

, ,
_.



. , . Access
.
_ (. 4.32),
. ,
:
[ ]

, :
[ ]

; HAWMJ1OK
:
:
:
;

_ -*4;

1
[ ]

[ ]

*...!

0
>

JL

. 4.32. _

Access ,
. 4.33, .

[?JfXj

. 4,33.

773

4.

SQL. WHERE
:
WHERE (((. _} = [ ])) OR
(((. _) = [ ]));



, ,
.
,
, . , _ , ^ .
,
.
.


_ ,
_ sum. _
: Between #01.02.2004* And #20.02.2004*
(ANSI-89) Between '01.02.2004' And '20.02.2004' (ANSI-92). -

,
. 4.34.
. 4.35.
SQL. SELECT
:
SELECT ._,

Sum(._) AS

[-_]

FROM INNER JOIN ( INNER JOIN ON ._ =


._) ON (._ = ._) AND
(. ^ = . HOMJIAKTI)

WHERE (((._) Between #2/1/204# And # 2 / 2 0 / 2 0 0 4 * ) )


GROUP BY .HAHMJTOB
ORDER BY Sum (._)

DESC;

SELECT ,
.
FROM , _,
, , .

I. Microsoft Access

174

_
_
_

;
:
:
:
;
:

'
Between #01.02,2004* And #20,02.2QCrt#

. 4.34.

-, ''-.
[DJ[XJ

| -._ |
CD-ROM Panasonic IDE
HDD Maxtor 2QGB
FDD 3.5
; 11 I 1 I
I
3

. 4.35. ,

WHERE , . _ .
GROUP BY ,
_

Sum (. _)
, -_.
>>
ORDER BY ,
.
. () (._).
. -

4.

175

. " ". " ".



. ,
.
, ,

, ,
.
, . 4.36.

t- 1C :

_
_

:
:
;
:
0
:

< >[_]*[]

[ ]-[ ]*[] .""

<:. )

>'""

. 4.36.


(Criteria) _ ;
<>[_]*[]

,
.
, :
[]![].

176

I. Microsoft Access

,
, , :
[_(] - [_] * []

! .
. 4.37.
:
|^

004
02
004
01

; 17LG
HDD Maxtor20GB

3174,00.
3590,00.
33 380,00.

-10000,00?.
.
10 000,00.

I !*

. 4.37.

, ,
, . . .

SQL. SELECT
:
SELECT ._, ._, ._,
.__, [_]-[_]*[] A3
FROM T05AP INNER JOIN ON . __ = . _
WHERE ( { {. _) [__] * [] ) ) ;

SELECT ,
, , .





.
,
. -

4.

177

. .
, , ,
- ,
.

,


. - , ,
. 4.38.


,

. 4.38. - ,



,
.
, ,
,
.

I. Microsoft Access

178

HOCTABKAJTJIAH. , (. 4.39).

Konjiocr

*~

d
Sum

f lfwTlK7"i
[.
|[|[|

& :

.-

*sl

_ |
MUIHJIOCT
^ !<
<

:
:
:
;
:
0
:
:

< ]

<

>

. 4.39. ,


_. , () , .
, .
,
.
. , ,
, (. 4.40).
, , -,
. , , . .
,
, Month

4.

,
, .

_
_

:
;
;
:
:
. :

[_

::
<=[ ]

. 4.40.


, .
, , , ,
. ,
,
, ,
; , , (. 4.41).
, ,
.
,
Null,
Nz ( [-_] ) -Nz { [5-_] ) .

"".
7 835

I. Microsoft Access

180

0 :

:
:
;
:
:

Sum-

Sum-

; NZ([5utn-KQn_nOCT])-NZ([5um-KOn^OTrP])'

, 4.41.

NZ (,- [__!1]) , , Null , . ,


Null ,
"".
N u l l Null. ,
NZ.
(. 4.42)
. , , ,
.

, .

-_ Not Null,
, , .
,
, SQL.

4.

SELECT :
SELECT ._, . [-_] , . [5,~_] ,
([5-_])-2([1-_]) AS
FROM ( LEFT JOIN ON ._ = ._)
LEFT JOIN
ON . = . ;

19 ll

:

Sum- |Surn-KO;
17LG
262
FDD 3,5
60
HDD Maxtor 2QGB
10
MiniTower
30
CD-ROM Panasonic IDE
40
DIMM64MPC100

EPSON ST.A4

. Genius Liv
Genius ext
_Hj < | |
10 -^ j I 1 J 10

14
12

243
60
-2

30

30
10
" /" -

i
1
3'

0
:
-3

. 4.42.

FROM , _ ( LEFT
JOIN ON ._ = . _). , , .

, _
. .
_ , . . .
, . 4.43. , . ,
, --.

I. Microsoft Access

182

is1 !5 :

CPOKJTOCT
MMHJ10CT "

>
_
_

*
_

_
_

:
:
;
:
:
;
:

:".

. 4.43. ,

2.

1. .
2. .
3. , ,
.
4. , .

1. ?
2. ?
3. ,
?
4. ?

-4.

83

5. , ?
6. ?
7. , ?
8. ?
9.
?
10. ?
11. ?
12. ?
13. ?
14. , ?
15.
(Total) , ?
16.
?
17. , , SQL?
18. SQL ?
19. SELECT ?
20. SQL , ?
21. SQL ?
22. , SQL , ?
23. SQL ,
?
24. SQL?
25. (*)
?

1. | Ta6flHuy(Query]Show Table) .
2. .

184

I. Microsoft Access

3. .
4. .
5. ().
6. =, <, >, <>, <=, > = , Between, In, Like, And, Or, Not.

7. (Open).
8. , .
9. .
10. .
11. (Caption) .
12. .
13. , .

14. .
15. (Where).
16. , .
17. (View) SQL.
18. SELECT.

19. .
20. FROM.
21. WHERE.

22. .
23. Group By.

24. .
25. .

1.
?
2. ?
3.
?

4.

185

4. , 1:,
.
, 10. 10
.
, , , ?
5. , ,
?
6.
?
7. ,
?
8. ,
5 ?
9.
, ?
10. ?
11. , ,
, ?
12. ?
13. !, 2, ,
2, 2 !?
14.
SQL?
15. FROM
?
16. FROM ?
17. FROM SELECT
?
18. ?

1. , , .

2. .
3. .
4. 10 12 .

I. Microsoft Access

fgg

5. .
6. | (View|Table Names).
7. .
8. 25.

9. " " " ".


10. , .
11. .
12. .

13. , , .
14. FROM INNER JOIN, LEFT JOIN RIGHT JOIN.

15. .
16. .

17. .
18.

ORDER BY.



. , , ,
.
, , .
, ,
.

(. . 4.20, 4.21).
. ,
(Query Type) (Make-Table Query) | (Query|Make Table). (Make
Table) " " (. 4.44).
, , (View). -

4.

187

, .
.


: |
<
:

. 4.44. ,

SQL. SELECT INTO


SELECT ._, Count[._)
AS [-_]
INTO [ ]
FROM
GROUP BY ._;

SELECT INTO SELECT ,


, , , INTO. SELECT , FROM.
GROUP BY,
. , ( count).
GROUP BY WHERE,
, WHERE.



(Update Query). ,
.

I. Microsoft Access

188


(Update To).
(Update Query), (Select Query),

(Update Query) (Query Type) (. . 4.2) | (Query Update). (Update To).
. 4.45.

4
1
1
:
R5
:

; []*[_]
:
[ ]
:

. 4.45.

, , ,
.
(Update To)
, .
.

, ,
, , -

4.

189

. .

] (Query Run)
.
, . | (View)Datasheet View)
(View) . , .

, 1:,
"".

SQL.
UPDATE :
UPDATE INNER JOIN
ON ._ = ._
SET ._ - [] _]
WHERE (((._)=[ ] ) ) ;

, ,
UPDATE. UPDATE SET ,_,
, []*[_]. , ,
WHERE.

,

, ,
, .
(. . 4.45) , .
.

190

I. Microsoft Access

,
, (. 4.46).
0 : L jiCifx]
*

*
_

KOAJOB
_
_

Mi
->,

<
: _
;
;
;
;
0
;
:

Sum

*"*

0
V

. 4.46. ,
,

,
: (_) (_).
,
. sum , .

,

[] * [_] , sum.

.
, sum, . .

. "

4.

91

". .

,
, . 4.47.
, : _
_. _, (Update To)
-_ , .

is1 :

_
_
5-

[5-_]
-

. 4.47.

,
, .
, , (. . 4.45).


(Append Query)
.

I. Microsoft Access


.
, , . , , , .
,
.
.
.
.
(Append Query)
(Select Query) .

(Append
Query)
]
'! ...
(Query|Append Query).
(Append) (. 4.48).

/
:

{*

f :

. 4.48. ,

(Table Name)
, .

, (Current Database).
, ,
(Another Database) .
.
Access Microsoft FoxPro, Paradox, dBASE
SQL (. ).

4.

(Append To) (. . 4.49).


, . , " ", . , " " " "
, .

.
,
, .
(. 4.49).
. ,
(Enforce Referential Integrity),
, .
1 :
-

_


_,

: <
: .
:
:
:
:
< .

HJOP
-1
.

. 4.49.

>. _

194

I. Microsoft Access

,
, .
_ _, _
.
(Append To) ,

.
.
, , , (Append To) .
,
, (View) .
,
, ' (Run)
. .
,
, . , .
Date ,
2 , .
SQL.
INSERT INTO :
INSERT INTO (_, __, _, _, __)
SELECT [ ]._, [ ]._, [
]., [ ]._, [ ].
FROM [ ];

INSERT INTO ,
.

, , . SELECT. .

4.

195

INSERT INTO :
INSERT

INTO

(_,

_,

_,

_,

_}

SELECT [ ]._, [ ]._,


2, [ ]._, []*2 AS !

Date()

AS

FROM [ ];

.
3.
.


, .
. ,
,
. ,
, , .
, _,
, , . 4.50.
* 16 :

[. [||]
.

.
|_

~~.

JOT

_
CPOKJ1OCT

_
_
_

>

<

_
8,

*[_01 .^

[ ] [ [ ]

1
<|

. 4.50.

>

196

I. Microsoft Access

_.
_.
, , _, _.
_, _, _, _, _,
, ,
_, _ Month(_) .
,
_ ,
. ,
,
.
, __.
: __ + _ + _,
.
, , (View).
(Run).
SQL.
INSERT INTO :
INSERT INTO

(_,

_,

_,

_,

_)

SELECT ._, ._, _._,


_1. _, _. _
FROM INNER JOIN _ ON ._ =
_1. _
WHERE ( ( (_._:) = [ ] -} AND
((_._)=[ ]) AND
( (Month([_])) = [ ] ) ) ;

INSERT INTO , . , SELECT.


,
, , SELECT,
.

4.

797


(Delete Query) ,

(Cascade Delete Related Records).
(Delete Query)
(Select Query). ,
,
.
(Delete Query) (Delete
Query)
| (Query|Delete Query).

(Delete) (. 4.51).
. ,
, (*) .
(Delete)
(From). ,
, . (Delete) (Where). (Criteria)
.

(View) . .
1 (Run) .
, .
.

.
, .
, --, ,
(Cascade Delete Related Records),

I. Microsoft Access

198

, . . , .
(Cascade Delete Related Records) , .

,

,
. " "

(Cascade Delete Related Records),
.
, , ,
. . , _,
.


. 4.51. , _ .
.

! 8 :

: _10
:
:
: ""

<', !

. 4.51.

4.

199

.

, , .

,

, , .
_!

(Cascade Delete Related Records), , , , ,
.
,
, , , ,
_. ,
, _, . . _.
_ . 4.52.

:
_

.
.

:_

: .*
:
:
:

<,

""

#04,04.2004#

. 4.52. _

I. Microsoft Access

200

_ . , _, .

, . ,
. 4.53, . , ,
. ,
. ,
.

: ,*
:
: )
;

KOAJTOK

""

#04.04.2004*

* "

:
<|

V,

. 4.53.

, . 4.52, SQL. DELETE :

DELETE _.*, ._ ._
FROM INNER JOIN __ ON . _ =
nOCTABKAJTJIAH._
WHERE (((._)="") AND {(._)=#4/4/2004#));

DELETE ,
, WHERE. FROM ,
. , ,
, __*
(: _ . *). ,
, , , ,
, .

4.

201


Access. :
;
;
(
);
, .
, . .
.
(Queries) (New).
(New Query) : (Simple Query Wizard), (Crosstab
Query Wizard), (Find Duplicates Query Wizard),
(Find Unmatched Query Wizard).
, . .
, , ,
.



.
, , , , ,
.
,
, , , . \ .

202

I. Microsoft Access

,
(Create query by using wizard),
.
, , , :
_ , _ _ ;
Sum
_;
.

. .
, . :
_ : Format$ ( [] . [_] ; ' 1 )

Formats , .
'mmmm\ ' ,
, : 2004.
,
.
, !, ,
:
!: Year([].[_]}*12 +
DatePart { '.1 ; [] . [_] ) -1


. Year , .
DatePart , ' 1 , . .
!
.
,
" ", . 4.54.

4.

203


CD-ROM Panasonic IDE
17LG
^
CD-ROM Panasonic IDE
FDD 3,5
HDD Maxtor 20GB
DIMM64MPC100
HDD Maxtor 20GB
;3. Genius Liy
17LG
CD-ROM Panasonic IDE
.FDD3.5
| . Genius Liv
17LG
17LG

2004
2004
2004
2004
2004
2004
2004
2004
2004
2004 "
2004
2005
2005
; ] I

Sum - _

"FDD ,5"

HDD Maxtor 20GB

18

'

5
8

3
3
2
10
1C

in
7
2
10
'
"1

. 4.54. ,



, ,
.
, , ,
, .
, .
.

,
, , ,
.
, ,
. , .
_ ( ).

204

I. Microsoft Access

, , . , . ,
, , ,
_. Null
, . . is Null,
.
4. ,
, . , _. _.


, , ,
, . , ,

.
.
, ,
.
, . . . .
(Queries), (New)
(New Query) (Crosstab Query Wizard).
(Crosstab Query
Wizard) _,
.
I. :
_ ( );
:~_ ( );

4.

205

_ , .


_ _. .
2.
sum ,
.
3. (Yes,
include row sums). , .
4. , , (Finish).
. 4.55.

Is1 _|/1_ :

_ 17LG
FDD 3.5
HDD Maxtor 20GB
MiniTower
> CD-ROM Panasonic IDE
:

| ^ |[

[-

1 - 111
222
262
150
112
60
60!
10
10
30
30

'

_Mj

40

. 4.55.


, .
, , ,

_, , .
_, _,
_ _, .
. , _
_, _.
_
sum.

I. Microsoft Access

206

, . . .
. 4.56.
_ :


_ [CD-ROM | FDD 3,5 JHDQ Maxlor|Kopnyc 11[


111
60
15
222
10
30
12

40

:_1_

. 4.56. ,


/
(. 4.57).
_

;
:
:
:
:
:
:


18

18

[ ]

_
18

_ "
! 8 ._
Sum
-

[ ]

. 4.57.

[ ? |] X ]

[ ]
[ ]

|
rJ

. 4.58.

4.

207


. | (Query|Parameters).
(Query Parameters)
, . 4.58.


, ,
, . .
, ,
(Create query in
Design view) .
.
. (Crosstab Query) ) (Query]Crosstab Query).

.
_, , . 4.56,
. , ,
, .

.
_, , , . (Properties).
(Field Properties) (Caption) . _,
.
. 4.57.
. 4.59.
SQL. __ TRANSFORM :
PARAMETERS [ ] Text (255), [ ]
Text (255);
TRANSFORM Sum (. ) A3 [Sum- ]

208

I. Microsoft Access

SELECT .__, ._
FROM
WHERE ({(._)=[ ]) AND
( (. __) =[ ]) )
GROUP BY ._ ._
PIVOT .;

TRANSFORM ,

(Sun(. ) AS [- ]).

_ : .

^
s
; j l

| FDD 3,5
111
\

. 4.59.

SELECT , {._, ._]. .


, , . ,
, .
GROUP BY
. ^, ._.

PIVOT , . , , . , PIVOT
.
PARAMETERS [ ] Text ( 2 5 5 ) ,
] Text ( 2 5 5 ) ; :

[ ] [ ] .

,

(Query Parameters) SQL.
DISTINCTROW , Access
. ,
.

4.

209


1. ?
2.
?
3. , ?
4. , ?
5.
?
6. ?
7. ?
8. SQL ?
9. , , ?
10. SQL ?
11. , ?
12. , ?
13. , ?
14. , ?
15. SQL ?
16. INSERT ,
?
17.
INSERT?

18.
?
19. ?
20. , 1:,
?
21. ,
?

I. Microsoft Access

22. SQL ?
23. FROM DELETE ,
_. * ?
24. ?

1. .
2. .
3. (View).
4. .
5. (Update Query) (Query Type).
6. (Update To).
7. .
8. SELECT INTO.

9. .
10.

UPDATE.

. .
12. , , .

13. (Append), .
14. (Append To).
15. INSERT.
16. INTO.

17. SELECT.
18. , .
19. . ,
(Cascade Delete Related Records).
20. .
21. _6.*
.
22.

DELETE.

23. .
24. , , ,
, .

4.

211


1. ?
2. :1
3. ?
4. ?
5. ?
6. ,
?
7. ,
?
8. ?
9. ?
10. SQL ?
. TRANSFORM , ?
12. TRANSFORM
?

1. .
2. .

3. .
4. .
5. , .
6. .
7. .
8. .
9. (Caption)
.
10. TRANSFORM.
. PIVOT.
12. GROUP BY.

8 . 835

,
Access, ,
.
,
, . ,
, ,
. , , . .



Access. ,
, . .

/
, (Database)
(. 5.1) (Objects) (Forms).
(Create form by using wizard).
.
,

(New) (. . 5.1), (. 5.2).
(Form Wizard).

5.

213

: ( Access 2002 - 2003)


[ ^

. 5.1.


: KpHCTpyKTOrj

:
:
[:
|:
':
,
(

. 5.2.

(Form Wizard)
. , , .

:
(AutoForm: Columnar), : (AutoForm: Tabular), -

I. Microsoft Access

214

: (AutoForm: Datasheet). (Columnar)


, (Datasheet) (Tabular)
. - ,
, , ,
. ,
, , . . , . , ,
(New Form).
, , , (AutoForm),
.


/ Access (Form Design).
.
,
(Database) (. . 5.1) (Objects)
(Forms).
(Create form in Design view). (New)
.
(New Form) (. . 5.2) (Design View).
S Microsoft Access


_
v^J
/J (/)
...


. 5.3.

5.

215



(Form Design), (Toolbox), (/) (Formatting (Form/Report)). ,
. / (. 5.3),
.

,

(Detail).
(Form Header) (Form Footer)
] /
(. 5.4). .

! :
i 10 I II t 12 I

. 5.4.

.
, ,
, .
,

,
, -

216

I. Microsoft Access

.
(Toolbox)
(. 5.5). ]
.
. 5.5 (Toolbox)
. , ,
.

. 5.5.

(Toolbox):
(Select Objects) ,
,
;
(Control Wizards)
(, ,
);
3 (Label) , ,
, ;

5.

217

(Text Box) (Unbound), , ;


(Option Group) ,
;
(Toggle Button) ;
(Option Button) ;
(Check Box) ;
(Combo Box) ( );
D (List Box) , ;
(Command Button) ,
, ,
, ,
Access;
(Image) , OLE;
(Unbound Object Frame) OLE,
;
(Bound Object Frame) OLE, ;
(Page Break) ,
();
(Tab Control) , ;
/ (Subform/Subreport) , - ;
D (Line) ();
(Rectangle) ;
(More Controls) , .
,

218

I. Microsoft Access


.
(. ) (Text Box), (List Box), (Combo Box).
(

, ,
, .
(Lookup).

, , , , (Label) (, ), .
, .
.
, .
, ().
, , , .
, ,
, , , , , ; : ,
, , . , ,' , , , , .

, , ,
| (Viewj Properties) (Properties)
, .
, . .
, , , /, "" ,

5.

219

.
.


,
(. . 5.4).
(. 5.6).

| [ | |

.. I

, . .
..


. . .

..

. ,
, .


. .

. .

. .

. .

, . ,
. .

. , , , ' . , . . .
. .


. .
. , , . ,

. . 9,998

, . . ()

, . .
, .


. .

. .
. . 10
X
. , 10
V
. .

. .

, .

, . ()

, ,

, ,

. 5.6.

.
| (View|Properties).

220

I. Microsoft Access

,
. ,
, ] (Edit Select Form).
(Form),
(. . 5.6).

. 5.7 (Form Design)
. , , .

(Form Design):
3 (View) , : (Design View), (Form View),
(Table View), (Pivot Table View) (Pivot Chart View);
(Save) ;
G (Print) ;
(Print Preview) ;
(Cut)
;
() ;
(Paste)
;
(Format Painter) ;
(Undu Move) ;
(Redo) ;
(Hyperlink)
( ), Word, Excel
Windows,
;
(Field List) ;

221

5.

ftiEl

Ctrl+5

...

...

Ctrl+X

Ctr!+C

Ctrl+V

...

Ctrl+K



..,

Alt+ENTER

...

F11


; Microsoft Office Access

Fl

. 5.7.

(Toolbox) ;
(AutoFormat) , , ;
(Code) VBA;
(Properties) ,
;
(Build) ,
(Expession Builder),

222

I. Microsoft Access

(Macro Builder) VBA (Code Builder)


;
G (Database Window) ;
(Create Object) : (Table), (Query),
(Form), (Report), (Web-) (Page), (Macro),
(Module);
: Microsoft Qffice Access (MSAccess Help)
Access ,
.
(. . 5.7)
,
.
,

. , , ,
, ,
.
(/) (Formatting (Form/Report))
. 5.8.
, MS Office.
. , , . :
(Object)
;
(Font)
;
G (Font Size)
;
(Bold), (Italyc), (Underline)
, ;
(Align Left), (), (Align
Rignt)
, ;

5.

223

_

-I: Arial

.>"

(/)

>




/

/
/

, 5.8.

/ (Fill/Back Color)
;
(Font/Fore Color) ;
/ (Line/Border Color) ;
G / (Line/Border Width) ;
(Special Effect: Flat) .


, . . -.

(Database)
(Form Design) (Toolbox).
(/) (Formatting (Form/Report)). -

I. Microsoft Access

224

, (Database).
| | (ViewjToolbars Customize) (Customize)
(Toolbars) (. 5.9)
.
(Form Design).
, (. . 5.7, 5.8).

; ]
:

~ -
"
""
"
"
~
]<

-*^1

|*
*~

V


. 5.9.


. , , () . (Customize)
(Commands) (. 5.10) (Categories) (Form/Report Design).

(Commands) .

5.

225

j |

,
.
:
:
< * \

I
*


_.1



'
.,.

| '1

,..

. 5.10.

(Customize).
(Modify
Selection).
(Name) . (Change Button Image).




.
Access.
,
. ,
, . ,
, -

226

I. Microsoft Access

, : ,
, , .

.



(Form Wizard), , , .

.
(Datasheet) (Tabular)
, , . (Columnar) , , ,
( MEMO, , ).
- ,
, .
, , , (AutoForm),
.



, " ".

( ). ,
.
, "
". : _, (. 3) .
. ,
, .

5.

227


(AutoForm).
: (. . 5.!)
(Objects) (Forms) (New). (New Form) (. 5.11)
:
(AutoForm: Columnar). / , ,
. . .

|


,

,

:
:
;
;;

11


:

. 5,11.

HPLaserJet

. 5.12. , :

228

I. Microsoft Access

: (AutoForm: Columnar) (. 5.12).


(. 3).
(), / .
(Form
View) (. 5.13), ,
. .

...


...


..,
:




,..



^: Microsoft Office Access
...

,..
...

. 5.13. !

F]

5.

229


, , , .
(View)
(Form View) (. . 5.13).
(View) , , .
) (View|Design View).

(. 5.14).




. ! ' . . , IE

.1

. 5.14. ,
:

230

I. Microsoft Access^

Access (Form Design) (. . 5.7),


(Toolbox) (. . 5.5) (/) (Formatting (Form/Report)
(. . 5.8).



(. . 5.14) ,

.
(Label). (Label) (. . 5.5),
(/)
(. . 5.8). .
( ).
, , .
. (Label)
<Enter> .
(Label)
. , ,
.
, (
) .
(Label), ,
. .
, .
.
(^



.
, .

5,

231

<Delete>
|.



(Text Box) (Label),
, ,
,
.
.
.




, .

| (View|Properties) .
. 5.15 :
_ (Text Box: _)
(Format).



.
,
( (File(Save)
(Save).
|3 (File(Close) (LEI) .

(Save)
(Form Name) (. 5.16).
,
| (File|Save As).

. 5.17.

I. Microsoft Access

232

: JOB
HAMMJTOB
j j | |

v!


2,418

0,804

3,011

0,45


-2147483643

, . , . .


-2147483640

, . . . , . , . , MS 5ans 5erif

8

, .

...!

. 5.15. !_,

. .;

. 5.16.

5.

233

:
1 ' 1 i Z i 3 ' 1 4 i 5 1-.

1*
i .
J *
i

tetepteyO> ^

JHAHMJTOB

_ |_~

*:

"

~1

1 1

. J TOSS

1 7 i S i ' 1 10 ' i i 2 i ' 13 1 1 15 1 ."*.!

5:

|_
1

J *
[^0^%<$

*1

1 ,

,-

. 5.17.



.
(View) (Form Design)
(. . 5.7) | (View|Form View).
, (. . 5.1) (Objects) (Forms) , ,
(Open).
. 5.18 , ( )
.
. ()
, , .
^|,

I. Microsoft Access

234

I|S

B@jS


( HPLaserJet!

|?

"\ ''^-*,*\

5 432,00.

- - >

10%

<

^njf


; 1 1

7 LJ 1^*1 12

. 5.18. /

, ,
, .
2.
()
| .
1.
,
. 2.


.
, . . -

5.

235

. , , , - .
(

()
- .

.
, , ,
,
.

.
Access . , ,
. , . . .

Access
SQL. ,
.


, . . .




, .
,
, . , .

236

I. Microsoft Access


,
. , . ,
.
. ,
, , .



, , . , ,
. ,
, . , ,
.

, ,
, . . .



. , ,
, , , ,
. .



, ,

5,

237

, . . .
, -
.
(. . 5.1)
(Objects) (Forms)
(New). (New Form) (. . 5.20) (Form Wizard).
.
,
1:.
. 5.19.

_
_

. 5.19.

. ,
. .
(New Form) (. 5.20).
(Form Wizard)
(. . 5.21)
(Tables and queries), (
) (Aviable Fields)
, . . 5.21 , _. ,
_ (
),
.

I. Microsoft Access

238

=
:
:
', :
(:
i ;

. 5.20.


.
.


[:
:

_
_
_

>

. 5.21.

, , .
, -

5.

239

.
.
(Form Wizard) (. 5.22)
(How do you want to view your data)
(), .
,
.



:
, , , _,
_

_, , ..,

<

>

. 5.22.
-
,
, (Form Wizard)
:
(Form with subform(s));
, , (Linked forms).
. 5.22 ,
(Linked
forms).

I. Microsoft Access

240


. (Tabular) (Datasheet) (. 5.23) . () ,
* .

- , , .
. (Form
Wizard) (Single
Form).


:
!
f"

<

>

. 5.23.

(. 5.24) , ,
.
(Form Wizard) ,
(. 5.25),

5.

241

, ,
.

.

<

>

QOTOBO

. 5.24.

, : . (Open the form to view or


enter information.) (Modify the form's design).

(Open the form to view or enter information),
(Finish) (. 5.26) , . .
(Modify the form's design)
(. . 5.25) (. 5.27), .
- () .
, ,
, ,
, , .
.

242

I. Microsoft Access

:
;


.
:
,
^ .

" ?

<

. 5.25. ,

02J

100

Ore. <

. . roe.
> 002

I .11.->, .

; 3,5

16 :

005

- CD-ROM Panasonic DE

50^

006

24 .

; | j j

*. ion.icj

> I j*-j 3

. 5.26. ,

5.

243

Ore.

-JHH8HH

':

.. - -'. (;-,- ,-- ,

^.-4-.;- -
;=
'.

:
"

L:

' 1 '

'

, :^- .

:.'
7

' - .

...

" , - -,;1

i 9

' 10 '

[ *
[_

**-

'



', <

__

i > 7 i : i i 10 i 1 i 12 1 13 i 14 i .*

. i

i 2 i 3 . 1 . 4 - 1 -

*
*

. 1*| , i.ni,K I [

*%

_-,|

| *
1_

- ' '

^ i-.---^--i'>', -\-/-' & --.


!

. "-.'-

. 5.27.

, , .

. (Form Design) .



(Form Design) . : ,
, ,
, , , ,
. . ,
.
9 . S35

I. Microsoft Access

244

, , ,
.


(Forms)
(Database) (. . 5.1) (New),
(New Form).
(Design View).
() (. . 5.2).

(Create form in
Design view), ! (Forml).
' , (. . 5.4). |
(. 5.28).
(Data) .

| ] |


' _

,

. 5.28.

5.

245

,
. 5.29. .
1 :
1

. I X

_
_
_
_
_

. 5.29.

, , . , , , , .
, : , .


, | (View|Field List)
(Field List) (Form Design) (. . 5.7).
.

. . (
). ,
(Caption), .
, ,
(. . 5.5)

I. Microsoft Access

246

(Text Box) (Combo Box).


(Text Box)
. , , (Unbound):

. (. 5.30). (Data)
(ControlSource) ,
.


,
, ..

..

_
_

_
_

. 5.30.


, . . , (. . 5.28).
,
, .

,
.

5.

247

. 5.31 ,
, .
SQL :

['. ^!

<:;<'.4,!|

|_

|':_

_
^ _

!|_

_.:
ITEK v 1

<

>
:
;

'

:
:
:
:

< -i

>

^. 5.31. ,

SELECT3AnAC.KOft_TOB,3AnAC.HAMM_Ttffl,CKflftn.HAMM_CK,CKflA.
_
_
8_

#
...
JCo, .:

^"" '

.:

| _

[ _
" ~'~~'

$%&

[-1_

[.

. 5.32.

, . -

248

I. Microsoft Access

| .
- SQL (. 5.32).
.
.
. ( . " " .)



, ,
. .
,
, .
,



(. . 5.5) / (Subform/Subreport). (Control Wizards)
. , ,
, .
'
(ChildTV), (Unbound).
(. 5.33),
.

, , . , , .
(. . 5.33) ,
.
|
(View Properties). (. 5.34) /
(Subform/Subreport) (Data).

5.

249

:
!

1 i 2 I 3 ' i ' 4 i 5 i 6 I 7 i 3 i > 3 i 10

11 Jtl

*
[

>

JWTAJ401 |

DKVJiai
iB 1
' -

_Y^__
iL

""|_"

__

4 1

'

_J

. ' .:...' ... ' i

. 5.33.

/:
^

J | |
-


_

_

. 5.34.
( )

- (Source Object)
, , , .
.
.
( ),
, .
,
. (. . 5.34) (Link Child
Fields) (Link Master Fields) ,

I. Microsoft Access

250

.
(_).
. 5.35.

1J 1111
. [ .2003]

01

^:

>

j 7709575511 11

Aj^ec

|. 12

I
[

.
: H| jj j|


(61 2)345- 2345 |

[76350976326')536567 |

||>* 1

* j

( )
( )

. 5.35.
( )


,
, . , .

/ (Subform/Subreport) , (. . 5.5) (Control
Wizards). (. 5.36) (
), ,

(. 5.37). , .

5.

251



, .


?
f"
<* {

>

. 5.36.


-.

|_|
1

_2- |_

_J

JLJI

JlJ

''' ', '.'

<

>

QOTOBO

. 5.37.

I. Microsoft Access

252

,
, . 5.38.

i 1

2 '

i 3

. . .5 .

, - 6 . . .7. . ' 6 . . . 3 .

10 i 11 i 12 i ' 13 i i

) 1 !

B A I^

,\ / VM

j
1

_ |

i .
1, ,

' .

|_

3KAI
1

3
j

i 3 , * , 5 , 6 . 7 i ) i 9 i 10 i 11 i 12^

|"'|~

~~[

||

~ "4'"*'

|_

-]|_

|_

zJ

. 5.38.

"Drag-and-Drop" ( )
"Drag-and-Drop" ( ).

, .
.

.

.

, , .

. -

5.

253

(. 5.39)
( /), ,
, (Properties).
, - ,
(Default View).
(. 5.39). ,
, .
Access 2003, , .

j ] j |

. 5.39.

(),
, , . , , , .
(No)
(Dividing Lines) (Format). . (Scroll Bars).


,
. .
VBA (Visual Basic
for Application). , ,
(. 14 15).

I. Microsoft Access

254


,
, . ,
(Text Box), .
. -- "=".

, .
,

" " _
. ,
_ .
- .
: - [; - [ _] .
(. 5.40) (Data) (ControlSource).

'

. . " . , . . , , ,
-

, . =[_]*]

. 5.40. ,

, " (ControlSource).
(. 5.41)
Forms .
, . , .

5.

255

[_] * [] |

___J

'
+]-J/]*M-|>|<|<>|

And Or | Not j Like | ( | ) |

D
S3

] Forms
-
L- (
( Reports
(+}

CD
]
" ' "

~'

^^

<>
< >
_
_

_
1
_

"

.__

._........!

AfterUpdate
AllowAutoCorrect
AutoTab
BackCobr
BackStyle
BeforeUpdate
BorderColor
Border LineStyle
BorderStyle
Border Width
BottomMargin
CanGrow
CanShrink
CdumnHidden
ColumnOrder
CoJumnWidth

v
;

. 5.41.

, , . 5.42 5.43.

j
:

i 1 i 2 t 3 ! + i ' 5 ' i ' 6 ' i ' 7 ' i i _^.

[ 1.

[ -1
;

~~]

[ 1 :

'. JtfilBX ]
3

.1 st

(-

-_

i
i
]_

= [_]*[]
)

. 5.42. ,

^1

4 /. Microsoft Access

256

17LG
6 587,00.

: . LjJ ""

1 >.il.LJHjj 10

. 5.43.

, ,
.


, .

,
, .

. 5.44.

5.

257

, , , (_)
:
- . ( [_1)

(:)
(. 5.44), .
(. 5.45) .
1

BBS

Jt]

111

,06.01.200310001

||

.. |

222

,23.12.2002 001

||

20,00,

|12.12.2002||002

||

30,00.

1<

!22,12.2002||

||
:

: |

> j _]>*| MS 5

10,00. j
90,00.

. 5.45. 6





, --.
,
, .
,
, .
. ,
_,
.
_
( . 5.46, 8) ,
:
=Summ([ ]).

I. Microsoft Access

258


, (Default View)
(Datasheet).

= [] : _] . [Form] ! [8]

, Forms "", (8) .



, , :
=[ ].[Form]![ ]

-[ ],fFofmj![

. 5.46.

8
.
() 14, .

5.

259

>


.
.




(Locked). .
,
. (. 5.47)
(Daia) (Locked) (Yes). .
:_

|
.

. 5.47.

, , (Locked) (No).




, (Data)
(. 5.48) (Allow Additions), (Allow Deletions) (Allow Edits)

I. Microsoft Access

260

(No). , (Recordset Type)


(Snapshot).
. ,
.






, ,


.

. 5.48.

(Record Locks)
( ) . .
, .

.

(Data Entry) , ,
.
, .


, , , ,
, - .
.

5.

261

, , (Locked),
. (. . 5.35) ()
.
,
.
(Data). (Locked) (Yes) (. 5.49). , , .
/:
vj

|X,

. ,

. . _
. . . _
. . .
.,

. 5.49.

1. , ,
?
2. ?
3. ?
4.
?
5. ?
6. (List Box) (Combo Box),
?

262

I. Microsoft Access

7. ?
8. ?
9. ?
10. , (Label)?
1 1 . ?
12. ?
13. ?
14. ?
15. ?
16. ?
17. , ,
?
18. , ?
19.
?
20. ,
, ?
21.
(Columnar)?
22. , ?
23. ?
24. , SQL . ?
25. ?
26. ?
27. ?
28. ?
29. ,
?

5.

263

30.
?
31. ?
32.
sum ?
33. , ,
?
34. ?
35. ?
36. ?
37. ?
38.
SQL ?
39. SQL,
?
40. ?
41. ?
42.
?
43. , ?
44. ?
45.
?
46. ?
47. ,
?
48. ,
, ?
49. ?
50.
?

264

I. Microsoft Access

1. .
2. (AutoForm).

3. (Form View).
4. , .
5. (Form Design), (Toolbox)
(/) (Formatting (Form/Report)).
6. .

7. .
8. (Field List) (Form Design).
9. (Data) .
10. (Toolbox).
11. | (ViewjProperties).
12. (View) (Form Design).
13. .
14. .
15. .
16. .

17. .
18.
.
19. ,
.
20. (Tabular).
21. .
22. SQL.
23. ,
.

24. .
25. .
26. (Toolbox)
(Control Wizards).

27. .

265

28. (Text Box),


.
29. (=).
30.
.
31. .

32. .
33.
.
34. =[ ].[Form]![
].

35. .
36. , SQL,
.
37. SELECT SQL.
38. .
39. , ,
.
40. SQL, .
41. / (Subform/ Subreport).
42. / (Subform/
Subreport): (Link Child Fields) (Link
Master Fields).
43. .
44. , , .
45. .

46. (Control Wizards) .


47. / (Subform/ Subreport): (Link
Child Fields) (Link Master Fields).

48. .
49. .
50. , .


,


.
, , .
, , , , , . . , ,
.


.
. , . .
,
. . , , , ,
, :
, (,
, , );
(, , ,
, );

6. , ...

267

(, , , );
( , , Word, Excel, . .);
, , , ;
Access, .
VBA
, .
,
.



, ,
-
, , . - , .

. .
(. 3)
, :
, , .
, ,

. /.
,
, .

, ,
.
. 6.1.

I. Microsoft Access

268

I
I

. 6.1.

Access ,
. ,
.


,
, , . :
, - ;
, - , ; (
),
.

6. , .

269



, .
, -
, , , .
, .




:
1. -,
.
2.
.

3. .
4. ( ), , . ,
, :
() ,
,
;
, , , .
5. , , . ,
- .

.

, , (
2- ) , , .

270

I. Microsoft Access

6. , . :
-
(,
, , . .);

,
- (, "").

Access.
" ", , . 2.19 (. 2).

2, -
2.
- ,
:
3 . " ", , ;
.
" ", ;
.
" ", ;
G _.
"",
.

_
;
. "", .

_ + _ .

6. , ...

271

: ,
, , . .

.

, . .
.


, . .

_, ,
, .
, ,
_ .
" " (. 6.1). , " ",
.
6.1. " "

I II

._

I!

I,;

,
Access.

272

I. Microsoft Access




(. 2) ,
, (. 5) .
- ,
.
.
(, , , . .)
, .

- -
, .

.
" ", (. . 6.1), _
,
.
.
Access .
, .
"" .


, "" _,
, .
- "" . 2 (. . 2.7).

6. , ...

273

(. . 2.19 2)
, (. . 6.2),
:
(_), (_), . , . .
"" (. . 2.7 2) (_) : , , , .
,
.
.
_ :
, , ( ), :
. . "" (. . 2.7 2) (_) : , , .
, .

_.



_ ,
(. 6.2).
(. . 6.2) .
. .
.


(. . 6.2) (. 6.3), .
.


.

274

I. Microsoft Access

KOAJIOK

-
. 6.2. /

1 ) |

[ ()|

[KOAJIOK ( jj

HAMMJIO <)|
|() |

| ()]

| () ]

| () |

^-^
"_

PMOSBI

()

| | |UEHA| |_|

TOBi kp

| ()!

| >

<

>"

] |KOnj1OCT| |_ \

. 6.3.

6. , ...

275


_
,
_,
,


:
( . 6.3
):
_ ( );
_ ;
_ ( );
_ ;
d , , :
_ ;
;

, . .
"".
_ :
_:
_ ( );
_ ( );
_ ;
_ ;
_ ;

'
, .
. ,
_.
10 . 835

I. Microsoft Access

276

, , :

__ ;

;
.




, ,
_. ,
_

.
5.
(Forms)
(New). (New Form)
(FormWizard); ,
, .
() (. . 6.3)
(Form Wizard)
, , _,
. (. 6.4)
.,
. _. (Form with
subform(s)) .

(Tabular) (Standard). (Form Wizard)
: " ",
: "_".
: (Open the
form to view or enter information).

6. , ...

277


, .
(. 6.5).


;
-

_, _, K04JTOK,
', , , .
AflPECJIOK, _,

- ^
-

, , , ,

; MHHJIGCT, ,

("

<

'

>

. 6.4.
!

>

0 -

|
^

|^

[77396711

1;

^=

IKwrBrnwr-^n

,
'JMae!l?Hi
| (,ts;,'
jMw.n1?LG

d ?.<*

jM<-js 1 a.ii

bSSJ^k-

i^WW1

p==

ptDTS"

*r

_j|

1 - 1

{8S2i34533

* , ,~ * >*?*< ^ nwrwu uw. .


yam
1 j
10
mo j
t,w;oo

p^m

K^
]1]*

rwi

:|

^
1

-','>.!

[^SoSa

1 "

-^.

|)5

i5E

'~~~"

>

In

>* > 5

~
'

"

isr ?>s

jo i

welder

so |

18 isejsop

10 1

i6^0n

__^_i >T

*|KS 5

. 6.5. ,

278

I. Microsoft Access

, ,
,
EOCTABKAJUIAH,
.




"".
.
( ) ,
: , , ,
.
.
.
(Database) (Objects)
(Forms). (Design). ,
(View)
(. . 5.7 5).
, 5.
, . 6.7. ,
, "" .
.



--
(. . ),
.
(ToolBox) Access (Control
Wizards), (Command Button). (Command Button
Wizard) (. 6.6).

6. , .

279


,
,
,
:

>

. 6.6.

|1

[
[. 12
1(012)345-2345

| infill
|7757651111

[7635509758

* ITOGI

|MoHMTQp17LG

[..

TOOI

[ 17LG

|6 587.00.

JIUU1

[ 1/

[ bHMJUp.

|1002

M ' i > ; '.

| ..

IFDD3.5

| 363.00.

3 |

10

100

700.00

131 ?..

ju

i s / .

10

50

18150..

111

3630.00.

|. 1**| i

. 6.7. ""

,
. (Categories)
(Record Navigation), (Actions)
(Goto Previous Record).

I. Microsoft Access

280

: (Text)
: (Picture) . . ,
(Actions) (Goto Next Record).

.
(Categories) (Form Operations),
(Actions) (Close Form).
.
. 6.7.


. .
(_, ,
_ .),
(_, , ).

. (. 6.8)
(Data) (Locked) (Yes). .

| I ]

. 6.8.

6. , ...

281

(Save As).


-
,
( , , . .), (Combo Box).


.

.
,
.
, ,
.

(. 6.9).
.


| ^lnliliM
001
?
/

/
004

005
'

,,,,
[

(111

1^^^^'

HaHMeHOBaHk
"2JI

08 01 2003

" 1

(
(, 38
1(995)3-15-6789

|
^

. 6.9.

I. Microsoft Access

282


(_)
. ,
, , -
"".
(Control Wizards).
(Combo Box),
, , ,
. (Combo Box Wizard).
, .
" " . (1 want the combo box to look up the values in a table or query) (. 6.10).

^
.
?
(" ^ " "
| .
f .

>

. 6.10.

,
(. 6.).
_, _ (. 6.12).

6. , .

283


,
.
:
:
:
;
:
: _
;
;

"

"

<

>

. 6.11.

,
?
" ".

<

>

. 6.12.


(. 6.13).
_, .
(. 6.14).

I. Microsoft Access

284


, ,

.
~ ()

002

<

>

. 6.13.

" "


. ,
. " "
6j ?
:

<

>

. 6.14.
(. 6.15)
(Store that value in this field) _ (
), .

6. , ...

285

XXX

XXX

Microsoft Office Access


" "

.
" "?
.
:

|_

<

>

..-.I

. 6.15. ,

(. 6.16).

, ,
]
, ,
,

" ,
|.

<

. 6.16.

I. Microsoft Access

286

(Finish).
_, ,
. 6.22.
. 6.9.

(List Width) (Column Width) .
.
(Change To) (Combo Box).

, .
:
(Combo Box), (Control Wizards) . , ,
.
(. 6.17) (Data) _, . (Row
Source Type) (Table/Query),
(Row Source) ,
.
_ _, , , .
: _


. . ,


, .

. _
. ,
,
. 1
,

. 6.17.

6. , ...

287



,
.
_ /.
. . .
(. 6.18) ,
] ActiveX

<

L..

HOMJIC )

_..!

I
!

2004

1 |_
1

|.>

jj |4 _iJ

41

.'

10

11

12

13

14

15

is

17

18

19 . 20

21

22

23

24

25

26

29

30

31

27

"

. 6.18.

. "_" (. 6.19).
|| ActiveX: Calendar?
Calendar2

j ( ]

OLE

M5CAL,Calendar.7

. 6.19.

_.

I. Microsoft Access

288

, .
, VBA, . 15.




.
|j^j . .
, (Command Button Wizard) (. 6.20)
(Record Operations)
(Add New Record),
.


,
.
.
:

'" -1-3-*

>

. 6.20.

,
_ (

6. , ..

289

)
(. 6.21)
(Allow Additions), (Allow Deletions),
(Allow Edits).

| ] |


5ELECT [], [_], [

, ."

I
. ,

. 6.21.


, , .

,
. 6.22.
,
. (Forms),
(Open). (Form View)
(Form View) 1 (ViewjForm View).

I. Microsoft Access

290
.

.' 11 ':"' :.

! ' i '

-'"- |

|
.

(. 12

|770576511

|(01 2)145-2345

J K o a ^ j

]585732453656
(Mnci

! ."J

ITODI _ll ( 17LG

|6 587.00. (

10 ]

1QQ |

5 ?OO.OQp.

|001 _lJ [ 17LG

6507.00.

5 |

201

131 740.00.

6 587.

|001 _lJ [ 17LG


(? ^J FDD 3.5
jlillltJ -d FDD 3.5

<

| 383. 00. |

10

50!

IB 1SO.OOP.

| . |

5 I

10 |

|001

'

004

007

."

:) "
. , .
, , .

.^

. 6.22. -
""


. 6.22
( |^jjj|
).
.
: ( )
( ), ,
.
.

.

, |
.


. -

6, , ...

'

291

: (),
() :
. : ,
.
|
()
,
,
.
.
, 5 . 5.46, . .

_ ,
VBA, 15.



. (, . .
. 6.22). ,
(, , , ),
(Record).
.

. ,
, (Find), (Sort
Ascending), (Sort Descending)
| (Edit|Find), [ (Records|Sort).
.
, , , (Find) (F'.nd
and Replace) (. 6.23)
. (Find Next)
.

I. Microsoft Access

292

:
:
:

; _

v.

v|

"

. 6.23.


, ,
.

.



. , , ,
, .
, ,
, . , ,
.

(, , . .) .

. .

6. , ...

293


_
[ ] (. 6.24).

!* SQL :

_
_ V,

ft. ][1](||]

|_

VjflATAJCr

^"i _

||_

<

>

;
- _
:

:
:
0
0
; [ ]

<

>

. 6.24.


(. 6.25) ( ).

. 6.25.

. .
,
.

I. Microsoft Access

294

,
.
, .
( )
" ". : . ,
.
,
: " " (. . 6.25). : " ".
. . 6.26.

"^^^^^^
1

. i .

. i . z 1 3 i 4 1 5 1 ' < i 7 i 8 i 9 1 10 i 11 i 12 1 '13 i > 14 i 19 i " 17 _^jl

'^; !
j

1 -1
^__

!,

. , . , . , . 2 1 3 i 4 i 5 i ' S i 7 i 8 i ' i i ' 1! ' i ' 12 > i ' 13 i 14 i 15 ' ' JM

*
4

! =
1

T-i'Ei?

1
"

!|,

i|AQPEC

, , . | .

. ,, , '|
. 2

3 1 * i 5 i S

i i

..

11 i 12

j
13 ' 1*

_*

f


1 -*
_
|
i
i
i
i
i
1 *

|
i
i

i
i

*.

-, |

>!

. 6.26.



(. 6.27).

6. ,
.

^^]

-31

>

-iep |222

! i

I-


> [!

1
|

^
]
i

100 |1
2

222

555

12 JMoHMT 0 p17LG

87 00 3

S - ''

|001

6587,00.

|TD03

10 jHOOMaxtorSQGB

2590,00.

|TOQ4

30 jKopriHcMimTower

\ 916,00.

i
. | - S |
:

\4 | .| ||

jj

> | |Mfr| 4
'

f f. \ |>.*| i

i!
jj J

____]

, |

<

. 6.27. ,

\
. ,
, , .
- (. . 6.24)
_ . Between [] and [.],
.
,
(Unbound).
, .

: .
.

(. 6.28).
,
VBA. 15.

296

I. Microsoft Access

' '-



loi.oi.2003

|oi.oi.20Q4

111

[, 33

|001

ITOOI

|002
: J 1 1 ( J J
; 11 |

( 01

|002

08.01.2003

100 | 17LG

6587,00.

20 ( 17LG

6 567.00.

( 17LG

6537,00.

50 (FDD 3.5

363,00.

10 (FDD 3.5

363,00.

( |>#] 5
> | |*j 2

21

. 6.28. ,

1
. . 6.29.
,
. .
, ?,!, .

"" (. . 2.6 2) :
, . 6.30;
,
.
, ,
.

6. , ...

297

&

0001

. (, 1 5

jnCOl

1778957651
1
|. 1 2

|(1 2)3^5-2345

JO" !

. 6.29. ,
""

"" .

htCW_HAKJI

_
1-_


. 6.30.

298

I, Microsoft Access

1. ?
2. ?
3. , , (-) ?
4.
?
5.
,
?
6.
?
7. ?
8.
?
9.
?
10.
?
11. ,
?
12.
?
13. ?
14. ?
15. ,
?
16. , ?
17. ?
18. ?
19. , , ?
20. , ?

6. ...

299

21. ?
22. , ?

1. , .
2. .
3. --.

4. .
5. ,
.
6. .

7. , ,
, ,
.
8. .
9. .
10. , , , .

11. .
12. _.

13. .
14. (Data)
(Locked) (Yes).
15. .
16. .
17. , , .
18. (Data) (Row Source).
19. (Data)
(Control Source).
20. .
21. .
22. ,
.

.


.
, .
, ,
.
^

,
. ,
, .

, , .

. , ,
. , . 1.3 I , , , .


, .

, ,
Access , -

7. .

301

. . .
,
,
Microsoft Internet Explorer.
| . .

.


Access
, .
,
-
.
,
,
.

. SQL Server
, .



.
, ,
.

. . 7.1 ,
.

I. Microsoft Access

302

+ |-j|
+ ]
+ ]
V
[J]

. 7.1.




.
,
.
, .

. , (Field
List) (Pivot Table View). .
.
, . , .
, . 7.2.
,
, . . 7.3.
(Add to),
(. . 7.2).

7. .

303

I -IX I-1

*
:+

TDQ1

[
[
[J]
|
[

002

005

. 7.2.

:.

BBS

] *i

* 002

01

001

+ HD02

001

CD1

001

.CQ3

001

2
'

TOQ1" "

2
"2

* 004'

CQ1

* 002

CQ2

002

02

002

10

* 004

02

002

10 -

* 002

+ 002

' 02

* 004

02

+ HQ01

01

005

20

+.001

02

005

X * HOD2

02

TOQ5

"10!"

02

TQQ5

- 001

006

* 002

: 1 1

15

^*J 22

1.

jiL J

. 7.3.

jJ~

304

I. Microsoft Access

. (Add to):
(Row Area);
(Column Area);
(Filter Area);
(Detail Data);
(Data Area).
. - ,
.
, Delete.
, ,
.



, . (Pivot Table View) (AutoCalc)
(Sum).
,
. (Hide Details) (LMJ).


. 7.4.
, .
" " (. 7.4).
. , .
, , . 7.5.
,
. , .
(1_).

7. .

305

:
^
eger>.,'-? ' r> s :-;.-; ajjjvayo
* " "!

"~2

002

" *

25

12
40
6

5
TUQ6'*

'

TiJ

^ "
]
[J]


]

13
||

130

. 7.4.



. 7.5.

,
, ()
.
"+"
. "--" .
, ,
.
, . ,

I. Microsoft Access

306


.
, .
. ,
(. 7.6).

'" ''
. . . .

CD2
.

i . -

..

[^..

I . . .

___

.. . . . . .

....

[ ": "' " "


TGQ1
:

; 02
"

005

"
TQQ8

"

.
-.
.

20

. 7.6.



, . 7.7. ,
.
.
, .
, .

.
.


,
.

7. .

307

_
_

^
_

_; .V

_
_
_
_

_
_

:
;
:
:
;
;

* '

>,

. 7.7.

riiiiii ana
* ;
-

jior - 1
111

222



'.
1

"

"

"

" ..
CD-ROM Panasonic IDE

DIMM64MPC10Q

+_

FDD 3,5 '


HDD Maxtor 20GB
. Genius LJv
17LG

"-*
!
*
1

"24
5

"

16
15

1
10

'

; 15
: " "
: FDD 3,5
: 0.222
: =

40'
6
25
12
13
23
11

. 7.8. ,


(AutoCalc) (Sum). (. 7.8)
11 . 835

I. Microsoft Access

308

,
, .
, , .
, (. . 7.8).


: , (. 7.9).

(.
tj
+ ) HAMMJ10K
;+ ] _

2004
t.-figKBl
-

h/

]
2
~-
[||]
[U

[3
[EJ
[D

L+>[_12005

-
[3
[=]

^
[3
[JJ

+< []]

. 7.9.

7. .

309

.
, . . 7.9 :
2004 .




, , . ,
, .
.
.
. ,
, ,
(. 7.10).

8* :

OfellS

1.1
2004
|_-* ;_ :
111

;322

|
'

' "^ ' ' " ' "


24
1G"
40
40
CD-ROM Panasonic IDE -!

1
1
6
DIMM 64M PCIOd
5
15
15
FbD'35""
'_ "4
8
i
.
11
HDD Maxtor 20GB

10
' i
!
3
13
. Genius Liv
7
19
4
4
23
17LG2^
12
10
11
11

. 7.10.

,
(AutoCalc).

I. Microsoft Access

310



,

. , .
, , ,
.


(. 7.11), , , , .

:
3_: | " "!
:

^
__

& - ~
__j j_
__j

[Measures], [ 1 ]
!

. 7.11.


,
.
(. . 7.10)
, . -

7. .

311

, ,
. ,
. ,
.


.

. (AutoCalc).

. (Calculated Totals and Fields) (Ll!il) . (. 7.12)
(Name) . [ ]/35 .
(Change),
.
, (AutoCalc).
, , .
(Calculated Totals and Fields) .
(. . 7.12).

.
() (. 7.13).

,
.
,
. .

. (Calculated Totals and
Fields) .
" ".

I. Microsoft Access

312

: !
[Measures] . [1]/35

[ " " ()

. 7.12.
HHBHOi

| | \ ] |

X ' ftl 21

^____^

; | ()

s=- j | ^

; ]Arid Cyr

"jj jlCi

j ()

, ()
~

^^.-^^^^^^^^^^^^^^^^^^^^^^^^

. 7.13.

[]* [ ]/35. (Change).

7. .

313

, . (),
() . (AutoCalc) . , .
, ,
, , .
, , () . - .
. 7.14.
r

g11 _ :

-]!'*]

_' HOMJ-!

:
J

> |
64 PC1QQ
HDtf Maxtor 2QGB~"~ ~~
. Genius Liv
17LG
. -, '_ ~rj

t -;

..:+': ..

" | '
"""5,43
10,29
61 ,71
109,71
109,71
7,63
67,63
376, 40
376, 40
752, 80
668, 00
68.00
1 095, 83
564, 03
1 659, 86

. 7.14.

, ,
, .

(. . 7.14) " ",

(^.) , , .

. 7.15.

I. Microsoft Access

314

6^ _

J.IT.I

- '
'
+ -

'+ -

;0
.

: .'

^ * . " ] " [ " TOBj


64 PC1QO "
~
~",33%
16,67%~
^ 100.00%
HDD"Maxtor20GB"
'*\
100.00%
100.00%
m
. Genius Liv
100,00%
100.00%
17LG
50,00%
100,00%
"":
50,00%

'":
100,00%
100,00%

66,02%

33,96%
100,00%

. 7.15.


,
.
, ,
, .
, ().
(View).
. , ,
. . (), . ,
.
(Show Legend)
. .

. (Format)

7. .

315

" ", - " ".


.
. .
, .
100 000 80000,
.
,
.
_
, . 7.16.

|! _ :

Qfo |[]


i
.1 " "

1 1 1 - 17LG
" ": 79 04^00,

1
1

- !

jor * i

- 1 1 1

1 ... fri ,
LLJ

' S

<->

0.

F
Q

1
5
1
Q

i/J

"

[D

R
\_

>

5
^

-5

0)

-1

te

P.

:
=

D -



. 7.16. _

(
), ( )
.

I. Microsoft Access

316

. , , ,
(Chart Type)
(Column), (. 7.17). , ,
, - .

|
|
j
^
[L>-
[*

\_
?;
|
Q
^
IjjJJIL
()

. 7.17.

, . 7.18.
,
.
, 160 000.
,
, ,
. . -

7. .

317

, . . , ,
, .

lUP

? :
!

" "

to
I

&

8 :
1

25000,00.-

HAHMJTOK_jJ

HOMjior ' !
D -

1 - 222
gg'l ' ' g
W ~

<J

'

- 1 1 1

1 1 i1!1
fi Q-

i
Q

g I

&

.n


'
. 7.18.

. , . 7.19.
.
,
. .

.
.
(Data) (Show Details). (Common)

I. Microsoft Access

318

(Element) (Cart Area). (Show


Details)
.

'"'

_ :

<J

/
[ "

" "

'

;

17LG

D HDD Maxtor 20GB


;

*J

3 . Genius Liv

HHI

0,00.-

pf

t-r


'

1 1 1

222

D FDD 3.5

DIMM64MPC100
CD-ROM Panasonic IDE

' : "

. 7.19.


, . .
, .

1. , , ?
2. Access
?

7 .

319

3. ?
4. ,
?
5. , ?
6.
?
7. ?
8. ?
9. ?

1. .
2. , , .
3. | (
).
4. , , , .
5. .
6. .

7. .
8- .
9. .


Access
,
. ,
, , .

.
.
, , ()
, , ,
. , . ,
.
.

. . .

. .
.


.

. , -

8.

321

, ,
. 5 . 5.5.


, . 8.1.

j
j

W 1 :

^][

Is

i 1 i 2 i 3 i * i 3 i_l

f


< /
^^^^

*06

1:

* 1

OHTMTV

J * >
4|

. 8.1.

,
| (View Page Header/Footer) )
/ (View|Report Header/Footer).
(. 8.2).
. . -

322

I.

Microsoft

Access

, , .
.
.
(Report Header)
(Footer). , ,
, .
.
10 .



.

(Detail), . , ,
.
, ,
, , , , , . .
.
. 5.5 5.
, . .


,
(. . 8.2) .
,
.

(. . 8.2). ,
.

8.

323

- VKTOD

4..

..,

Ctrl+5

...

Ctrl+X

Ctrl+C

CW+V

.,.

_


.,,

Alt-t-ENTE!^

,..
QKHoSajbi

F'.l


: Microsoft Office Access

1=1

. 8.2.


.
.
. 8.3.
.

.
.
.

.
.

I. Microsoft Access

324

. 8.3.



(Database)
(Reports). ,
(Create report). :
G _, _, , _, _,
;
_, ,
;
1

] _ ;
(Stepped) ,
, (Portrait) ;
;
(Adjust the field width so ail fields fit on a page);
" ".
,
. 8.4.
,
.

325

8.

, ?_ ,
, .
. .
,
(. 8.5), 4

01

763585&763264555

005

763585097632645353

02

293847898239429334

007

654327890345675678

005

S97969Q8790S79S425

04

585687897685746478

23 2CD4 .
:

I'.! 1

>

. 8.4. ,

.

|_

4 ! * 1

1-
2
3
4
5

^^^^
|

. 8.5.

326

I. Microsoft Access

,
4 4 , . =Left { [_] ; 4 ) ,
4 . .



, .

, . 8.6.

1 i 2 i 3 I 4 i 5 1 6 I 7 I 8 i 9 i 10 i 11 i 12 > I 13 i

!
v

* <

<

mmjiQK

|[<_

JEAHE

|1_1)

||

IIOIV [

f ' '

L. . .

..I---I

* =
|)_ 1

IjjHOMl

** KOI >
:

* J

1 1

!.._..,

= "4|" & [] & " JQ " & [Piges]

. 8.6. , ,


, ,
(Sorting and Grouping), .
, (. 8.7). -

8.

327

_, , .

| > J1OK
_

( 1

^'

| |

67

1

. 8.7.


(Yes) _ (_ Header) _ (_ Footer) . .
, , 6, _ ,
( -).
.

_ (_ Header) _ (_
Footer) (No),
.


, .
, . 8.8.
, .
instrB ,
. instr , _ -

I. Microsoft Access

328

(,). mstr
. . L e f t
_ ,
.
: . , , .

/
1
(Si> =1([_];(151:([_];',')-1)) jj
HAHMJIOK

. 8.8.
_


_,
(. . 8.10).

,
.



(Header).
, instr Left.
,
_ , .
(. 8.9),
(Field List) , .

329

8.


1
_
_

. 8.9. ,

,
.

W :

'

'

. , , . , .

. , ,

[L ]jfclfXj
, 6 i 7 i i

i 10 i 11 i 12 i 13 i ' i 1L.

L
[ <1! (!VI
Cr
i
/ >
|=Nowj)

|), ;<ix:

"=Co'i

__._

^ . h! ,eft ([ TP1

)K|

^ =1[_];(15([_ TOKiv) -1))'

j
-I
j

*0
||1>[1 [

IEAHK!

__

PHOI _|

* t |'=11:([_];51:([_];' >!))'
JBcero rojiifle: 1_J |=C[ojint<[pAHM _]

-|____]

*
="cfej^" & [Pake] | & " b "&"[

-.~

"1

-- -

^ j

I
. 8.10.


, -

330

I. Microsoft Access

. ,
,
. , , , . , ,
(Label).

, .
. .
, , .

, , , , . 8.10. , (Line).




_ (?_ Footer) (. . 8.10). (Text Box) (Unbound),
(, , .).

(Data) (Control Source). .
(Format) , (Format) .
(Unbound) _ count
(. 8.11).
.
. (Format) (Caption) . ,

331

8.

, , .

: 13
v- '

I 19

j | j

1 ...|


-

,
. ,

. 8.11.

,
(Format) .
.



.
NOW{) /, ,
,
(Text Box) -NOW ( ; ,
/.
(Format) (Format)
. . .


=""&[Page]&""&[Pages]


, (Data) (Control Source).
.
N , .
.
, -

I. Microsoft Access

332

| (Insert|Date and
Time). (Date and Time)
(Include Date) / (Include Time)
/
(. 8.12).

- -Iv'

}f+,

**

[?j!^l
^

f\V

27 2004 .
27--2004

__^!!!!!^__

27.02.2004

'. <?

27 2004 .

. 8.12. /

^* N

'1

..

v ,

. 8.13.

' ,
(Data) (Control Source)
= D a t e { ) .
.

8.

333

, ] (Insert|Page Number).
(Page Numbers) ,
, (. 8.13). (Show Number on First Page).



(View) . (. 8.14).

...


jp
j^'

" :

;
[ Office
I
|
" | iff}-- : Microsoft Office Access Fl

. 8.14.


(Reports)
(Preview). , (. . 8.16).
.


,
. [ (FilejPage Setup)

I. Microsoft Access

334

, , (. 8.15),
, (, ) , , , .

;
...
(""

. 8.15.

5
.
Microsoft Access .
.


. , ,
. .
(Print) (. . 8.14) .
, .
[ (File|Print),
. , , ,

8.

335

, , , , . ,
.
. 8.16
.


27 2004.

002


7635509763364536

76358509763364536
29384789823942931:

1 2
:

. 8.16.


Access ,
.

. .
, , -

/. Microsoft Access

356

, .
. , ,
, , .
, . .

SQL
.



,
, ,
, .
, ,
. 8.17. , , . .

, _
.
.


. 8.17.

8.

337



(Reports),
, .
(New), (New Report) (Report
Wizard). ,
, , .

(Report Wizard), , .
(. , 8.17) :
, :

__;

^;
_, :
_;
_;
_;
G , :
_;
;
;

_;

, :
;
_;
_;
;
, ;
_.
,
.
" " (. . 3.30 3}

I. Microsoft Access

338

,
. , . ,
, ,
. 8.18.

_
_
_

_
_06
GPOK_nOCf
MMHJTOCT

. 8.18.

(. 8.19) . , , ,
.
, ,
, . ,
, , ,
: , .
_ . , , .

8.

339

_, _, ,
, , .

|: '"
-
-

, , ,
_, , , _

J*J

<

>

. 8.19.

:
I > 1 . I J > i 3 ' I 4 I 5 i ' 6 ' I 7 I 8 I 9 I 10 I - It i 12'"~13 i 1* > ' 15 i 16

| *

^^ ~"'||!] )^

"|

" |CI.IBM|

* _

1 rr-'-"t
I

|]

J *
*
E

;.!

Npw()

L ._!.: L.M .:.). L...I

-.

J ....i:.-. " " 8. [Page] A "

J *
(

. 8.20. ,

12 . S35

340

I. Microsoft Access

, , . , , .


.
. 8.20.


. , . .
SQL:
SELECT . _, . _,
nOCTABKAJUlAH . CPOKJIOCT , _ . _ ,
_._, . _, . ,
. , . _ , . ,
. _ . JIOK, . ,
. _, .
INNER JOIN ( ( INNER JOIN ON
. _=?._) INNER JOIN _ ON
. __=_ . _ ) ON
. _=_1 . _ ;

SELECT , FROM .
, ,
SQL . ,
,
: , .

, . ,
, SQL .

(Field List), . SQL, , .


.

8.

341


,
.

, (. . 8.20).
. ,
,
, .

, , . 8.21.

,<1""||
""
10| I > :

|HA!M_ipB
* J

. 8.21. ,

342

I. Microsoft^ Access^

,
.
,
.
, - .

, .

= []*[_]. , (Text Box)
. (Unbound)
.
, .
. (Data)
(Control Source). (Format) 2, (Format) .
, .

.
,
.
(Unbound)
=sum( [_] - [] ) .
, . .
, ' .
=IIf ( [44]>1000000;' ' 1 ; ' ' ) , 44 , . , ,
. . , .
, . . iif
.

8.

343

, 8.22.
, .

77W*65MI1

EMIHK

?*

76358509763264536567

HiR.li*.]

S7LG

tl

5S7,OOp.

17LG

28

5S7,OOp

FDD 3,5

10

363,

I7LG

10

FDD 3,5


23 ( 2004 ,

! 009 830,00.

1|*,.1 1 3

. 8.22.


, . ,
.
.
. _. ,
[ ] .

I. Microsoft Access

344

(. 8.23).

(~~

. 8.23.

.
1
, ,
.
2
, . ,
.


,
.
, (. 8.24).
, ,
:
, :
^;

_;

;
;

_;

8.

345

FflnHtii(a n.iMfipp.Hiia

. 8.24.
, :

_;

_;
_;
, :

_.

, . 8.25.

1_
^
^
_

_6
_

_
_
_
OTTF

. 8.25.

I. Microsoft Access

346

,
, -
. ,
.


, , . ,
, (New
Report) : (AutoReport) .

a jq

(][ 111

. , . , , . . , . 3 . , I - 5 - . . 8 . . . - . - - !

J
. ,"|

J *
1

1 " 1&< ' WffOf

_
HUl'lhil

UHA

[ mtepe \ v\
'

\Cmat ? ft,

^.

<(

J f
J

* :

"&lf age/^fMj

" UAz^t

. 8.26.


, -

8.

347

.
, .

. 8.26.
, , . .


, . ,
.
.
,
. , _.
/ .
. 8.27 ,
.


,
:

. 8.27.

, ;
(Summary Options),
_. , . , . .

I. Microsoft Access

348

. . 8.28.

_-

2004
01

TOOS

10

25.01.2001

01

008

25.01.2001

25.01.200-1

20.01.200-1

01

'

( ' 7_071 = W.Q1.2QQ4 (4 )

Sum

2004

2005
02
02

002

1
IQ

21.01.2005
21.01.2005

'F\TA_OTfP' * 21.Q1.2QQ5 (2 )

Sum

2004.

1 2

; I

. 8.28.

, , .


. .
.

8.

349

,
(. . 8.26).
.
.

Access
, . . . ,
.
/ (Subform/Subreport) (Data)
(Link Child Fields) (Link Master
Fields) (. 8.29). / (Subform/Subreport), ,

/:

| | |

.
_
_

. 8.29. ,





. / (Subform/Subreport).

(Control Wizards). (Unbound) ^ Chi Id .)
. -
, , .
,
. , /, (Data)
- (Source Object) -

I. Microsoft Access

350

, (Link Child Fields), (Link


Master Fields) .


,
, .

;
2 i > 3 i 4 i 5 i 6 i 7 i 8 i 9 i 10 i 11 i 12 i 13 i 14 i

5 "
}]_
;

frrjif

lUEhfe"
vuepe


i . I . i 2 i 3 i ' * ' i 5 i 6 i ' 7 ' i 8 i i 10 ' i 11 i 12 i 13 i

J ^

JCco

* '_'

*
'_'

i1=[
i
i otrP]>
i
#

&0 &

"~

-] - - -

j --

- ^-

. 8.30.

8.

351

, .

(). .
, , .
. .
, (Page Header/Footer)
.

, ,

.
, , , , , , .

. 8.30.

,
, -
. ,
, .
,
. . ,
_ Between
[ ] And [ ].


, .
. ,
, . , .
, . :

352

I. Microsoft Access

= [ ].
.

. Access ,
.

,
.
(Sorting and Grouping). ,
( ) (Sorting and
Grouping).
.

, , (Report View) .
. 8.31.
(Print)
.
,
, . ,
.
, , , , .

, .
, , , ,
, ,
( Null). 4.

8.

353

g][E

IT 001

( 17LG

6 587,00.

g%

2004

: 2

|01

JT001

10

25.01.2004

|"

|001

20. 01 .2004

12

2004
|01

|
. 2

JT001

25.03.2004

|001

26.03.2004

2004

: 2

|01

|001

28.04.2004

|01

[ 01

29.04.2004

23
.- pa i 1 1 0

29 2004
: JJJ

1 ^ J^J j

Jij

>

jd

. 8.31.



.
.
, 12, 4,
7, (RunningSum)

354

I. Microsoft Access

= , :
12, 16, 23.
.
3
, ( ).
, , . , ^
, . . .

(RunningSum).

1. ?
2. , .
3.
?
4.
?
5.
() ?
6. ?
7. ,
?
8. ,
?
9. , ?
10. ?
11. ?
12. , ?
13.
?

8.

355

14. ,
?
15. ,
?
16. ?
17. , / (Subform/Subreport) ?
18. ?
19. ?
20. , ?
21. , ?
22. ?
23. ?
24. ?
25. , , ?
26. 1'
27.
?
28. SQL ?
29. , ?
30. , ?
31. ,
?
32.
?
33. , ?
34. ?
35. , ?

356

I. Microsoft Access

36. , ?
37. , i i f - t [_]> 000; ' ' ; ' ' ] , 70 ?

1. , , ,
.
2. .
3.
(Field List). .
4. , .
5. .
.
6. .
7. . , .
8. .
9. .
10. N O W ( ) .
. (Text Box).
12. { (File|Page Setup).

13. .
14. .

15. .
16. (Data).
17.
(Control Wizards).
18. - (Source Object).
19. (Source Records).
20. .
21. / (Subform/Subreport)
22. .

23. .
24. 4.

8.

357

25. .
26. Sum, Avg, Min, Max.

27. SQL.
28.
(Record Source) .
29. SQL .
30. .
31. (RimningSum).
32. .
33. .

34. (Criteria).
35.
(Field List).
36. .
37. .

II


Access

, .
, .

. ,
Access , . .
.
.
Access,
.
. , ,
Windows 98, Windows 2000/XP Professional. . ,
. , , ,
.
, Windows, , .
. , Windows XP

362

II.

., ,

. , .
, , . , ,
Microsoft Windows Network, ,
, .


, .
.
, , , .
, , NetWare Novell Windows NT/2000/XP Server.

, ,
.
.

, .

, .
,
Microsoft Access ( )
( ,
). Access , . . Access . Access
. (runtime)
Access. , , .
(

, runtime- Access , Access, Microsoft Office


- Microsoft Office Developer Tools.

9. Access

363

, ,
Access.
,
.
. 9.1 " ", ,

,
,
,
, ,



,
( )

..

,,

.,

. 9.1.
" "

Access
, , ,
,
. Access , .
, Windows
-

364

II.

. ,
, ,
. ,
. (), .
, , , ,
.
Access.
,
, . , , NetWare Novel
Windows 2000/XP Server, .
-, ,
. .
-,
.
, .
.

.


Access
. Access
. Access.
, .

: , , , .

9. Access

365


, .


Access, , , ,
, .

.
,
. , , , . , ,
.
.
, " "
: , , , .
. ,
,
, ^ .,
. , , . ,
, . , ,
.
Access Admin :
(Admins) (Users).
Admin
Microsoft Access.


Access , Access, System.mdw.

366

II.

.
Access.
, Access
Admin,
. Admins . , , , ,
, . , Access
,
,
, , , .
Access , )| (Tools|Security|
User and Group Accounts) A d m i n .
Access, . , Access, .
Admin ,
(Logon), . 9.2.

. 9.2. Access


, ,
.

( ,
, ),
Admins. Admin
Admins. Admin Admins , . .
.
Admins , -

9. Access

367

, , ,
. , , , .
: Admins Users,
.
Users Admins. Users.
Users / . Admins
, . Users .
,
Users, .
. , Users, ,
, .
,
() (Tools| Security]
User and Group Accounts), Access. |
) (Tools|Security|User and Group Permissions),
. ]
| , ,
(Logon), .
( ),
.
Access . Access
. , Access. ,
, , . , ^
Access.
. ,
Windows XP Professional
-

II.

368

Systeml.mdw, 1___\}\\1$ and 88\_/0\1 Data\Microsoft\Access.


Access .
, , , . mdb.
, ,
|| (Tools|Security)
Workgroup Administrator). Access.
, ,
.
,
.
, Access. , , Access
.
.
(Workgroup Administrator), (Save). {3|
(Tools|Security Workgroup Administrator). (. 9.3) , WID-, .

,
.

,
, ,
20 , .

:
:
:

. 9.3.

9. Access

369

.
,
,
.
Access
. Access, ||
.
,
(Browse) (. 9.4).
UNC \\_\\_1.
, ,
.
, .


,
:

stion Daca\Microsoft\Access\5ystemlmdw

. 9.4. Access

, , , Access.

, Access, Admin Admins Users,
Access . , . , -
, HKEY_USERS,

, .
(WID) , .

II.

370


Access (Security)
(Tools). , ,
(User and Group Accounts).
(User and Group Permissions)
.
(Set Database Password) .
,
(User-Level Security Wizard).
.



.
, .
.

, (Task Pane) (File), , .

, , ,
| (File|Open Database)
(Task Pane) (More).
(Open)
(Open) (. 9.5).
.
(Open)
, , ;

9. Access

371

(Open Read Only)


.
;
(Open Exclusive)
;
(Open Exclusive Read Only) .

...

^__ .
'{JjrioKy . md

^ poe.mdb
:

4 ,! OPr.mdb
^JJTIpti :* _ . rrdb
^ n. mdb
dj _ . md b
]_2003,1
' _2004. mdb

Microsoft Office Access (*.rndbi*.3dp;*.mda,'l'.rride;*.ade)

. 9.5.

, (Exclusive).
. ,
, .
,
, ,
13

. S35

372

II.

,
. , , .
,

.

, (Open). , ,
, (Open).

, , .

.
.
, ,
(Open Read Only)
(Open Exclusive Read Only).
, . 9.6.

Microsoft Office Access


t

' 1 .
,

,-

. 9.6.


. , , , (Edit)
.
, . .
, . 9.7.
,
. -

9. Access^

373

, .
Microsoft Office Access

1 )

'0:\_2003\ TaeapOB.mdb' ,
,
.
'Microsoft Office Access' ,
' '!'

. 9.7. " "


.
, ,
.


, ,
(Options) (Advanced)
(. 9.8). | (Tools|
Options).

, (Default Open Mode) (Shared).
,
(Apply). .

, .
, .


(Open)
. , ,

.

//.

374

DDE -

DDE;

[Access 2002 - 2003

DDE

*'
*"*'

OLE^DDE ():
();

~J

{*
'""*

ODBC ():

J1500

();

250

("

. 9,8. ,

,

, .
. Access
. ,
, , .
,
. Access
.

, .

' 9. Access

375


, , .
, , , .

, ,
.


,
Visual Basic , .
(Record Locks)
(Data),
(General), (Other).

, , .
,
, , .
, , ,
.
(Record Locks) .
, Access ,
.
(Record Locks)
:
(OnLocks) ( ).
.
. .
, Access , .
, , ; -

376

II.

.
, .
(All Records).
, .
,
, , , . .
(Edited Record).
(Record Locks) . .
4 ,
. , ,
.
Access
.
(Open databases using record
level locking), (Advanced)
| (Tools)Options).
. ,
.

11.
.,
,

(Record Locks).

,


(Record Locks) ,

& Access

377

. , ,
, (Tools)
(Options). (Options)
(Advanced)
(Default Record Locking) (. . 9.8).
, (Options)
(Tools) .


mdb
Access Idb
, .
. Microsoft Access . , Access
.




.
, .
,
, )
(RecordsjRefresh). -
, Access
: ^ (. 9.9).
, , .

, ;

Ii , , . , .
, , .

//.

378

LJ , .
.
Access .

]

5%
17LG
6587,00.
6%
FDD 3,5
363,00.
HDD Maxtor 2QGB
1 260,00.
16%
0%
MiniTower
916,00p
30%
CD-ROM Panasonic IDE 1 153,00.
DIMM64MPC10Q
360,00
15%
#
#
# #
16%

2338,00.
. Genius Liv
789,00.
10%
Genius ext
1 295,00. H3L pl^p.
~j
1
1: 1 ^ |
i 10
9 > |


* 001
+-7TJQ2
+
+ TOQ4
* 005
+ TDQ6
+
#
*
+ TQ09

. 9.9. ,


Access , , ,
.
, . <Shift>-KF9>.



Access ,
.
.
] (Tools Options) (Refresh Interval)
(Advanced) (. . 9.8).
, .
(Refresh Interval). ,
Access

9. ^

379

. 1
32 766 .
,
. , .
(Update Retry Interval).
, Access , . 0 1000 .
(Number of Update Retries).
,
. 0 10.




, ,
. , , ,
.
, , , ,
. , . .
, .
, .
,
, .

, , ,
.
, .
,
,
.
,
,
.

380

It.


, (Exclusive)
(Open).
,

, . Function sub, Visual Basic,
,
.
.
.



,
, , .

(mdb) , ,
(mdb), .
, , , , , ,
, ,
, .
.
.
, .
(Database Splitter) ]
(ToolsUtilities).
.

9. Access

381

1
" " Users , . Users
. Users. . . "
"
. , .
,
. , , .

1. ?
2.
, ?
3. Windows 98
Windows 2000/XP Professional,
?
4. ?
5. Windows XP
?
6. ?
7. , .
8. ?
9. Access?
10. Access ?
11. Access
?
12. Access ?

382

!!,

13. Access ?
14.
,
Access?
15. Access?
16.
?
17.
?
18.
?
19. ,
?
20. Access
?
21. ?
22. ?
23. ?

1. .
2. .

3. .
4. , .
5. .
6. .
7. NetWare Novell Windows NT/2000/XP/2003 Server.
8. .
9. ( )
( ).
10. ( ).
11. .
12. .

13. A d m i n
: Admins Users.

9. Access

383

14. Admin
.
15. |3[ Admin.
16. |3 ( .
17. {3|.
18. .
19. , .
20. ][ .
21. , , , .
22. , .
23. , , .

10

Access
SQL-
Access
. Access, Microsoft FoxPro, dBase, Paradox Microsoft
SQL Server, HTML ,
, , , Microsoft Excel, Microsoft Exchange.
, Microsoft SQL Server.

Microsoft SQL Server



Access 15
. ,
. ,
,
( ),
.
"-".
"-" : -. - -,
.
, . -

10. Access SQL-

385

. Access
SQL- . 10.1.


(Access)


(Access)


(Access)

. 10.1. SQL-


, , .
,
. -, , .
, "-",
Microsoft SQL Server, Oracle, Sybase SQL Server .
SQL- .
"-" .

. Access SQL-.
. ODBC OLE DB. Access

ODBC. 2000, Access Microsoft SQL Server, -

386

II.

, ,
OLE DB.
Microsoft SQL Server ,
, , .
.
SQL Server .
.
. , , . , ,
, , , . .
.
SQL Server , . , , .
, SQL Server,
. . SQL Server .
. SQL Server
, , ,
.
Microsoft SQL Server
. .
SQL Sewer ,
Microsoft.
SQL Server, Internet Information Server (IIS), . SQL Server
Windows NT 2000/2003 Server.
SQL Server Windows NT Workstation, Windows 95/9S Windows 2000/XP Professional.

Microsoft SQL Server 2000 Desktop Engine


Microsoft SQL Server 2000 Desktop Engine Access "-"

10. Access SQL-

357

,
SQL Server .
Access,
. ,
,

.
Desktop Engine Microsoft SQL
Server 2000. Microsoft SQL Server 2000 Desktop Engine , Microsoft SQL
Server 2000, , ,
"-",
Jet .
Microsoft SQL Server 2000 Desktop Engine
Microsoft Data Engine (MSDE).
Microsoft SQL Server 2000 Desktop Engine Microsoft
Office \MSDE2000 - (
MSDE2KS3.EXE). SQL- Windows 98.

Microsoft SQL Server 2000 Desktop Engine setup.exe . MS-DOS.


MS-DOS , CMD <Enter>.
;
CD \sqi2ksp3\msde
setup.exe SAPWD="AStrongSAPwd"
setup.exe
C:Vsql2ksp3\msde. setup exe
:
setup.exe /upgrades? setup\sqlrun01 .msi SAPWD="AStrongSAPwd"

Microsoft SQL Server 2000 Desktop Engine (2 ) ( 6),


, , , (
).

388

II.

Microsoft SQL Server 2000 Desktop Engine ,


Microsoft SQL
Server 2000 Personal Edition. MSDE , :
Microsoft Management Console (MMC), SQL Enterprise Manager , ;
' Microsoft
SQL Server Standard Edition.
Microsoft SQL Server 2000 Desktop Engine "". Windows NT
Windows 2000 SQL Server, . . Microsoft Office 2003, .

SQL
SQL- ,
Access, SQL
(Structured Query Language).
Access SQL .
, , , .
Access SQL.
, ,
SQL. SQL, , , , | SQL (View|SQL View). ,
, SQL
SQL. SQL.
SQL
"-". Access SQL Server '.
, SQL ,
' . ,
, , , SQL .
SQL
, SQL92 ANSI SQL,

10. Access SQL-

389


(ANSI American National Standards Institute) (ISO International Standards Organization) SQL86.
. , , , . ,
,
. SQL, ,
.
SQL - , ,
, , .
SQL-Server SQL,
Transact-SQL TSQL. Transact-SQL SQL.
, , , , , , .
Access 2002
ANSI SQL: ANSI-89, Jet SQL ANSI-92, ANSI-92 1; ANSI-92 Microsoft SQL Server.
Access ,
Microsoft SQL Server, , ANSI-89 SQL, ANSI-92 SQL.
, |.
ANSI SQL- ,
SQL,
.
.
(SQL Access Group)
, SQL.
Microsoft

390

II.

(Open Database Connectivity ODBC). Microsoft , SQL.


ODBC.
Access ODBC
, SQL Server.
SQL Server Access,
2000, , ODBC,
OLE DB, .
SQL Server OLE DB . OLE DB
OLE- ,
. OLE DB , .

Access SQL Server ODBC


Access Microsoft SQL Server, , ODBC, , .
1. SQL SQL Server.
SQL ,
, , .
.
. .
2. SQL Server.
Access
Access. , Access, Access.
3. SQL Server Access.
.
. Access
, , ,
Access.
Access
. ,
, Access, .
Access SQL- ODBC.

10, Access SQL-

391

ODBC
ODBC ,
, , . ODBC
. ODBC , , , , .
, SQL- , .
ODBC
DLL.
Access SQL,
, ODBC.
ODBC Access ( Microsoft SQL Server), Access.
ODBC, , . Microsoft Access
32- ODBC, ODBC
I.
Microsoft Access. Access
SQL . 10.2.

Access

ODBS
( Microsoft)

ODBC
( )
SQL
( )

. 10.2. Access

II.

392

Access SQL-, , . 10.3.


ODBC SQL Server

ODBC SQL Server

ODBC SQL Server

. 10.3. Access SQL-

, , (ODBC) (ODBC Data Sources


(32bit)) . Windows XP
(ODBC) ).

, Windows (Start) .

ODBC (ODBC Data


Source Administrator) (Drivers)

10. Access SQL-

393

ODBC-. , SQL Server.


ODBC .
.
ODBC , ODBC (ODBC
Databases), .
(Save as Type) (Import),
(Link).


SQL-,
. ODBC , .
, Access, .
.
ODBC. ODBC ,
ODBC .
DSN (User DSN).
,
,
DSN (System DSN)
.
DSN (File DSN)
, , . , , ,
. dsn.
,
.


DSN (User DSN). . ODBC (ODBC Data Source Administrator)
DSN (User DSN) (. 10.4). SQL Server.

II.

394

^ ODBC

DSN


DSN

DSN

Microsoft dBase Driver (".dbf)


Microsoft Excel Driver (* xls)
Excel Files
S Access D atabase
Microsoft Access Driver (*.mdb]
MS Access Microsoft Access Driver (".mdb]
dBASE
Microsoft dBase Driver (*.dbf)
Microsoft Excel Driver (' xls)
: 1

ODBC n are
.
.

. 10.4. ODBC


, .

Microsoft FoxPro VFP Driver ('.dbf]


Microsoft ODBC Oracle
Microsoft Paradox Driver (".db )
Microsoft Paradox-Treiber (*.db ]
Microsoft Tent Driver (".txt; * csv)
Microsoft Tent-Treiber i'.txt, ".csv]
Microsoft Visual FoxPro Oliver
Microsoft Visual FoxPro-Treiber
SQLServer

. 10.5. ,

10. Pa6ora_Access SQL-

395

(Add),
(Create New Data Source) (. 10.5)
SQL Server, .

. SQL- (Create a New Data Source to SQL Server) . 10.6.

Create a New Data Source to SQL Server


This wizard will help you create an ODBC data source that you can use to
connect to SQL Server.
What name do you want io use to refer to the data source?
Name: (
How do you want to describe the data source?
Description: [^
Which SQL Server do you want to connect to?
Server: jUBB-2tti:f

<^^.

_J

>

_,_^_J

^__^-_

,^

||

. 10.6. SQL-

:
Name (), ,
;
D Description (), , ,
;
Server (), SQL- , . SQL- , "local".
SQL- (. 10.7).

396

It.

SQL- , :
, , Windows NT/2000/XP
, .
.
With Windows NT authentication using the network login ID
( Windows NT).

;
SQL-
, .
With SQL Server authentication using a login ID and password
entered by the user ( ).
. , Windows, .

SQL- .
Create a New Data Source to SQL Server
How should SQL Server verify She authenticity of the login ID?
( Judith Windows N authentication using the network |ogin ID.i
{* With SJ]L Server authentication using a login ID and password
entered by the user:
To change the network libiary used io communicate with SQL Server,
click Client Configuration.
Client Configuration...
Connect to SQL Server to obtain default settings for the
additional configuration options.

<

>

. 10.7.

,
(. 10.8).

10. Access SQL-

397

Create a New Data Source to SQL Server

*"
V
,.j,fL "
^
1

~_

Attach database filename:

Use ANSI quoted identifiers.


UseANSI nulls, paddings and warnings

<

>

. 10.8. ,

ODBC Microsoft SQL Server Setup
A new ODBC data source will be created with the following
configuration:
Microsoft SQL Server ODBC Driver Version 03.81.9031
iData Source Name:
Data Source Description:
Server; UBB-2003
Database: SQL
anguage: Russian
Translate Character Data: Yes
Log Long Running Queries: No
Log Driver Statistics; No
Jse Integrated Security: Yes
Use Regional Settings: No
Prepared Statements Option; Drop temporary procedures on
disconnect
Jse Failover Server: No
Use ANSI Quoted Identifiers: Yes
Use ANSI Null, Paddings and Warnings: Yes
Data Encryption; No

Test DataSdurce.-.

. 10.9.

II,

398

ODBC Microsoft-SQL Server


Setup ( ODBC SQL- Microsoft)
(. 10,9).
Test Data Source ( ), .
(. 10.10).
SQL Server ODBC Data Source Test
Test Results
Microsoft SQL Server ODBC Driver Version 03.81.9031
Running connectivity tests...
Attempting connection
Connection established
Verifying option settings
Disconnecting from server
TESTS COMPLETED SUCCESSFULLY!

Dl

. 10.10.

ODBC (ODBC Data


Source Administrator), DSN (User DSN) (. 10.11).
. ,
, SQL-
. SQL-
Access .
(User Data
Sources) (. 10.11) (Configure).

10. Access SQL-

399

, (. 10610.10).
^' ODBC
1 J
DSN


DSN

DSN

_
dBASE Files
Excel Files
MS Access Database
MS Access

dBASE

Microsoft dBase Driver [*.dbf]


Miciosoft Excel Driver (*.nls|
Microsoft Access Driver (".rndbj
Microsoft Access Driver (".rndbj
SQL Server
Microsoft dBase Driver f.dbl)
Microsoft Excel Driver (".xls)

ODBC
,
.

. 10.11. ""
SQL Server

(User Data Sources) (Remove).


ODBC ,
, .

SQL
SQL-
Microsoft SQL
Server SQL. SQL-
SQL .
, . Access,
, . .
. SQL-

400

II.

( Microsoft SQL Server-- Transact SQL), . ODBC, .

SQL
SQL Access
(Queries), (New) (New Query)
(Design View).
(Show Table) , .
(Query) SQL (SQL
Specific) (Pass Through).
SQL. , SQL, .
.

SQL , QBE SQL (. 4). , (View), SQL.

SQL
SQL
(Run). ODBC
(Select Data Source) (. 10.12).
, , . ,
. , .
,

ODBC (ODBCConnectStr). ,
(Properties). ODBC (ODBCConnectStr) ; ,
"",
, ;05=; .


ODBC.

10. Access SQL-

401

ODBC (Select Data Source)


{. . 10.12). , (. 10.13).


dBASE Files
! Files
MS Access Database
MS Access

dBASE
Excel

1
i! m
;: m
' mi
.
.

Honi
.

..


'. .
.
: - .

. 10.12. SQL

?

. 10.13. ODBC

, (Machine
Data Source)
:
ODBC;DSN=rioCTaBKa;Description=Pa6oTa /UID^NVP;
DATABASE- SQL;IJ^GUAGE=pyccKMH;Network=DBMSSOCN;
Trusted Connection-Yes

//.

402

ODBC (ODBCConnectStr)
, ,
SQL- (. 10.14).
SQL Server Login
Server

fllBB-2G03

~
__^j

" Use Trusted Connection


Login ID:

JNVP

PasswQid:

OK
Cancel
Help

^d

. 10.14.



ODBC
(ODBCConnectStr) ODBC.
.
, Access ODBC.

(Select Data Source)
ODBC (. . 10.12), . .
ODBC (ODBCConnectStr).
.
ODBC (ODBCConnectStr) .
SQL
ODBC.
(Machine Data Source) . , ,
, . .
(File Data
Source), .

SQL
SQL.
, SQL- " ". -

^. Access^ HaSQL -

403

, ,
, , .
SELECT . *, . _, . __
FROM INNER JOIN ON
(._=._) AND
(._= -_)
WHERE _>='01.06.2004|;

.
_*' 1
" ".
UPDATE

SET _=' '


WHERE _='';

.
__='001', _='01' _ = ' 0 0 5 ' __0'.:

500.
UPDATE

SET _ =500
WHERE _='001 AND _='01' AND _='005';

.
, .
INSERT INTO

(_08,HAMMJTOB,,,_]

VALUES
('017','',200,'',0.1);

2 , Name_Pl Name_P2.
CREATE TABLE 2 ( [Name_Pl]

[char]

(3) ,

[Name_?2] [char] (2) ) ;

, , (Returns Records) . (. 10.15).


(Returns
Records) (Run) .
, , (View).
14 835

II.

404

Microsoft Office Access


\
I.

, ' ' (ReturnsRecords) '',


.

. 10.15.

SQL-
Access SQL-
. ,
, Access.
Access , ,
Access. , .



| | (File|Get External DatajLink Tables).
(Link) (. 10.16),

ODBC (ODBC Databases).
(. . 10.12) ODBC,
.
, (. . 10.14), .
(. 10.17) ,
.
,
. 10.18.
,
(. 10.19).
.
,
.

, , ,

10. Access SQL-

405

)Adobe PDF .
U-
|^)
:
QMoa

,y|jdbl.mdb

Microsoft Office Access (*,mdb;*.mdaj*.mde)


HTML (*.html;*.htm)
OuttaokO
Paradox (*.db)
(*.txt;*.csv;*,tab;*.asc)
Windows SharePoint Services 0
ODBC Q

. 10.16.

.
dbo,
^dbo.
Idbo,
dbo.
dbo.
dbo.
dbo,
dbo.nOCTABKAJiriAH'
dbo.
dbo.Table2
i dbo.

f~

. 10.17.

406

II.

.,.

OK

'(_

Ctrl-Break.

. 10.18.



HGM
KOjfCK

01


, ,
.
.
. 10.19.

Access
(. 10.20). , ,
gJlPi. ,
, SQL-.
, , . .
, ,
.
.

10. Access SQL-

407

^^^ | : ( Access 2002 - 2003) flTjf ]( X"


.^ ^ ^ | X ! ^ IV [] !"!


j ^

^3

Jip

,13]

[ !_

+ dbo_nOKynATEnb

t3j
\* dbo_HAK

* (__
!*^ !_

^ dbo_TOBAP

1
~"
i jjjjl

"1

*tl !
"3
S3
3

31

!3
3

<

>

. 10.20. ,


, (. 10.21).

/:

'|

-;: :-^'.,

XKUhOt ftit

5 " sag L -- ---.'-'.


:

--

. 10.21.

408

,
,
.
,
,
| (EditjDelete) . . . 10.22.
Microsoft Office Access
1

, 'dbo_ .
, 'Microsoft Office Access'
, .

. 10.22.


. .
. , , .
. . ,
dbo. :
ODBC;DSN=nocTaBKa;Description=Pa6oTa TOBapOB;APP=Microsoft
Office 2003;WSID=UBB-2003;DATABASE=nocTaBKa SQL;LANGUAGE=
;Network=DBMSSOCH;Trusted_Connection=Yes;TABLE=dbo.


(Linked Tables Manager), , (Database Utilites) (Tools).
,
.
. 10.23 ,
.
SQL-
ODBC.
, 1, Excel, .

10. Access SQL-

409

,
.
, .
,
.
1

fit"
:
(5=;= SQL,)
(=;5=951;)
(=;5= SQL;)
1_ (02=;5= SQL;)
(__ (1;5=501-;)
_ (=;5=|_;)
(05=; DAT ABASE= SQL;)
1 (E:^ocumentsardS8ttingsWVPVulciM\_.1\11)

;;

" [

. 10.23.


.
, SQL-.
. 10.24, 10.25 , , 1_7 !_, , Access
,

G
SQL-. ,

. SQL-
, .

. Access (. . 10.20),
, _ dbo_o<r.

410

II.

SQL- . ,
,
.
(Append Query) (. 10.26).
(. 10.27) , . ,
!_.
.

* : ,. ,

RH^^Bi
U'MlMMinMiim

|,_
IHH
_
|_ '

(V jjujfxj

[
V }_
*-* 1_

| _

<

|_

|_
1
^~_
/

: _
.
: dbo_nOKynATEnb
db .
:
:
0
0
: [ ]

^
dbo ^.

<;

. 10.24.

:
_
| J30r
111
222
222
J_ 777
1:

_
01.01.2004
4 6 " 2,00.
29.12.2004
17 1 8,QOp. j
29.12.2004
19 41 .. ;
14. 10.2004

4 _] | ' -| 4

. 10.25.
" "

10. Access SQL-

411

^ :.

_
_

: ,*
:
:
; dbo_HAK .
:

, 10.26.

,,.-

; ^_
"'

?" :

. 10.27. ,
dbo_OTrPy3KA .


SQL- Access
SQL
. Access . -

412

. .

( | (File Get External Datajlmpon).
(Import) (Files of type)
ODBC (ODBC Databases). , , ,
(Import Objects) .
Access.

Access
SQL-
SQL-
Access.
Access ODBC
| (FilejExport). , . (Export) (File name) . ODBC (Save as type)
ODBC (ODBC Databases).
,
(Save), , . 10.28.

:
|

'!

ODBC

. 10.28.

ODBC, , . , ,
.
, .
.

10. Access SQL-

413

, - . , .


1. Microsoft SQL Server?
2. Microsoft
SQL Server?
3. Access "-"?
4. "-" ,
Microsoft SQL Server?
5. "-"?
6. Microsoft SQL Server ?
7.
"-"?
8. ?
9. , Microsoft SQL Server
?
10.
Access?
11. ,
Access Microsoft SQL Server?
12. , ODBC?
13. ODBC?
14. ODBC Microsoft SQL Server?
15. ODBC?
16. ODBC.
17. 0
18. ?
19. ?
20. ?

414

II.

21. ,
?
22. ?
23. ?
24. ?
25. ?
26.
?
27. ?

1. "-".
2. Windows NT/2000/XP Server, NT Workstation, 2000/XP Professional
Windows 98.
3. .
4. .
5. .

6. .
7. .
8.

SQL.

9. Transact-SQL.
10. ODBC.
. ODBC.
12. ODBC.
13. .
14. SQLServer.
15. , , .
16. .
17. .
18. |3 SQL|K (QueryjSQL Specific|Pass Through).
19. ODBC (ODBCConnectStr).

10. Access ^ SQL-

415

20. ;=;

21. ODBC (ODBCConnectStr).


22. .
23. | | (FiIe|Get External DatajLink Tables).

24. .
25. .
26. ) [ (Tools|Database
Utilites|Linked Tables Manager).

27. .

11

Access
Microsoft SQL Server
Access 2000 ( adp Access Data Project
) ,
Microsoft SQL-, , Jet.
SQL Server
OLE DB.

Access 2000
Access "-",
Access
SQL-.
, . Access
, , .
Access Access (adp).
, : , ,
HTML- , .
, Microsoft Access
. , , ,
SQL- Access.
SQL-, Access,
,
Access .
Access , Access. Access , Access, : , ,
. .

?J. Access Microsoft SQL Server

417

SQL Server, , , SQL-


, , , SQL. , , Access,
.

OLE DB
OLE DB ,
, ,
, .
OLE-,
. OLE DB , , , : Access, Visual
Basic. , ,
, : Microsoft OLE DB Provider for
Microsoft SQL Server (. 11.1) Microsoft Jet 4.0 OLE DB Provider
Microsoft Access .

/

j
: Access

.1

j ' '
1 Access
|
'1

h-r

fJ

<->Lt ^roviaer

OLE DB Provider
for SOI Rprver

for SQL Server

SQL-

/
rnorr
! SQL-c 1
"
~"1

11

crt

7>,
\ j
L
J

OLE DB Provider
for SQL Server

Access

. 11.1. Access SQL-

418

II.

Microsoft Office Microsoft Access OLE DB-:


OLE DB Provider for SQL Server;
OLE DB Provider for Microsoft Jet 4.0;
OLE DB Provider for Oracle;
OLE DB Provider for ODBC Drivers.
Visual Basic for Application OLE DB ActiveX ( ado).
, OLE DB , (Data Link),
:
1. Windows.
2. .
.
3. , DDL- (Universal Data Link).
, ,
.
4. udl, <Enter>.
5. ,
. udl
. .
6. UDL-,
. (Data Link Properties).,
(Provider)
OLE -(. 11.2).
7.
(Connection). UDL-.

. Access Microsoft SQL Server, ,
, , .
Microsoft OLE DB Provider SQL- . Access. , udl.
Access , -

11. Access Microsoft SQL Server

419

, OLE DB.
Access, SQL-, UDL-.
(Data Link
Properties), Microsoft OLE DB Provider
SQL- .

(Data Link Properties).
Access udl.
.
j ] :
:
OLE DB
MediaCatalogDB OLE DB Provider
MediaCatalogMergedDB OLE DB Providei
MediaCatalogWebDB OLE DB Provider
Microsoft ISAM 1.1 OLE DB Provider
Microsoft Jet 4.0 OLE DB Providei
Microsoft OLE DB Provider Foi Data Mining Services
Microsoft OLE 08 Rovider for DTS Packages
Microsoft OLE DB Provider for Indexing Service
Microsoft OLE D Pr vider f or I nternet_Pu blis hin g
Microsoft OLE DB Provider for OLAP Services 8.0
Microsoft OLE DB Piovider for Oracle
Microsoft OLE De Piovider for SQL Server
Microsoft OLE DB Simple Provider
MSDataShape
SQL Server Replication OLE DB Pfovider foi DTS
OLE DB

01

. 11.2. OLE DB-,

Access
Access
, Access.

II.

420

, , SQL ,
, .

, Enterprise Manager.
. , ,
SQL Servers Databases.
Logins , . Action|New login. Properties.

Microsoft SQL Server 2000 Desktop Engine MSDE,


Access .
Microsoft SQL Server Service Manager. , Start/Continue (. 11.3).

SQL Server Service Manager


Server:
Services:

II I

* J

Pause
stsp

Auio-stail service when 05 starts


Running-\VUBB-2003-MSSQLServer

. 11.3. Microsoft SQL Server Service Manager

Access, ,
Microsoft SQL Server, (New) :
(Project Existing Data),
;
(Project New Data), .

11. Access Microsoft SQL Server

421

(New)
| (File(New).
(File New
Database) (. 11.4), . Microsoft Access (Microsoft Access Project) ( adp).

"3

',

jadpl.edp

[ Microsoft Office Access (*.adp)

. 11.4.
Access

(New),



Access
(Data Link Properties) (. 11.5), , , .

II.

422

32 IP- , SQL Server. : 10.135.200.15.

SQL-, (. . 11.5).
. (Select
the database on the server), .
.
j |

SQL Seiver :
1. :
[^

'""Vj

2. :
*~~ Windows NT
** :
: IN V
:
" *
:
[

jr]

. 1

. 11.5.

,
(Test Connection). , ,
Access (. 11.6).
, , -

11. Access Microsoft SQL Server

423

(Microsoft Access 2002 2003). Access : , , . .


H adpl ; - ( Access 2002 - 2003)

(5~HS

l.jjOTjcpbiTb *^ _] | > -* "||


l-^'
J
^
J'j

: "J

J3

i$

**j|
J:'

. ^

L^J

. 11.6. Access

(File)
(Connection), (Data Link Properties) (. . .2).
:
, Access
.
, . . .



Access
, .
Access

424

II.

. adp,
mdf Idf.
(. . 11.5)
SQL- (Microsoft SQL
Server Database Wizard). (. 11.7) ,
, . , ,
, . Windows.
.
, .

Microsoft SQL Server


5QL Server .
[UBB-Z003
,
CREATE DATABASE .
[7

SQL Server.
[

>

. 11.7.
SQL- Access

. ,
. 11.8.

Database . -

11. Access Microsoft SQL Server

425

, , Access, SQL.
Microsoft SQL Server
''...

.

. 11.8.


,
.

Access
Microsoft SQL Server 2000 Desktop Engine
Microsoft SQL Server 2000 Desktop Engine,
Microsoft SQL Server 2000,
,
. .

SQL Server, SQL Transact-SQL.
,
.
MSDE , SQL-,
SQL-:
SQL-;
Windows. Windows ,
SQL Server ,
, , .

II.

426

Access Microsoft SQL Server 2000


Desktop Engine
,
Windows.
Access Microsoft SQL Server 2000 Desktop
Engine
(SA) ,
. SA SA .

MSDE
.

SQL Server (SA) ,



SA .
SQL Server (SA) Access
| .

(SA) (. 11.9). Microsoft SQL Server 2000 Desktop
Engine Access
Windows NT/2000/XP,
.
(SA)
Access .
SA .

.adpl
:

Microsoft SQL Server

OS. 00.0194

UBB-2003

: :
'^?1?. ?.?!?! (SAJj

. 11.9.

1 ^. Access Microsoft SQL Server

427

, Access,
( 08 Microsoft SQL Server 2000),
, .

|3] .
. ,
(. 11.10). .

. 11.10.

, ,
, .
Access Microsoft SQL Server.
] (. 11.1),
Microsoft SQL Server 2000 Desktop Engine .
11.1. !


SQL-

(dat)
SQL Server

SQL-

SQL Server
(dat)

SQL

SQL Sewer

SQL Server
SQL Server

SQL Server (mdf I

428

II.



Access "",
.
Access ( mdb) "".
, Microsoft SQL
Server, Access ( adp). ,
Access , ,
.
Access,
.
Access ( mdb)
) | SQL Server (Tools|Database Utilities|Uprising Wizard). (. 11.11),
SQL- .
SQL Server.
(. 11.12) SQL-
. : , , Windows NT/
2000/, , SQL Server. SQL Server.

Access SQL Server (. 11.13).
(. 11.14) Jet, SQL Server. (Use triggers),

, Access,
.
, Access (
mdb), Access "-"
(Create a new Access client/server application) (. 11.15). ( adp) ,
Access, 5^. Access
Access Access.

11. Access Microsoft SQL Server


SQL Server

Microsoft Access Microsoft SQL Server.
SQL Server
.
.
'

(* |
""
.

>

. 11.11.

SQL Server
SQL Server ,
iu88-2003
,
CREATE DATABASE .
?

SQL Server,
[ TosapoBSQL

4.

>

. 11.12. ,

429

430

II.
SQL Server
/ SQL Server.

SQL Server:

j:

hf
" -

>
^^~

^_
<

~!

<

>

. .

. 11.13. Access
SQL Server

SQL Server
5QL Server ^
,

?
_
_.

I?
F/

F/
DRI

(? [

?
?

[,

| *

<

>

. 11.14. ,
SQL Server

-J

11. Access Microsoft SQL Server

431

Access . SQL Server, SQL Server.


,
Access ,
SQL-.
SQL Server

SQL Server,

?
**

Access "-"
1

ADP: ;\;_5.1

' :1

I SQL Server

" |

<

] >

. 11.15. ,
Access

, (No 'application changes).


SQL Server (Link SQL Server tables
existing application) ,
"". , Access , .
(. .16) (Finish).
, , SQL Server,

II.

432

, , Access.
(. 11.17).
SQL Server
5QL Server

.

ADP ?
(*

[ ADP

MD6

<

. 11.16.
SQL Server

'1,..
.

: 4/5

. 11.17.

Access Microsoft SQL Server.


Access,
Access SQL Server 2000 :
, ORDER BY
, ;

11. Access Microsoft SQL Server

433

. ^
NOCOUN? , ;
, ORDER BY,
. ,
ORDER BY, PERCENT;
, , , Access,
.

, , .
.

Access SQL-
Access Access .
. |
] (File|Get External Data|Import). Access. . , , ,
, Access.
, . , .
, Access, .
, .
, SQL Server,
SQL, Access
OLE DB ODBC.
, [ ! (File|Get External Data| Link Tables). , .
, Access , ,
, OLE DB,

434

II.

Microsoft SQL Server. SQL Server, , SQL-.



( ode) , , . . , .
,
.

SQL-
Access (adp),
Access (mdb), (Database Diagrams).
: , , . .
Access, .
: , , , , -- Access Access.
Access.

. .
(. . 11.6) .
, , , Access
Access. ,
, , . ,
Access, .
SQL Server.
Access
.
SQL-. . 11.18
SQL-.
, , -

11. Access Microsoft SQL Server

435

(General) (Lookup) (Columns)


(Lookup).

[ ^ _


char

] Null |
5

nvarchar

25

money

nvarchar
image

bit

'

f 8_

V-

16
1

^
V

L Y ; - . - - >, : -

'

) 2

>

. 11.18. SQL-

, Access, , . , Access,
.
,
(Properties). . . 11.19
(Relationships).
, ,
, ,
.
(Selected relationships).
(Properties) (. 11,20)
. (New).
15

835

II.

436

(Constraint expression) ,
, , : [_]<40.
(Constraint name)
_, , _,
.
: []>
1 []<=2000 2.

| |
;
:

;
[J? ___

. JFK

_]_

[ !

INSERT UPDATE
1

. 11.19.
, ,
, , (Selected
constraint).
,
Access, .
(Primary Key),

11. Access Microsoft SQL Server

437

.
(Indexes/Keys) .
, . . . 11.21
(Indexes/Keys). ,
_ - .
(Selected index), , ,
.

[]
j

i '| 1.-.

] 1, 1

ICK
i ~"

- v j1

: [___
:
[ _<40

1
1?
1
INSERT UPDATE

. 11.20.

/, ,
(View).

II.

438

| j ] IJJJ.
:

1__

IX
(
' j !

/V

V.

lpR1HARY

__.

;.:

. ;

" UNIQUE
|f"

] %

! (* " ;
CLUSTERED
~
;

. 11.21.

(. .22).

+ 01

* TQ02
*

*
* 005
;

17LG
587,00
FDD 3,5
363,00.
.HDD Maxtor 20
1 280,00.
MiniTov
16,00
CD-ROM Panat
1 153,00
|_]

EJE

li

5,00%
6.00%
16,00%
6,00%'
30,00%

. 1 1 .22. Access

11. Access Microsoft SQL Server

439

, (. 11.23).

.
, , . :
.
.

.
, 0.
:

10000

. 11.23.


, .
,
, , , , .

,
. , ,
. .
.
Access (New),
(Database Diagrams).
, Access,
(Add Table) , , .


. (Create Relationship)
(. 11.24) .

440

It.

, .

!X '

:
__

_!JHOMJCr

v
15*

INSERT UPDATE
"
^ !

. 11.24.

, , . 11.25.
.
, ,
. .
.
. (. . 11.25)
(Column Properties).
(Properties).
(Relationships) .

, -

11 Access Microsoft SQL Server

441

.
.
:

,,-,


_
_

_
_


char
char
date time
char
money


-)

. 11.25. SQL-, Access

,
, .
, (Add Related Tables), .
(View) ,
.

.

442_

II.

, :
,
SQL SELECT, ;
, , SQL INSERT, UPDATE DELETE, ;
,

.

. , . ,
.
. .
(View) (. . 11.27),
, Access,
: , ( ) SQL. , ,
, .
, ,
.
.
SQL SQL, ,
Access, .
SQL
. SQL,
. ,
. , SQL ,
, .
(

Microsoft SQL Server 2000,


.

11. Access Microsoft SQL Server

443

:
G (Diagram) . (. . 11.28)
;
(Grid)
. .
, , , ;
SQL (SQL)
Transact-SQL;
SQL (Verify SQL Syntax) SQL ,
.
(View) Access, SQL- Enterprise Manager, .
, Access
, .
,
, "
" 2004 .
1. SQL-
(New) (Queries) Access. (New Query)
(Design View).
2. (Add Table)
.
3. ,
,
, .
, _, ,
.

, , . . .

II.

444

INNER JOIN, <.


,
(. 11.26). ,
, . .
, (=),
,



: [

: dbo.._

[*f ,


/X

" .

. 11.26.

(All rows from ), LEFT OUTER JOIN, ,


, , , .
( rows from )
RIGHT OUTER JOIN,
, , .
FULL
OUTER JOIN, [g | , ,
.

11. Access Microsoft SQL Server

445


.
1. , ,
.
2. (_) (Criteria) =' 1 , (_) >=01. 01.2004. .
3. (Alias) .
. ,
, , , , . .
4. SQL
SQL.
. 11.27.

SQL (,
) ,
. , (
) ( ): ,
5_.. _...
. , Microsoft
SQL Server 7.0
, .
SA dbo.

5.
(Run)
(Datasheet View), (View).
(Open).
,
., , .
, . ,
.
. 11.28 , , : _, _,
_ _.

II.

446

! ;
'
( )
;

V
_

HAMMJ10K
_

HOMJOr
^
_

V
V
V"
s/
\/
\/

,..

= N' '

>= '01. 01. 2004'

<
SELECT
FROM
WHERE

>

dbo. , , dbo. . , dbo. . ,


dbo. . _, dbo. . AT _, dbo, .
dbo, INNER JOIN
dbo. ON dbo, . = dbo. ,
(.. = ' ') AND
(dbo. . _ >= CONVERT(DATETIME, '2004-01-01 00:00:00', 102))

. 11.27.


, _ _,
. (Group By)
_ Count, ^ sum.
,
, ,
.

"Exprl" "2" ( (Alias)). " " " ".
,
.
, , (All rows from
).

11. Access Microsoft SQL Server

447


SQL.

SQL .
:
SELECT
FROM
dbc. RIGHT OUTER JOIN dbo. ON
dbo.._=.._

. 11.28.

1 2 ;

:
;

'

...* ( !

'

'_
1 "

>

1 ""'

JJJTJ

.,* ( )
^_
1-

,;_
' jor l\

>

_
_
_
_

[
.
.
[ ]

[ ]

1
S/

5um
Count

<

v
>

5EL

100 PERCENT dbd. . HAHMJIOK., dbo, , ,


SUM(dbo. ,_) 5 [ ],
COUNT(dbo. . _) AS [ ]
dbo, RIGHT OUTER JOIN
>RC )
dbo. ON dbo. . _ = dbo. . _
GR( XJP BY dbo. . , d . . _
OR DER BY SUM(dbo. , ) DESC

. 11.28.

, (Run).

.

448

II.

.
INNER JOIN, ,
.


.
, SQL UPDATE, INSERT DELETE.
Transact-SQL, SQL Server .

. ,
. ,
, .
.
, , ,
. , .
Access
(Open) .
, .
, SQL SELECT,
. , SQL, SQL, SQL SELECT
. Access
(Queries) (New).
(New Query)
(Design Stored
Procedure) ,
(Create Text Stored Procedure).

(Query Type).
(. 11.29),

11. Access Microsoft SQL Server

449

.
(Query)
.

..,

.,,

. 11.29. ,

(Make-Table Query)
, .
SQL SELECT. . .INTO.
(Update Query)
.
SQL UPDATE.
(Append Query) ,
.
SQL INSERT. . .SELECT.
(Append Values Query)
.
SQL INSERT INTO. . .VALU:-:S.
(Delete Query)
. SQL
DELETE.

SQL Server . , . . , FROM,


SELECT. SQL Server
, .

II.

450

.
, SQL. , , ,
Microsoft Access.

(New Query) Microsoft SQL: .


, .
(Criteria) .

* ( )
JKOAJ10K

* ( CTuitiLibij

0_
IV

<

_
J1OK

_
^
_

SELECT
FROM
WHERE

'

|
=
V/

dbo,.HAMMJlOKj dbo., , dbo,.,


dbo.,_, . . AT ^, dbo*. . _
dbo. INNER JOIN
dbo. ON dtro.,_ = dbo,,_
.,_ = ) AND
(,._ BETWEEN @ AND @)

. 12.30.

451

11. Access Microspft SQL Server

"@".
"@" ,
(Enter Parameter Value), .
WHERE.
,
, . .
(Criteria) _ =@ {. 11.30). . : BETWEEN @ AND @.
,
. 11.31.

|1|]

<]

-Vj
"'

[?

. 11.31.

, SQL SELECT.


SQL
(Create Text Stored Procedure) (New Query), (New).

(. .32).
CREATE PROCEDURE . , , , . "@". ,

II.

452

. , .
.
,
, OUTPUT.

.
EXECUTE.
,
, ,
.
/ * . . . * / .
SET
NOCOUNT ON */. AS
SQL. RETURN . CREATE
ALTER.

, ,
CREATE PROCEDURE
SELECT. SET NOCOUNT
.
SELECT, .

? : L, }|
CREATE PROCEDURE "?"

^parameter! datatype = default value,


(SparameterZ datatype OUTPUT

/* 5ET NOCOUNT ON *j
RETURN

. 11.32. SQL

SQL
SQL (Insert SQL) ,
. -

11. Access Microsoft SQL Server

453

, .
SQL Server ,
, , , .
. 11.33 ,

@! set.
@.

SELECT, , .
. , ,
. ,.
:
ALTER PROCEDURE -1
@ nvarchar (20),
@1 decimal OUTPUT
AS Set @1=(51. 5(, )
FROM INNER JOIN ON
, _ = ._
GROUP BY , HAMMJIOK
HAVING (,HAHMJIOK = ))

. 11.33.

. .34 , EXECUTE
4.
(, ' 1 ,

,
.
:
ALTER PROCEDURE
@ money =0
AS EXECUTE 4 ' ', OUTPUT
UPDATE
SET _ = @
WHERE _= ' '

. 11.34.

454

II.

UPDATE _
.
. 11.34 ,
. .
SQL. .

1. Access?
2. Access?
3. ?
4. , ?
5. , .
6. ?
7. Access
Microsoft SQL Server?
8. , OLE DB SQL Server ?
9. Access
?

- UDL-

10. , ?
11.
?
12. ?
13.
Access?
14. | | (File|Get External Data|Import)?
15.
Access Microsoft SQL Server?
16. ?
17. ?
18. Microsoft SQL Server
?
19. Microsoft SQL
Server?

11. Access Microsoft SQL Server

455

20. ,
?
21.
?
22. , ,
, ?
23. Access Microsoft SQL
Server?
24.
?
25. ,
Alias ?
26. SQL?

1. Microsoft SQL Server.


2. , , HTML-, .

3. .
4. SQL Server.
5. , , , .
6. .

7. OLE DB.
8. Data Links.

9. .

10. adp.
11. IP-, , , (
Windows), .
12. | (File|Connection).
13. .
14. , .

15. .
16. .

456

II.

17. .

18. .
19. .

20. .
21. .
22. .

23. .

24. INNER JOIN, LEFT OUTER JOIN, RIGHT OUTER


JOIN, FULL OUTER JOIN.

25. .
26. .

12




, . Microsoft Office 2003
, , , , Web-
, ,
, , , Internet Explorer, , .
.

. Access
, ,
Access , .
Web- HTML (Hypertext Markup Language).
Web-. HTML ,
Web- , , .
HTML HTML (DHTML)
, Web- , .
HTML, Web Web-, .
,
.

458

It.


XML (Extensible Markup Language ).
XML . .
XML Web, , HTML. .
XML , .
XML Access. Access
Jet SQL Server XML
, , XML. XSL, , .

. , , Access, , .
XML .

Web-,
Access
Microsoft Access Web- .
HTML, HTML- , , . ,
Web- . . Web- .
,
.
, , IDC/HTX
ASP. , .
Web- , .
Web- Microsoft Internet Information Server (IIS),
ODBC. , HTML -

^^^

459,

Web- . HTML .
HTML- Web, HTML 3.2 ,
.
Web-,
HTML.
, , , , ,
, Access SQL Server, , Access 2000. Access,
, . . ,
Microsoft Excel. HTML, Access. , , .
,

Web- --
.
Web- DHTML 4.0 . ,
DHTML, Microsoft Internet Explorer
5.0 .

Web-

Access Web-
. , ,
.
HTML-. , , , ODBC.
, . Web . HTML ,
,

II.

460

. ,
.

Web-
Web-

Web- .
1. , ,
| (File|Export).
(Export) .
2. : ' 1 (Export Table <
> ) (Save as type)
HTML (*.html;*.htm) (HTML Documents (*.html;*.htm))
(. 12.1).
: '*
:

a* -

jj Test
ATEflb.html

I
[ HTML (*. html;*, htm)

"71 * JCogpaHWTb !
"" '

. 12.1.

3. , .
4. (File Name) . .

12.

481

5. (Save formatted) , .
, .

, HTML,
, .

(Save formatted)
(Autostart).
Internet Explorer , , .
6. ,
(Export).
7.

(. 12.2).

.

(Save formatted), HTML (HTML Output Options)


, HTML -

HTML

" HTML:;
[

,..

:
f*
*""
(UTF-8)

. 12.2.

. 12.3 12.4 Internet Explorer HTML, .


HTML
.
,
HTML. , ,
. , -

II.

462

. , HTML- , , ,
. ,
HTML . HTML , Internet Explorer | HTML-
(View|Source).
'3 - Microsoft Internet Explorer -[ ]

** ! '.

'

: %

:\Test\TQBAP, html

";

17LG
FDD3.5
HDD Maxtor'20GB
MiniTower

001
002

TD04

587,00.
.
1 280,00.
j 916.00

6%

16%
8%

POTOBQ


. 12.3. HTML-,

-3 - Microsoft Internet Explorer - [ ]

-^j -'*;. ...

>w

*] j] !-'';

.)

-! i$

\; j^] O:\Test\TOBAP.html

T001 17LG

6587,00.

,0,05

363,00. 0,06
HDD Maxtor 20GB

1280,00.

:Q,16

!004 ; MmiTower

916,00.

0,08

-J/

. 12.4. HTML-,

12.

463


< ="">. . , : < HREF=". ./ .">, : < HREF="E:/_2004/Test/ .(3">.
Web- .
Web-, ,
.
.
HTML. , . , , . <BODY><!-ACCESSTEMPLATE_BODY--X/BODY> , ,
.
<TITLE><!ACCESSTEMPLATEJTITLE></TITLE>
.
, : , , .
:
<IMG SRC= ". gif"XHRXBR>
<FONT SIZE-4 FACE="Arial" COLOR=#FFOOOO>3flECb
</FONT> <HR><BR>

<HR> .
, ,
, , HTML-.
HTML- ,
.
Web-
. ,
, , .
HTML- , . :
<IMG SRC="/. gif"><HR><BR>

, HTML (HTML Output Options)


HTML (HTML Template) (. 12.5).

II.

464

(Browse)
. .

HTML
fv* ||6 61:|
[D! \TEST\PROBA. HTM

,..

:
.....

. 12.5.

' - Microsoft Internet Explorer

iyj -"AMI,

'

0- [ ,2]

>'i

/-'

"- ^J1
V,!

D:\TE5T\TOBAP, html

6587,00.
. ;

HDD^Maxip2EGI3

1 280,00.

' MiniTower

916.00.

. 12.6. Web- ,

12. -

465

, 12.6 Web-,
:
<HTML>
<HEAD>
<TITLE><!--ACCESSTEMPLATEJTITLE></TITLE>
<IMG =" . gif "><HRXBR>
<FONT
SIZE=4
FACE="ARIAL"
</(><><>

COLOR=#FFGOOO>PEKBH3MTb!

</HEAD>
<BODY>
< ! ACCESSTEMPLATE_BODY>
</BODY>
</HTML>

Web-
Web-, ,
. ,
, .

. Web- . ,
\ .
Web- (. 12.7)
, , . ,
.
Access Web-
,
. Web-,
. , ,
Web-, , . 12.8.
.

II.

466

& :
*

^^^jb

|_
|

- _

L, ^
= _

|_

_
CPOKJIOCT

_
;_

:<' -

00

_
_

'
:
:
:
:
0
: [ ]

VI

>

. 12.7.

- Microsoft Internet Explorer


:

U,*

'

""

L_J

.*!J

"- * f i

i*

UUCP.

: ;. ]0] D:\Vest\3aKa3aHo.html

Q(6j[X j

X . &3

. .\^..-,
: ^

| ^ |_|
FDD3.5
1 11
501
FDD 3,5
|1 11
10
FDD 3,5

!
80
V

S^3

. 12.8. Web-,

Web-
Web-
, .
Web- ,
.
, . , -

12.

467

SQL, ,
. (. . I2.1) , . .

Web-
Web-.
HTML-,
,
Web-.
, : . html 2.11 . .
HTML, ,
: ,
, .
, , Access :
< HREF="<! ACCESSTEMPLATE_FIRSTPAGE-->''>FIRSTPAGE</A> -

;
<

HREF^"<! ACCESSTEMPLATE_NEXTPAGE-->">NEXTPAGE</A> -

6 -

;
< HREF="<! ACCESSTEMPLATE_PREVIOUSPAGE-->">PREVIOUSPAGE</A> --

;
G <A

HREF="<! ACCESSTEMPLATE_LASTPAGE-->">LASTPAGE</A> -- 6 -

.

Access :
< ! ACCESSTEMPLATE_PAGENUMBER >


.
<HTML>
<TITLE>< ! ACCESSTEMP1ATE_TITLE~>< /TITLE >
<IMG 5.=".1'>
<FONT SIZE-4 FACE="ARIAL" COLOR=#FFOOOO>
</FCNT><HR><BR>
</HEAD>
<BODY>
< ! -ACCESSTEMPLATE_BODY >
16 . 835

468

II.

</BODY>
<HRXBR><FONT SIZ,E="4" FACE="ARIAL" COLOR="#FFOOOO">CTpaHHua</FONT>
<! --ACCESSTEMPLATE_PAGENUMBER><KRXBR>
<A HREF-"<!--1_~->"></>
<A HREF="<!ACCESSTEMPLATE_PREVIOUSPAGE~>"> </>
</HTML>

001
17LG

6 557, 00.

5%

2004

001

: 1
2004

001
001
001
001
:
01
01
001

: 4
2004

TG01

: 1

15 2004.

-'
2

20.01.2004

10.032004
11.032004
25.03 2004
24.03 2004

19
/
2
Z3

27.04.2004

1 10

1)

. 12.9, Web-

(. 8) HTML- .
I.
[.

12.

469

2. HTML
3. , .
4. .
5. ,
.
6. HTML HTML .
, , Access .
Web- 1, , . 12.9.
Web-
, .

, ;
, .
.

Web-
HTML-, Web-
. Access
, ,
HTX/IDC ASP.
ODBC.

Web- HTX/IDC
Web- HTX/IDC,
.
1. , ,
, |.
2. Microsoft
IIS 1-2 (*.htx;.*.idc).
3. , . , .
4. . HTX/IDC .

II.

470

5. IDC (. 12.10)
ODBC.
DSN Web (Data Source Name ). DSN , ,
HTML-. DSN.
. , DSN ,
,
.

IDC
HTML:

;D:\TE5\PROB.

.
:

,DSN_BD_2004

:NVP

. 12.10. HTX/IDC-

6. Web-

:

Access (MDB-),

.
Admin .
Web- ,
;

Microsoft SQL Server,


, Microsoft SQL Server Web. SA
. Web , .

12.

471

, , ,
Access
,
.
7.
IDC .
HTX/IDC
Web-, . Access hl.x
idc. Web- HTML- . - (. 12.11)
HTML-. IDC- (. 12.12, 12.13) SQL, HTML- .

!_*]

V: '.->

%^

v: ;

) D:\TEST\TGBAP.hb:

||'|)| ]

. 12.11. -,

. 12.12, 12.13 , IDC- DSN, htx, SQL, ,

II.

472

SQL, , Web .

. -

Datasource:DSN_BD_2QQ4
Tempi at:.htx w
SQLStatement:SELECT
FROM []
Password:urwrapQ4
username:WVP

. 12.12. IDC-,

. IDC -

Datasource:DSN_BD_2004
Tempi ate:.htx
SQLStatement:SELECT ._, ._,

._ , _._
4-FROM INNER JOIN ( INNER JOIN ( INNER 3OIN _ ON
. _=_.) ON . _=. _)
. _=_. _
+WHERE (((._)=%[ ]3));

password:unwrapQ4
usernamerNVP

. 12.13. IDC-,

, IDC/HTX
idc htx Web-,
. . , HTML- .

Web- ASP
ASP