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

. .

2012


()
. . .

. .

2012
1


_________________________________
__ ____________ 2012 .

___________________________________________________
___________________________________________________
681.3 (075)
32.973.233
89

. .
89 : / .. . , . . . -, 2012. 148 .
240100, 240700, 241000,
020201.
.

Microsoft Windows Office.

. 128. . 11.

. ., 2012
2


1.
Windows 7 ............................................................................................................. 4
2.
Windows 7.................................................................. 15
3. Microsoft Word 2010. .
................................................................................................ 29
4. Microsoft Word 2010. ,
, , ............................................................ 41
5. Microsoft Excel 2010. .
.
................................................................................ 54
6. Microsoft Excel 2010.
/ ........................... 70
7. Microsoft Excel 2010. ... 78
8. Microsoft Excel 2010.
.................................................................................................................. 82
9. Microsoft Access 2010.
....................................................................................... 87
10. Microsoft Access 2010.
. ............................................... 92
11. Microsoft Access 2010.
............................................................................................................ 102
12. VBS.
............................................................... 114
13. VBS.
. . .................................................................. 121
14. VBS.
........................................................................................................... 127
15. VBS.
IF CASE.................................................................... 131
16. VBS.
Do While ......................................................................... 138
17. VBS.
For For Each.................................................................... 143
1. Windows 7 ............................................... 147
....................................................................................................... 148

1.
Windows 7

Windows

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

1

, ( ). , .

, 1.1.

1.1
, ,
(
!).
2

( , 4

). ( 1.2).
.

1.2
,
, ( 1.3).
5

1.3
,
, , , , , , , ( 1.4) .

1.4
, , , , , (. 1.2),
[1, . 162 163].
, . ,
.
,
, 6

< >.
3
[1, . 153 156] ,
( 1.5).

1.5
1.5,
() , ( ),
() ,
( 1.6).
, ( ) .

( ).
(, .),
( 1.7).
( )
(. 1.2).

1.6

1.7
.
, ( 8

), (
).
,

(Jump List , , Word,
, , ),
( 1.8). .
Microsoft (http://windows.microsoft.com/ ruRU/windows7/Using-Jump-Lists-to-open-programs-and-items).

1.8 Word
(, ) .
, (. 1.6) , (
!): , , , .

: , 9

, , , - . , (, , - .).
Microsoft
(http://gallery.live.com/).
4 .
.
Windows Explorer ,
. 1.3
1.4, [1, . 158
162].

: , , , ,
.
( 1.9).

,
, , ESET NOD32 WinRar
1.10. , , , Windows
ZIP-.

1.9

10

( 1.10) .

.

1.10
,
( ), CTRL+C
CTRL+V CTRL+X CTRL+V ( Windows . 1).
, . (
, ), 1.11.
CTRL CTRL+SHIFT .
,
,
.
, , , . :
1) ;
11

2) SHIFT;
3)
CTRL.

1.11
5
( Windows) , .
( , ,
, )
. ,


.
Windows .
, :
o (. 1.2) :
,
,
, ;
, ,
, , ;
o ;
o ,
,
.
12

, :
1) (
, ),
(. 1.8).
2) , , ( 1.12).
3) .
3- , ,
Notepad, WordPad, Calc, Mspaint, Explorer, Iexplore, Winword, Excel .

1.12


1) ,
.
2) ,
.
3) .
4) ,
.
13

5) , , , .
6)
(, ..).
7) .
8)
: , ,
Word, Excel, Access.
.
9)
.
10) Zip-.
11) Word -< >,
-< >.

14

2.

Windows 7

, , , , . , , Windows.

1. , WordPad
2. ,
3. Paint
4. Windows Media
5. Internet Explorer
6.
7. ,

1 , WordPad
(c, Sticky Notes, stikynot.exe) ,
, .
, Windows 7
, .
,
. (. 1), , 2.1.
ALT+F4,
StickyNotes.snt, . , Ctrl+D. ,
. Windows . .
-
http:// www.
. -,
, Ctrl.
15

Segoe Print .
,
.

2.1 Windows 7
(notepad.exe)
2.2.

( , , , )
, ,
.

16

2.2
:
1)
( ), ( ); ,
;
2) c ,
.

.
WordPad ,
( 2.3).

2.3 WordPad
17

WordPad RTF, Office Open XML (*.docx)


Windows, MS-DOS, UTF-8.
Microsoft Office Word , (. 2.3).
WordPad , , ,
, Paint ( WordPad,
WordPad Paint).
, . Microsoft Office, Equation
3.0 Graph ,
WordPad , Office.
2 ,
Windows 7 :



,

,
,

(, , ).
( 2.4) , ,
,
(
; MR
; MS
, + , , ; -
, , 2.4 ,
),

, 1/x.

18

.
, , , ,
Windows (, CTRL+C) .
( 2.5). , ,
, , .

2.5 ,

(Hex), (Dec),
(Oct) (Bin) , .
, (
.) , .
3 Paint
Paint PNG, JPEG, BMP, GIF, TIFF.
9 , 23
19

, 6 , (. 2.6)

2.6 Paint (1 , 2

1, 3 2, 4 , 5 , 6
, 7 , 8 , 9 ; 10 , 11 ,
12 , 13 - , 14 , 15
; 16 17 )

4 Windows Media
Windows Media (Windows Media Player, WMP,
wmplayer.exe) ,
( 2.7).
Windows Media (JPG, BMP, GIF, TIFF),
, -, , , .

20

2.7 WMP ( )

( 2.8).

2.8 ( )
,
2.9.

21

2.9
.
, , , ,
.
5 Internet Explorer
Internet Explorer Microsoft
. 9- , 2.10.

2.10 Internet Explorer 9


,
,
, 3 , .
Internet Explorer 9 22

Google Chrome, .
, ,
Enter, (
), 2.11. Google .

2.11

( ) ,
, ( 2.12).

2.12 ,
, , ,
-
, (
2.13).
Internet Explorer
23


web- (

, 2.14).

2.13

24

2.14
6
Windows, . , , 2.15. ,
CD/DVD .
2 .
1) LFS (Live File System, UDF),
2) Mastered ( ISO 9660 CDFS Compact Disc File System).
LFS (UDF) ,
Mastered.
Mastered
2 .
LFS (UDF) : 1.02, 1.50, 2.00, 2.01, 2.5, 2.6. 2 Windows Vista
. 1.02, 1.5 2.00 ,
DVD- (
Nero, Windows ).

2.15
25

LFS (UDF) , , .
Mastered (CDFS)
,
-, .
,
, (
).
7 ,


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

26

2.16 C:
Windows 7
. .
, , . ,
.
( ). ,
(
, -,
.). .

1) , , , .
2) 1
:
) C Windows 7.
) .
) , 1- n-
.
) .
3) WordPad . 2.1 2.4 . :
) .
) WordPad .
) , .
) RTF.
4) , ,
, .
, .
5) Paint
, , . .
6) Windows Media ,
27

. ,
.
SRS WOW, TruBass
WOW.
7) Internet Explorer , .
8) UDF
CDFS.
9)
. .

28

3. Microsoft Word 2010.


.



.

1.
2.


(, , - , , ),
-
, ,
, , .
Microsoft Word

,
.
,
.
Word 2010
( 3.1) -.
( ).

3.1 -
Microsoft Word 100
( 3.2), ,
. ,
, . . 29

( ): ,
, , ( 3.3).
,
, .

3.2

3.3
, Word ( ,
, ), -
.
30

,
. , , .
,
, .
,
- (. 3.1) (. 3.2)
. , 3.4.

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

( ), + + . ,
31

.
Word 2010 ( 3.5).
, .
- Word 2010
, , , .

3.5 - Word 2010


(), , , .
, , , :
1)
2) ( )
3) ( )
4) ( )
5)
32

6)
7)
8) .
, .
, .
( ) : : : , , Times New Roman;
( ) 13; 1,5;
; . 12,5
. , .
,
. .
, 3.6
3.7.

3.6
33

3.7

( ):
:
,
Times New Roman, , 13. ;
: , : 0 , 0
, 1, 25 ; : 0 , 0 , 1,5 .

( , ).
: , , . , 34

.
10 , . . ,
60 .
1 , 3.8 3.10.
2
3 1
:
1) (. 3.8);
2) 13 (. 3.9);
3) (. 3.10).

3.8 1

35

36
3.9
1.

3.10
1.


:
:
1,
Times New Roman, , 13. ,
;
: , : 1, 25 ,
1 , 0 ; : 111 , 13 , 1,5 , ,
.
.
(. 3.2) ,

( 3.11).

3.11
, ,
, , , . 37

.

, 0, 6
.
.
0. 0, , 6, .
.
-
, 3.12.

3.12 -
,

(. 3.5), (<>:\Users\<>\AppData\Roaming\Microsoft\QuickStyles). . , ,
.dotx
.
2
. , , , .
:
1) Enter .
, Shift+Enter.
2)
38

3)
4)
5)

6)
7)

8)
9)

10)
11)
12)

13)

14)
15)

Ctrl+Enter.

, .
.
(. . ) CTRL+
( . 9 CTRL+ !).
,
.

Ctrl+Shift+,

. ,
. . ( 2
). () , .
( . 7) Ctrl+Shift+.
.

Word .
, CTRL+ .
, ,
, : (), ( ).

I, V, X, L, C, D.
,
.
Word . . .
Word ,
.

.

Ctrl.
Word
39

.
16) .
17)
,
( ).
18) .

1. .

40

4. Microsoft Word 2010.


, , ,


, .

1.
2.
3.
4.
5.

1

:

4.1

, , ,
(. . ).

. , 4.2 , 9
10 ( ,
).
41

, (
!),
. ,
4.3.

4.2

4.3
42

10 8 ,

. ,
( 4.4)
.

: , 100% (
4.5).
,

,
,
.
4.4



.

( 4.6).

4.5
. ,
4.2, . ,
.
, . . 43

.
,
4.1.
10. ( ) 0,1 0. .
,
.

4.6
4.1

,
, .

0
60
120
180
240
300
360

1,00
1,17
1,32
1,42
1,50
-

-
-
,

-
-

- - ,

1,00
1,20
1,40
1,60
1,80
2,00
2,20

1,00
1,30
1,50
1,80
2,20
2,50
2,80

1,00
1,10
1,15
1,20
1,30
1,40
1,50

1,00
1,20
1,30
1,42
1,50
1,57
1,60

1,00
1,20
1,30
1,35
1,40
1,45
1,50

1,00
1,24
1,40
1,55
1,65
1,78
1,86

1,00
1,30
1,52
1,73
1,88
2,00
2,10


, .
(Ctrl+ ).
.
44

, ,
, .
2

.
(
4.7). ,
Word 2003 ,
, ,
Word 2010.

4.7
Word 2010 45

(Microsoft Equation 3.0).


,
.
( 4.8).

4.8

.
, ,
4.9.

4.9
,
.
, =
. :

, , x, i,
2 n . x
46

. ,
. . :

3

Word 2010.
( ), (
4.10).

4.10
Word 2010 Microsoft Graph.
, , 4.1.
4.1 , .
47

, ,
. Excel, , . A2
, Word ,
Y = F(X). 4.11.
4.1

0
0,000
0
0,1
0,020
0,01
0,2
0,170
0,03
0,3
0,250
0,05
0,4
0,300
0,09
0,5
0,325
0,12
0,6
0,340
0,18
0,7
0,310
0,23
0,8
0,260
0,33
0,9
0,180
0,36
0,98
0,080
0,33

0
0
0
0
0,01
0,055
0,08
0,16
0,21
0,3
0,5

4.11 Excel
,
48

D,
, 4.12.

4.12

, : , .

( ).

3- 4-
( 4-
, ).
(
, , )
4.13. , (
) .

49

4.13

, () ,
. - .
0,1.
. .
4.14.

1 ; 2 ; 3
4.14
4
Word 2010 ( 4.15).

4.15
50


, , ( 4.16).
,

.
,
,
.

,
.
, , ( 4.17).

4.16

4.17

SHIFT CTRL.

51

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

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

. : , , , ,
, , .
52

5
Word,
( , , ).
, ,
(. 3).
Word 2010 ,
( 4.19).

4.19

1. ,
.

53

5. Microsoft Excel 2010.


.
.


. ,
.

1.
2.
3. .
4.

1
(
) .
:
32767 ;
;
;
.
,
Excel 2010

Microsoft
http://office.microsoft.com/ru-ru/excel-help/HP010342495.aspx?CTT=1.

: , , , , (WordArt) .
.
, (, A1, BB22,
CCC333), (
5.1).
A1
( , Excel
R1C1). , , ,
54

R1C1, R22C54, R333C2109, R row (), C column (). R1C1 5.2.

5.1 Microsoft Excel A1

5.2 Microsoft Excel R1C1


, .
, , 5.3 ( ).
55

5.3

( , ). , .
, .

Times New Roman, ,
13, , 5.4.
2
( ),
.
.
,
.
, , .

56

5.4

(. 5.2)
.
, Excel
. . 15 , 32767
( ).
, 1 1900
., 0 0,99999999 ( 86400, Excel = 1/86400 = 0,0000115740).
57

, ( ). (
)
( ). 5.5.

5.5
:
-
. Windows.
(
)
;
- e.
-1,23e-15 -1,2310-15;
-
, ;
- ( Windows).
/ -
, . Windows ( ). / (. 5.3),
58

.

, Excel ( 5.6).

5.6 Excel

: A2 ,

/
A2
A8.
( 5.7). .
/

: 5.7
/ ;
/
: ,
(), , ( 5.8).

59

5.8
/ (
5.9).

5.9
,
( ) 1 (
5.10).
60

5.10
3 .

,
, , .
(=).
Excel
, (
).
Excel
(, , /), (+, -, *, /,
^), ( , ),
, .

. 5.11.

5.11 Excel,
,
5.11,
A B 1 5,
B C.
. C
1, /
61


2 5, D ( 5.12).

5.12
,
, .
.
, :
5.11
1 =A1+B1, 2


=A2+B2 . .,
C =A1+B1, D =B1+C1. (A1, B1, C1)
.
( ) , . $ (
F4):
1) $A$1
;
2) $A1 ;
3) A$1 .

5.13.

62

=B3

=(B4-B3)/(B5-1)

=D4+$B$6

5.13

5.14.

5.14

63

Excel (. 5.15).
:
(, , );
(, , , , );
(, , , );
(, , );
(, , );
(ABS, ACOS, LN, LOG10);
, , ;
(, , );
(.I, .., ..) .

5.15 Excel 2010


4

Excel 63 . , , , , ,
, , .

, .
Office
.
( , SIN LOG).
:
64

(. 5.15),
,
fx ,
,
.
1 3 ( 3
), 5.16. , ( 4) ,
fx .
1)
2)
3)
4)

5.16

().
Microsoft Office
Excel , ,
Excel, .
, ,
" ". " " .

y :

65

2 (2b + c)

)2

ln

+ ln(2 + )

b .
Excel y a, b c, . . , . , , :
y1 = 2 (2b + c)
3

y2 = ( )2
y3 =
y=

ln
+ ln(2 + )

y1

2 (2b + c)

)2

ln

+ ln(2 + )

|2 3|

Excel 5.17.

5.17

( 5.18).
Excel :
- ( , 5.18),
- ( 66

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

=D3*E3

=(F3:F12)

=($A$3:$A$12;A15;$F$3:$F$12)

5.18
:
, .
Excel, ,
CTRL+SHIFT+ENTER,
5.19.

5.19
67


) 1
( ), , , . ,
: 1, 1- , 1- ,
1- .
) 2 ,
5.11, , :

X
X.
X.

a
b

1,5

1,5

3,45

12,34

Y = x3 - 2ax - lg(x) + b

0,1

2,2

1,80

5,20

Y =x3 - 2,4ax2 + lg(20,3 x) - b

0,91

0,68

Y = a tg(bx)

85

0,90

0,15

Y = ln(xa) /e

0,1

2,50

0,58

x+b

Y = x3 + ax2 +b

1,50

1,11

y = (aex)/(bex)

0,89

1,00

Y = x5 + b x 2 + x 2 + a

1,2

1,0

3,71

0,50

Y = tg(x+a)sin(x b)

0,5
1,0

0,20

1,10

10

Y = lg(x2 + ab)

1000

1,61

5,39

1000

) 3 Y
, . , b c
. . :

68


1)
2)
3)
4)
5)

6)

7)

b
c

a5 + a2 + c
y = a (b + 17) +
2b
a2 + 3 c
3
y = 3(a + b) /(b + 17) +
(5 a )
1/ 3

y = lg

1,5

10,2

10,034

6,00

13,5

0,92

1,05

20,00

a + sin(b) 4
+ 5+ 2+c
cos 2a

0,785

1,5708

3,777

5,00

a 24 2b + 3
2a 2 / 3 + lg(3b)

9,01

7,7058

0,05

7,0

13,0

0,8

2,00

3,1415

96,6

18,4

1,00

1,5

1,725

5,2425

34,00

3,1416 1,5708 1,884

0,50

y = tg

y = 2 + 2 + 2 + 2 + a + sin

13 b
c5

2
3
tg
(
a
)
a
+ lg
y = 3+3 3+
32 + b
a + b + 2c
tg 2 ( a ) tg 2 ( 2b + c )
y=
lg(a )
34
a + lg(2b + c )
3

8)

sin 2 ( a ) + cos2 (b)


1
a+b+c
y=
( a + b + c )2 / 3

9)

lg 2 ( a + b + c ) + sin( a 2 )
y = tg
14 b
2+
2c

0,5

6,385

4,201

1,00

10)

b 2 4 ac
y=
2 a

sin 2 ( a ) + sin 2

9,5

4,51

2,2093

100,00

) 4 , 5.19.

69

6. Microsoft Excel 2010.



/


, .

1.
2. /

, .

, .

Excel 2010 24 .
(
& ),
(, , , ),
(, ), (,
, ), (,
, ), (, , )
.
, 5.16.
,
, , (=)
( 6.1).

6.1
70

( )
fx
.

.
,
( &)
( 6.2).

=A1 & " " & A2 & " " & A3

6.2
B1 , =A1 & " " & A2
& " " & A3, B2: =(A1; " "; A2; " "; A3).
(<>; <>). 6.3.

71

6.3
, : , A
, , B
( 6.4).
C1 A1: =(" ";A1;1).
D1
A1: =(" ";A1;C1+1).
B1 :
=((A1;1;C1); (A1;C1+1; 1); ". ";(A1;D1+1; 1);".").
:
1) /(A1;1;C1)
A1 1, C1/;
2) ;
3) ;
4) ;
5) .
B1, C1 D1 2 5.
, 6.3.

6.4
2 /
,
(. 5.5).
5, /
72

. .
/
Excel .
, Excel , (), ,
, ().
, , (
00:00). .
/ , 6.5.

6.5 /
,
/ (. 6.3), /, 6.5.

. ( 6.6).

6.6

73

, + + ,
Excel ( ), 6.6.
. . Excel ,
:
(_; _; )

"Y"
"M"
"D"
"YD"
"MD"
"YM"

Excel 4 , ,
: ,
. , ..
2- (
):
.(_, _, [], [])
6.1
.
, . , ,
, , . . 6.7.

6.7 .
74

6.1
. .

1
2
3
4
5
6
7
11
12
13
14
15
16
17

,
,
,
,
,
,
,






75


) , , :

2
3

7
8
9
10

, A1,
2 . (
)
1 64 84.
(
)
. , .
, A1. A
( ), B
.
(: ,
)
: ) ; )
; )

20 , 10- " "

, ,

76

) , , /:

1
2
3

8
9
10

,
, 1 , 5 35
. ,
, , ,
21 , .
, (, 10 1 1 ) 1.09.2001 , .
1.02.2012 30.04.2012 , 23.02.2012
1.09.2012 31.12.2012 (4.11.2012 , 05.11.2012)
1.07.2012
30.11.2012 ( , 8 ) ,
04.11.2012 ,
05.11.2012
, 1.07.2012 60 ,
100
10
( )

77

7. Microsoft Excel 2010.




.

1.
2.

1
Excel
,
( 7.1).

7.1
7.1
: , , , , .
, ,
Word (. 4.10).

Y=F(X) Z=F(X,Y) ( 5.13 5.14). , (, ).
, 2010 2011 ,
(. 7.2).
( ,
)
( 7.2), ( 7.3).

78

7.2

7.3
2
7.2, , , .

, ,
, ( , ).
:
1) (
);
2) = 0
;;
3) , ;
79

4)

5)
6)
7)

;
, (
);
- ;
;
()
.

, 7.4 7.5.

7.4

7.5
80


) Y=F(x) ,
5;
) Z = F(x, y) x, y Z,
5.14 ( x y 15,
)
:

1
2
3

Z=x y
2
Z = x3 y
2
2
Z=x +y
Z= x + y

4
5

x.

y.

y.

5
2
2

5
5
3

5
11
2

5
11
3

0,01

0,01

x2 + y2

10

x 3 y

2
x /3 y

Z=x +y
2
Z = x /y

3
1

3
1

5
1

5
5

Z =

Z=x y

Z=

9
10

x.

6
8

Z=

) , , 2- : :

1
2
3
4
5
6
7
8
9
10

, . ., 1995 2010 .
1995
2000
2005
2007
2008

.
.
.
.
.
.
.
.
.
.

2009

2010

1498

1390

1305

1280

1272

1262

1254

1455

1502

1512

1514

1519

1525

1530

1469

1423

1346

1317

1309

1300

1292

1630

1576

1487

1459

1449

1440

1430

1340

1300

1245

1228

1223

1218

1214

2495

2441

2334

2295

2280

2270

2262

1260

1195

1115

1088

1080

1073

1067

267

202

175

169

166

163

161

6672

6628

6630

6646

6673

6713

6753

9085

9933

10407

10443

10470

10509

10563

81

8. Microsoft Excel 2010.




.

1.
2.
3.
4.

,
.
.
, Excel
.

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

,
, 5.19.

,
Excel (, , ) .
, :
, /;
82

: , ( ), % ( );
, .
.
8.1

G2

50,05

c1

2,50

c2

12,00

c3

0,05

8.1
3

:
.
:
, :

G1 = G2 + G3

:
:
83

M1 = M2 + M3

Mi = Gi ci /100
,
, G1 G3:

G1 = G2 + G3
G1 c1 /100 = G2 c2 /100 + G3 c3 /100
100, :

G1 = G2 + G3
G1 c1 = G2 c2 + G3 c3
, :

G1 G3 = G2
G1 c1 G3 c3 = G2 c2
A :
1

c1

-1
-c3

B :

G2
G2 c2
( G1 G3) -

:
G = A-1 B

4
, . . ,
.
Excel ,
8.2.

84

8.2
85

G1

244,07

c1

2,50

c2

12,00

c3

0,05

86

9. Microsoft Access 2010.




, .

1.
2.


[1, . 236 247],
.
(, database) , .
Access , . .
. .
(table) ,
, (records),
(fields). ,
( ).
( ).
(primary key) , .
Access
, ( ) ( ) ( ).

,
, .

, , 87

, .
Access
.
.
(referential integrity) ,
.

,
. Access

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

, .
[1, . 245 248]
, , .
5- :
1) ;
2) ;
3) ;
4) ;
5) .

Microsoft
Access . ( < >). .
2

. 88

,
( ) , 9.1 (
).

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

9.2. .

( 9.3), (
9.4) ( 9.5).
5
. , .

89

9.1


, ,

8
45

(
)
(
)

9.2

(
)

(
)

45

9.3


120

9.1

9
120

9.5


120
90

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

9.2

, .

91

10. Microsoft Access 2010.


.



, .

1. -
2. Windows-
3. Windows-

Windows-
Web-,
. , .
Access ,
,
, , .
Windows- Web- , ( , , .).
Access , ( , ).
, ,

.
1 -
. , ,
( )
92

( ). .
(
) 10.1.

10.1

, ,
.
* , , - .
,
,
. ,

.
.
,
,
.

.
Excel,
. (, 24). Excel ,
, ,
93

. , . Excel . , . ,
10.2.

10.2 Excel
,
Excel ( Excel),
,
: .
, . .
. , 10.3.

10.3
.
2 Windows-

,

94

. ,
. .
,
.
(
10.3).
10.4, ( ) , ,
.
( >>),
.[ ] (
[ ] ;
, ,
). > .

10.4
95

. .
( 10.5).

10.5

.

,
, .
,
( Access,
, )
.

, ,
10.6.
()
:
, .
,
. (
96

), ,
.
, ,
, .

10.6 , ,
, , ,
( 10.7).

10.7
97


. , . .
.
, ,
, .

. Access .
.
.
3
, (
) (
). ,
,
(.
10.5). ,
,
.

(
10.8).

10.8
98

, ( ),
( 10.9).

10.9

,
( 10.10).
, , !!!

10.10
99

.
.
, 10.11.

10.11
3 Windows
. ,
. Delete .
,
, ( 10.12).

Enter Tab.
( , ,
100

, , )
.
, ,
.

.

10.12


1.
.
2.
.
3. Windows-
.
4.
. : , 2 ,
3 , 3 .

101

11. Microsoft Access 2010.





.

1.
2.

1
,
, Access . , , SQL .
.

, , , .
,
, , .
.
,
, [ ] ( 11.1).

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

102

11.1

11.2
, . . .
5- ,
.
11.3.
103

11.3 ,
3- ,
,
,
.
, ( ), ( )
( ), ( , ) ( ) ( ). ( )
, . . (,
.) .
,
(, ) rtf -.
, , .
,
.
104


4- .

( 20 , 20 , 25 , 10 ). 17,4 ( "").

, ,
( ) ( 11.4).

11.4

(. 11.4),
, [ ],
[ ] [ ]
.
105

, ,
, , , .

,
, ( 11.5).

11.5 ,
, . , .

[], =Avg([])
, = 2,
.

, ,
.
, (
).

,
.
11.6.

106

11.6

11.7.

107

11.7 ,

108

2

, SQL (Structured Query
Language) . Access SQL
( SELECT),
UPDATE, INSERT DELETE ,
.

, ,
( SQL SELECT).
. ,
, .

, , , , , ( 11.8).

11.8
.
109

, [ ], 3 : [], [], [ ]
[ ].
2 , .
3 , .
,
11.9.

11.9

(. 11.8).

, , .
. [,
, ] , [] 1 ( ), [] 5 [ ] .
SQL (Structured
Query Language). :
110

SELECT .[ ], .[, , ], .[ ], .[ ], ., ., ., ., .[ ], .[ ]
FROM INNER JOIN ( INNER JOIN ON .[ ] = .[ ]) ON .[ ] = .[ ]
WHERE (((.)=1) AND ((.)="5") AND ((.[ ])=""))
ORDER BY .[, , ];

:
1) SELECT , (, .[ ] , );
2) FROM , , ;
3) WHERE ;
4) ORDER BY .

. .
( ) . ,

. , ,

,


( 11.10). AVG ( ) [] [ ].
SQL-:
SELECT ., Avg(.) AS [Avg-]
FROM INNER JOIN ( INNER JOIN ON .[ ] = .[ ]) ON .[ ] = .[ ]
GROUP BY ., .[ ]
HAVING (((.[ ])=""));

111

11.10

, .
(
) , ( )
Avg-. ,
. 11.10 , .

11.10 ,
112


1.
.
2. 2 .

113

12.
VBS.


VBS.

1. .
2. MsgBox.
3. InputBox.

1
Visual Basic Scripting Edition (VBS)
(statement) .

( : ) , ( _ ).
, : , (=, +, -, /, and, or, eqv, & .). .
,
ASCII, , Windows WordPad.
, .
, .
:
1) ;
2) : MsgBox "!" ( () ;
MsgBox Message Box,
, , Windows ;
114

3) Prg1.vbs;
4) .
Windows (Windows-), 12.1.
12.1
VBS,
Windows Based Script Host

2 MsgBox

VBS Windows
( [ ]
, < >
):
[<p> = ] MsgBox( <>[,< >] _
[,< >][,<, >] )

:
p , ;
, ;
(
1.1), , (, vbYesNoCancel + vbInformation + vbDefaultButton3 3+64+512);
(,
);
, , .

,
, , ,
.
Prg1.vbs ( _
):
115

MsgBox "!", vbYesNoCancel + vbInformation _


+ vbDefaultButton3, " ","tst.hlp",1

, 1.3.

12.2 MsgBox
,
MsgBox
( 6, Yes (),
vbNo, vbCancel ., . 12.1).
12.1

vbOKOnly
vbOKCancel
vbAbortRetryIgnore

0
1
2

vbYesNoCancel

vbYesNo
vbRetryCancel

4
5

vbCritical
vbQuestion

16
32

vbExclamation

48

vbInformation

64


(Cancel)
(Abort),
(Retry) (Ignore)
(Yes), (No)
(Cancel)
(Yes) (No)
(Retry) (Cancel)
Stop Mark ( )
Question Mark ( )
Exclamation Mark
( )
Information Mark ( )
116

vbDefaultButton1

vbDefaultButton2

256

vbDefaultButton3

512

vbDefaultButton4

768

vbSystemModal

4096

vbOK
vbCancel
vbAbort
vbRetry
vbIgnore
vbYes
vbNo

1
2
3
4
5
6
7



.
(Cancel)
(Abort)
(Retry)
(Ignore)
(Yes)
(No)

MsgBox : , ,
(=) , :
btn = MsgBox("!", vbYesNoCancel + vbInformation _
+ vbDefaultButton3, " ")

, (
, . 12.2), btn , .
, ( ), 2 (!) :
MsgBox " VBS!" _
, , " "
2 , . . < >

3 InputBox
,
(
256 ):
117

[<p> = ] InputBox( <>[,< >] _

[,<..>][,X][,Y][, <, >])

( MsgBox):
p , ,
InputBox;
.. ,
;
X, Y twips (1440
twips = 1 , 567 twips = 1 ) ; ,
.
InputBox :
S = InputBox(vbLF & " :", _
" . ", , 4000, 2000)
Kod = MsgBox (S, vbYesNoCancel+vbInformation, _
" . ")
2 , . .

<..>
InputBox <>, -

: vbLF VBS
, " :";
&.
, Prg2.vbs,
InputBox ( 12.3).
( 256 )
OK , ,
12.4, 256 S ( ,
MsgBox ).

12.3 InputBox

118

12.4 MsgBox
, InputBox
,
( ),
vbLF , (btn, S, Kod),
(=) (& ), (MsgBox,
InputBox).
VBS.

, . ,
.
: ( ) < >.
1) ,
OK
Information Mark. .
2) 10
,
Exclamation
Mark. . .
3) ,
Stop
Mark. . .
119

4) , ,
Question Mark. .
.
5) ,
OK
Exclamation Mark. .
.
6) , ,
Question Mark. .
.
7) 20 15
,
,
Information Mark. . .
8) , ,
Exclamation Mark.
. .
9)
,
, Question Mark. . .
10)
, Information Mark.
. .

120

13.
VBS. .
.

,
.

1. VBS.
2. .
3. .

1 VBS
() . .

:
;
;
, .

Microsoft Visual Basic Scripting Edition Variant. , .


Variant.
,
Variant, .
2.1 , Variant.
13.1 VBS

Byte
Boolean
Integer
Long
Single

0 255
True False
-32768 32767
-2 147 483 648
2 147 483 647

-3.402823E38 -1.401298E-45 ;

121

Double

Currency
Date / (Time)
Object
String
Empty
Null
Error

1.401298E-45 3.402823E38

-1.79769313486232E308 -4.94065645841247E-324 ; 4.94065645841247E-324
1.79769313486232E308
-922 337 203 685 477.5808 922 337 203 685 477.5807
,
1-01-100 0:0:0 31-12-9999 23:59:59

, 2
(0 ,
("") )

VarType , Variant. (Cbyte, Cdate, CSng, CDbl


.).
Visual Basic Variant,
, ,
VBS.
2
, ,
, .
.
().
, , .
.
:
Const
Const
Const
Const

N = 1.15e-15
'
FIO = " "
'
Data_r = #05-13-1988 06:30:00# ' /
Time_r = #06:30:00#
' /

,
,
(1.15e-15 = 1.1510-15).
(" "), (# #).
VBS , :
122

Date Format Constants (,


vbGeneralDate , );
MsgBox Constants MsgBox
(. 13.1);
String Constants , :
vbCr (Chr(13), );
vbLf (Chr(10));
vbCrLf (Chr(13) + Chr(10));
vbNewLine (Chr(10) Chr(13) + Chr(10));
vbNullChar (Chr(0));
vbNullString (Chr(0));
vbTab (Chr(9)) ;
vbVerticalTab (Chr(11)) ;
VarType Constants
(vbEmpty, vbNull, vbInteger, vbLong, vbSingle, vbSingle, vbCurrency, vbDate,
vbString, vbObject, vbError, vbBoolean, vbVariant, vbDataObject, vbDecimal,
vbByte, vbArray);
.
3
() , ,
- , .
VBS Variant .
, ,
, , , :
1) ;
2) ,
;
3) 255 ;
4) ;
5) .

123

:
Dim X, Y, Z
Public A, B, C
Private X1, X2, X3

, Basic
,
, , , :
Z = 1.2345 ' Z 1,2345
S =
dt = #12-31-08#

Dim, Public, Private . .


,
, ,
, .
:
Option Explicit

Dim, Public Private . .



, ,
, ; ( ).

< > , , ( ) .
, &.
1. 3 1)
, 2) , 3) . 2
: <(3), (1), (2)>, <(1) (2) (3)>. MsgBox (
).
124

2. 3 1)
, 2) , 3) . 2
: <(1).(2).(3)>, < (1)
(2) (3) .>.
MsgBox ( ).
3. 4 : 1) ; 2) 3) ; 4)
. 2 :
<(1), (2), (3), (4)>, < (1) (2)
(3), (4).>.
MsgBox ( ).
4. 4
: 1) ; 2) 3) ; 4) .
2 : <(1),(2), (3),
(4)>, < (1) (2) (3),
(4).>. MsgBox
( ).
5. 3
: 1) ; 2) ; 3)
. 2 :
<(1), (2), (3)>, < (3),
(2)- ( )
(1).>. MsgBox
( ).
6. 4
( ): 1) ; 2) ; 3) ; 4) . 2 :
<(1) (2) , (3) (4)>, < : (1),
(2), (4) (3).>. MsgBox ( ).
7. 3 : 1) ; 2) ; 3) ; 4) ; 5) , . 2 : <(1), (2), (3) (4) (5)>, < (1) ,
(2), , (3) (4) (5) >. MsgBox (
).
8. 3
: 1) 1- ; 2) 2- 3) 3- .
2 : <(1) (2)
(3)>, <8.20-9.05 9.10-9.55 (1); 10.10-10.55 11.00-11.45 (2);
125

12.00-12.45 12.50-13.35 (3)>. MsgBox ( ).


9. 3 VBS: 1)
MsgBox; 2) InputBox 3) Popup. 2
: < VBS: (1), (2), (3)>, <
: (1) ( ), (2) (
), (3) ( ).>. MsgBox ( ).
10. 6
VBS . 6
: <() ( )>.
MsgBox (
).

126

14.
VBS.



1. .
2. .
3. .

, , . ,
.
, ( ).
1

Dim, Public Private, Option Explicit.
.
, ,
.
:
Dim _[([])][, _[([])]]...
Public _[([])][, _[([])]]...
Private _[([])][, _[([])]]...

_ ;
: 1[,2]... -

, 0; , . . 60.

127

:
Dim X(99), Y(24,24), Z(99,99,99)

X(99) 99 ;
Y(24,24) 2424 ;
Z(99,99,99) 999999.

Dim, Public, Private .


.
VBS Variant,
.
.
2
( ),
:
Dim _()[, _()]...


:
ReDim [Preserve] _()[, _()]...

Preserve , , .
:
Dim X(), Y()
ReDim X(10), Y(10)
. . .
ReDim Preserve X(10, 10), Y(10, 10)

Variant, , Array:
A = Array(10,20,30,40)

.
:
A(0)=10, A(1)=20, A(2)=30 A(3)=40.

128

3
:
Dim Y(99), Z(99,99,99)
Y(0) = " 1- Y - "
Y(1) = 123.456
' -
Y(99)= #12-30-2007#
' 100- -
Z(99,99,99)=" Z "_
& " 99,99,99"
MsgBox Y(0) & vbLf & "2- Y - : " _
& Y(1) & vbLf & "100- Y - : " _
& Y(99) & vbLf & Z(99,99,99),," . ."

, , 14.1.

14.1


1) 3 5
,
, 21, , . .
2) .
3 . 1- . 7
.
4 7- . 2- .
3) 2 3 7:00 19:00. 129

, ,
.
4) Array 5- ,
.
.
5) Array ,
6- . .
ReDim 3
2. , ,
.
6) 2 3 4 .

(, A(0,0,0)=1 . .).
7)
- .
.
8) X Y 5
, . ,
, .
9) 7 .
.
: 1, 7, 2, 6, 3, 5, 4.
10) 5
, . : 5-,
5- .

130

15.
VBS.
IF CASE

.

1. .
2. .
3. Case.

IF
.
VBS
( ).
1
If <> Then <1> [Else

<2>]

,
(True), (False) Null False;
1 (

); ,
(True);
2 ,
(False).

:
=
<>
<
>
<=
>=
Is

And
Or

Xor

(E1 Xor E2 True,


E1 = True E2 = True,
False)

Eqv
Imp
131

(E1 Imp E2 False,


E1 = True E2 = False, True)

Not


.
:
If A <= 0 Then A = A + 1 : B = B + A Else B = B + A
If X > 0 and X <= 1 Then Y = 1 else Y = 0

2
, , .
.
If <> Then
[]
[ElseIf <-n> Then
[-n]] ...
[Else
[else-]]
End If

,
(True), (False) Null False;
(

), ,
(True);
-n , ;
-n , -n
(True);
else- , ,
.

If, , , (True), , Then.


(False), -n, ElseIf (
) . , -n, Then , End If (. . ElseIf, , ). ElseIf , else, Else.
132

:
FIO = " "
a = InputBox(" a",
"
IF. " & FIO)
'
a = Eval(a)
If a > 10 Then
b = "a > 10"
ElseIf a > 0 Then
' =1!
b = "a > 0"
ElseIf a = 1 Then
' !
b = "a = 1"
Else
b = " a"
End If
MsgBox " IF a = "& a & ": " &
b,,FIO

15.1.

15.1
IF

133

3 Case
Case
.
:
Select Case <->
[Case <_-n>
[<-n>]] . . .
[Case Else
[<else--n>]]
End Select

- ;
_-n Case;
-n , ,
- ,
-n;
else--n , ,
-
Case-.

Case:
FIO = " "
X = InputBox(" a", _
" Case. " & FIO)
X = Eval(X)
'
Select Case X
Case -3, -2, -1 Y = "X -1, -2, -3"
Case 0
Y = "X 0"
Case 1, 2, 3
Y = "X 1, 2, 3"
Case Else
Y = " "
End Select
MsgBox " Case X = "& X & _
": " & Y, 4096, FIO

134

15.2 Case


1) 15.1 X .
e
(, -1e15)
Eval.
Cdate. ,
#//# #--#.
Y
X. X Y .
, X (, 1
12, ),
X
135

:
a) ,
b) .
15.1

1.1 X -1015

Y
Y=

15
X>-10 X<0 Y=
15
X0 X<10
Y=
15
X 10
Y=

1.2 X Y= 1

X Y= 2

X
1.3 X

01.01.1900
X
01.01.1900
31.12.1999
X
01.01.2000
1.4 X 0
. 00 .
6 . 00 .
X 6
. 01 .
12 .00 .

1.6 X 1
3
X 4
6
X 7
9
X
10 112
1.7 X < -10308
X -10308
X 1030
X > 10308

Y= 3

Y
Y= 1-
Y= 2-
Y= 3-
Y= 4-
Y= -
Y=

Y= +

Y= 19

1.8 X 0 255 Y =
Byte

Y= 20

X -32768 Y =
32767
Integer

Y= 21

X
Y =
Long

Y=

1.9 X
=
1.1.2010 0:0:0
X 1
0000
31 2099
X 1
1900
31 0099

Y=

X Y=
12 . 01 .
18 . 00
.

136

Y = !
Y = 21 !

Y = 20 !

X Y=
18 . 01 .
23 . 59
.
1.5 X Y=
12 2
X 3 Y=
5

X 1
100

31.12.9999
1.10 X<0

Y =

Y= X
-15
X0 X<10 Y= X

-15
X 10 X<1 Y= X 1
X 1
Y= X
1

X 6 Y=
8
X 9 Y=
11

2) Case 1- :
1 5 1.5, 6 10
1.6.

137

16.
VBS.
Do While

.

1. Do... Loop.
2. While ... Wend.


.
:
1)
2)
3)
4)

Do... Loop
While ... Wend
For ... Next
For Each ... Next.

.
1 Do... Loop
Do...Loop
( {} ,
|, ):
1)
Do [{While | Until} <>]
[<>]
[Exit Do]
[<>]
Loop

2)
Do
[<>]
[Exit Do]
[<>]
Loop [{While | Until} <>]

138

(True) (False); Null , False;


While (. ) ,
,
Until (. ) , ;
,
, while (True) Until (False);
Exit Do ,
( Loop); Exit Do .

If...Then.
Do While...Loop Do
Until...Loop

1
1
64
32
4
(1)
256
= 6
+

2
1024 10 + 1 10 + 9 10 + 3 4 + 1 10 + 5
=0
4
1

10 + 7 4 + 3

eps = 1e-3
'
n = 0
a = -1^n/1024^n*(256/(10*n+1)+1/(10*n+9)-64/(10*n+3)-_
32/(4*n+1)-4/(10*n+5)-4/(10*n+7)-1/(4*n+3))
s = a
t1 = Time
' , |a| > eps
Do While Abs(a) > eps

' Do Until Abs(a) <= eps,

n = n + 1
a = -1^n/1024^n*(256/(10*n+1)+1/(10*n+9)-64/(10*n+3)-_
32/(4*n+1)-4/(10*n+5)-4/(10*n+7)-1/(4*n+3))
s = s + a
Loop
t2 = Time
dt = FormatDateTime(t2-t1)
pi = 3.1415926535897932384626433832795
r_pi = 1/2^6*s
pi
MsgBox "Eps = " & eps & vblf & ". Pi = " & pi _
& vblf & ". Pi = " & r_pi & vbLf & "n = " & n _
& vbLf & "dt = " & dt, 4096, " . ."

eps = 1e-3 eps = 1e-15 16.1.


139

! ( ). ,
Windows (Task Manager) Ctrl+Alt+Delete ,
, ,
wscript.exe
(End Process).

16.1 Pi

2 While ... Wend


While...Wend :
While <>
[<>]
Wend

, <>
(True).
While...Wend y =
arcctg(x) :

( 1) n x 2 n +1
y=
n = 0 ( 2n + 1)

eps = 1e-28
'
'x = 0.9
x = 0.999999
n = 0
a = -1^n*x^(2*n+1)/(2*n+1)
s = a
t1=Time

140

While Abs(a) > eps


n = n + 1
a = -1^n*x^(2*n+1)/(2*n+1)
s = s + a
Wend
t2=Time
dt = FormatDateTime(t2-t1)
MsgBox " " & Atn(x) & vbLf & _
" "& s & vbLf &_
" " & dt & vbLf &_
" x = " & x &" n = " & n , 4096,_
"Y = arcctg(x). . ."

5.2.

16.2. While... Wend


, ,
10-5 10-16. , 7 . ,
, n .
DO
WHILE.
, . . 15 30 .
141

1)

2)

3)

4)

5)

6)

7)

8)

9)

10)

142

17.
VBS.
For For Each

For...
.

1. For... Next.
2. For Each... Next.

1 For... Next
For...Next :
For <> = <..> To <..> [Step <>]
[<>]
[Exit For]
[<>]
Next

, ()

;
.. ;
.. ;
; ; , , 1;
,
, : ,
;
Exit For , ;

If...Then; ,
Next.
For...Next ( 17.1):
n = 17
Redim x(n)
Randomize

143

For i = 1 to n
' n
x(i) = 10 - 20*Rnd
' -10.000 9.999
Next
s = 0
For i = 1 to n
s = s + x(i)
' x
Next
Ms =
'Ms - x
For i = 1 to n
ms = ms & x(i) & vblf
Next
ms = ms & x = & S
MsgBox ms, 4096, " For ... Next"

17.1 For...Next 17.2 For...Exit


For ...Next

144

17.3
For Each

( . 17.2):
S =
S =
For
Y

"
X
Y" & vbLF
S & "---------------" & vbLF
X = 1 to 5 step 0.11
= FormatNumber(Tan(X),3)
If Abs(Y) < 0.5 Then
s = s & "---------------" & vbLf _
& " " & vbLf & " |Y| < 0.5"
Exit For
End If
s = s & FormatNumber(X,3) & "
" & Y & vblf
Next
MsgBox S,4096," For...Exit For...Next"

2 For Each... Next


For Each...Next :
For Each <> In <>
[]
[Exit For]
[]
Next [<>]

;
.

For Each
:
N=19
ReDim x(n)
Randomize
For i = 0 to n
' n+1
x(i) = 5 - 10*Rnd ' -5.000 4.999
Next
S = ""
For Each iks in X
S = S & iks & vblf
Next
MsgBox S, 4096," For Each... "

For Each X
S ( . 17.3).

145


FOR RND n ,
.
For Each.
n. .
1

1)

s = xi x j

2)

yi = xi xi
i =1

i =1

j =n

3)

ci = ai bi

xi

zi =
5)

4)

xmax xmin
xmax , xmin -

yi =
6)

8)

i =1

9)

yi
xi
x
n

i =1

s = xi /i

( n i ) xi

x = xi / n

7)

zi =

yi =

xi
n

xi

i =1

n1

yi = axi + bxi + c
2

10)

146

xi
s=
i =1 xi +1

1. Windows 7

Ctrl + A .
trl + .
trl + .
trl + V .
trl + Z .
Ctrl + Y .
trl + B ( ).
Shift +Delete .
CTRL+S ( )
ALT+F4
Ctrl +
.
F5

lt + .
Shift + Ctrl + N .
trl + Shift + Esc .
lt + F4 .
F11 ( , , )
F1
F5 .
Esc .

+ F1 Windows
+ B .
+ D ( ).
+ .
+ F .
+ G .
+ L .
+ M .
+ P .
+ R ....
+ T
.
+ U .

147

+ X ( ).
+ Flip 3D.
+ (Aero Peak, ).
+ - ( - , - , - , ).
+ Pause - .
+ Home - , ( , Aero
Shake( )).
+ Shift + - .
Shift +
+ / - .
+ - , (Aero Peak).

1) . . : , .
. . -, 2010. 470 .

148