You are on page 1of 325

Access

Office 2000 Access

Access 2000


Access 2000

:
: Access
:

CD

:
:
C D :

C D :
:

: 63 100080
: www.bhp.com.cn
E-mail: lwm@bhp.com.cn
: 010-62520290,62521724,62528991,62630301,62524940,62521921,82610344

010-82675588-202
:

010-82675588-501,82675588-201

C D :
:
/ : 787 1092 16
/ : 2003 3 1

: 0001

20.5

2003 3 1

5000

: ISBN7-89498-109-5
: 28.00

CD

468


Office 2000 Access
Access 2000









9 Access 2000

8
Access 2000


80 100

2003.2

1 Access 2000
.............................................1

2.7.1 ................................................44

1.1 .................................................1

2.7.3 ....47

1.1.1 ..................................1

2.8 ........................................49

1.1.2 ..................................2

2.8.1 ............................................50

Access 2000 .......................................3

2.8.2 ............................................50

1.2.1

Access 2000 ...........................3

2.8.3 ........................................50

1.2.2

Access 2000 .................8

2.8.4 ............................................51

1.2.3

Access 2000 .....................9

2.9 ................................51

1.2.4

Access 2000 .......10

2.9.1 ................................................52

1.2

2.7.2 ................46

.................... 11

2.9.2 ............................................53

........................................................13

2.9.3 ............................................54

2 ..............................15

2.9.4 ............................................57

1.2.5

........................................................59

2.2 ...............................................17

3 ..........................67

2.3 .............................................18

3.1 ....................................67

2.3.1 ............................18

3.2 ....................................69

2.1 ...........................................15

2.3.2

.........................................................19

3.2.1 ....................................69
3.2.2 ................................73
3.2.3 ........................77

2.3.4 ........................22

3.2.4 ....................78

2.4 .......................................23

3.3 ................80

2.3.3 ................21

2.4.1 ............................23

3.3.1 ....................81

2.4.2 ............................27

3.3.2 ................................83
3.3.3 ................................89

2.5.1 ...................................................34

3.4 ............................................94

2.5.2 ............................................35

3.5 ........................................98

2.6 ...................................38

3.6 ............................................99

2.6.1 ....................38

3.7 ..........................................102

2.6.2 ............................38

3.7.1 ......................................102

2.6.3 ....................41

3.7.2 ..........................................104

2.6.4 ............................................41

3.7.3 ..........................................107

2.6.5 ............................42

3.7.4 ..........................................108

2.6.6 ................43

3.8 SQL .................................................109

2.5 ...............................................33

2.7 ...................................44

3.8.1

SQL .....................110

SQL ..................... 112

...........................................181

...................................................... 117

4.5.10 ....................181

4 .......................................126

4.5.11 181

3.8.2

......................................................182

4.1.1 ......................................126

5 .......................................189

4.1.2 ......................................130

5.1 ......................................189

4.1.3 ......................................131

5.1.1 ......................................189

4.2 .................................................133

5.1.2 ......................................193

4.2.1 ..........................133

5.1.3 ......................................193

4.2.2 ......137

5.2 .................................................194

..194

5.2.2 ..........................195

4.3.2 ..............................................143

5.2.3 ..................198

4.3.1 .................................................142
......148

5.3 .................................................200

4.3.4 ..............................................149

5.3.1 ..200

4.3.5 ..............................153

5.3.2

4.3.6 ..........................................158

...................................................201

......................166

5.3.3 ......201

4.3.8 .................................................169

5.3.4 ..........................202

4.3.9 ..............................................171

5.3.5 ......................203

4.3.7

4.3.3

4.4 .............................176

5.3.6
...............................................204

4.4.2 ..................177

5.3.7 ..................204

4.4.3 ..................................177

5.4 ..................................205

4.5 ..........179

5.4.1 ..........................................205

4.4.1 ..............176

4.5.1 ! .

5.4.2 ..........................................206

...................................................................179

5.5.1 ..............................206

4.5.3 ......180

5.5.2 ..............................207

4.5.4 #

.........................................................180

4.5.5

.......................................................180

5.5 ..................................206

......179

4.5.2

4.5.6

...............................................................180
4.5.7 ..........180
4.5.8
...............................................................181
4.5.9
ii

5.2.1

4.3 .............................142

4.1 .....................................126

5.5.3 ..................210
5.5.4
...............................................................212
5.5.5 ......213
5.5.6 ..........214
5.5.7
...................................................................214
5.5.8
...................................................................217
5.6 .............................................217

5.6.1 ..............218

7.2.1 ..............251

5.6.2

7.2.2 ......254

...............................218

7.2.3 ..............................258
7.2.4 ..........258
7.2.5 ..................260

5.8 .....................................221

7.3 ......................................261

5.9 .................................222

7.3.1 ......261

5.9.1 ......................222

5.6.3 ......................218
5.7 .........................................220

7.3.2

.......................................................262

5.9.2

7.3.3 ..............264

5.9.3 ..................................223

7.4 ......................................264

5.9.4 ......................................224

7.4.1 ..........................264

......................................................225

7.4.2 ..........265

...................................................222

6 .....................231

7.4.3 ..........265

6.1 .................................................231

7.5 ..266
7.6

..........267

6.1.1 ..................................231

7.7 ......................................267

6.1.3 ..............................................232

......................................................268

6.2 .........................................232

8 ............................271

6.2.1 ..................................232

8.1 ......................................272

6.1.2 .................................................231

6.2.2 ......................................235

8.1.1

..............272

8.1.2 ......................................273

6.3.1 AutoExec ............................235

8.1.3 ......................................276

6.3 .........................................235

8.1.4 ..............................278
8.2 .................................................280

6.4.1 ......................................237

8.2.1 ..280

6.4.2 ......................................237

8.2.2

6.3.2 AutoKeys ........................236


6.4 .....................................................237

...........................................................283

6.5.1 ..............................................240

8.2.3 ..................................285

6.5 .........................................240
6.5.2 ..............................................240

6.6 .....................................................244

8.3 VBA ........................286


8.3.1

..................286

6.6.1 ......................................244

8.3.2 ......................................288

6.6.2 ..............................245

8.3.3 VBA ................................290

......................................................248

8.3.4 ..........................................299

7 ............................250

8.4 Visual Basic .............................304

7.1 .....................................250

8.4.1 ..........................305

7.1.1 ..........................250

8.4.2 ..........................306

7.1.2 ......................251

8.4.3 ..........................................308

7.2 .....................................251

......................................................309
iii

9 ...............................310

9.3 ......................................314

9.1 .............................310

.....................316

9.2 ..................................... 311

iv

Access 2000




Access 2000
Access 2000

Access 2000 Microsoft Office 2000 Access


2000 Access 2000

1.1

1.

1.1.1

data base DB

2.

data base management system DBMS



Access 2000

3.

data base system DBS


4

2 1 Access 2000
4.

3

1.1.2

1.

1-1

1-1

1983-3-7

999

512

200102

1983-8-9

817

540

200103

1984-1-3

100

490

200201

1984-12-7

569

200202

1984-10-26

483

200101

1-1
1-1
field

1-15
record

1
2
3
4

2.

1-15
6


Microsoft Access 2000 Access
mdb Access 2000

3.
Access 2000

Access 2000




3
A B
B A


A
B B A

A B
B A

Access 2000
Access 2000

1.2 Access 2000

1.2.1

Access 2000

Access 2000VBA
Access 2000Office 2000
Word 2000 Excel 2000 FrontPage 2000 Outlook 2000

Access 2000

Access 2000 Access 97 Access 2000


Access 97 Access 97
Access 2000 Office 97Office 2000
1 Setup.exe 1-1

1-2

Office 2000

1-1

4 1 Access 2000

1-2

Microsoft Office 2000

3 1-2 CD Key
1-3

Access 2000

4
1-4

Microsoft Office 2000

1-3

1-4

Microsoft Office 2000

5 Microsoft Office 2000 Office 2000


Office 2000 Office 97
1-5

Office 2000

1-5

6 1 Access 2000

6 Office 97
1-6

1-6

Microsoft Internet Explorer 5.0

1-7

Access 2000

Microsoft Office 2000

1-7

8 Microsoft Office 2000 Office 2000


4
1-8

1-8

Microsoft Office 2000

1-8 1-9

1-9

Access 2000

1.2.2

Microsoft Office 2000

8 1 Access 2000

1. Access 2000

1-10

Access 2000

Office 2000 Access 2000 Windows



Microsoft Access Access 2000 1-10

Access 2000 1-11


Access 2000
z Access

z Access

Access 2000

1-11

Access 2000

2. Access 2000
Access 2000

Access 2000

1.2.3

Access 2000

Access 2000
1-12

1-12

Access 2000

Access 20007

10 1 Access 2000

Access 2000

1.2.4

Table 6

Query


Form

Report


Macro DOS Access

Module
Visual Basic
Page Access 2000
Web InternetIntranet
Microsoft AccessMicrosoft SQL Server
Microsoft Excel


1-13

1-13

Access 2000

11

1.2.5


Access




1-13

F11

1.

Access 2000 Access 2000



Northwind


Microsoft Access


Program Files\Microsoft Office\Office\Samples


Northwind.mdb
Samples


1 Windows
2 /
3 Office 2000 Access 2000 /
Microsoft Office 2000 / Access
/ Microsoft Access 2000 /
4 Access 2000

2.


1 Microsoft Access
2
1-14
3
4 1-15

1-14

12 1 Access 2000

3.

1-15

Access 2000

13

Internet Intranet Microsoft Access






1-16

1-16

Access 2000

1.1

1.2

1.3

Access 2000?


1.4

Access
A

1.5

Access

14 1 Access 2000
A

.dbt

mdf

mdb

dbf


1.10

Access
A

1.9

1.8

1.7

1.2.5

1.6

2.1

1.

2.


1
2
3
4

Access 2000

16 2

3.

4.

2-1


3 2-1





+ +

5.

6.

7.

17

2.2

Access

1.

Access 2000

Access
2-2

2-2

2-3

18 2

2-3

2.

Access 2000

2.3

Access

2.3.1

1.




2-4

2-4

2-5

19

2.

2-5






>


< >>
<<


2-6

2-6

2.3.2

Access 2000

20 2

1.

2-7

2.

2-4
2 2-7
1

Enter

2-8 Microsoft
Access

2-8

2-9



Microsoft Access

ID

Microsoft Access

3.


2-9

2.3.3

21

1.

2-10

2-10

2.

3.

Access

Access

4.

2-11

22 2

2.3.4

Microsoft Access
Microsoft Access

2-11

1.

Microsoft Access
Microsoft Access Microsoft
Access

Access

2.

Access


Access

3.

4.

Access

Microsoft Access

Microsoft Access

Access
2-12

2-12

2-13 sheet2

23

2-13

Access dBASE Paradox Exchange


ODBC Microsoft SQL Server Microsoft Visual FoxPro Microsoft Access
Access

2.4

2.4.1

Access

1.

2-1 Microsoft Access

2-1 Microsoft Access

255

Access

64 000

24 2

1 2 4 8 16

ID

GUID

15 4

ID

OLE

OLE

Microsoft Word

Microsoft Excel

16

GUID

1 Gbyte

Microsoft Access


OLE

64 000

UNC URL

2.


1 Number

2
3 Microsoft Access
OLE
4 OLE
5 OLE

25

6 1 10
100 2 20 200
/

3.

2-14

3 3 2-14 2-15 2-16

2-16

2-15

26 2

2.1

1


0 1
/
/




E-mail


OLE
255

2



/
3


2-17

2-17

2.4.2

27

1.

2-18

-10
-1028 -1

225

38

2-19

38

-1
10 -1
1028 -1
.mdb

.adp
28

32 768

2 147 483 648


32 767

2-2



2-18
z 255
z 2-19 2-2

1
12

2 147 483 647

4
4

-1.401298E-45
-3.402823E38
1.401298E-45
3.402823E38

-4.94065645841247E-324 15
-1.79769313486231E308
1.79769313486231E308

4.94065645841247E-324

ID

16

2.2

GUID

N/A

28 2

990101 6
3 4 3 4
1



2
2


3

2.

/
12-1-97
01/12/96 Microsoft
Access




/ /

OLE

2-20 /
OLE

2.3

2-21

3.

29

2-20

2-21

Microsoft Access


2-22

2-22

2-3
2-3

30 2

&

.,:;-/


Windows

<

>


\A A

2.4

1 6 0 9
000000
2

2-22
2-23

2-23

2
3

31

4.

64



255
2.5


2-24

5.



Date()

2-24

Ctrl+Alt+Space

2.6

" "

6.





<=100 100

32 2
<=100
100
Microsoft Access

2.7

1
1980 1987
Between
#1980-1-1# And #1987-1-1#

2-25
400 400

>=400
2-25

2

0 100

>=0 AND <=100

7.


1 Null Microsoft Access


Null

2 Null




3 Null


4 Null


Null

33

" "
5


Space
2-4

Enter

Space

" "

Enter

Space

" "

Null

2.8

Enter

Null

Space

Null

" "

Null

2-4

Enter

Space

" "

1


2

2.5

Access 2000



34 2

2.5.1

Access 2000 3

1.



Microsoft Access
Microsoft
Access

1 2 3

2.

3.


Null Access 2000



A B
B A
A B

4.

2-26

2-26

2

Ctrl
2.9

35

2-27

2.5.2

3 Ctrl

2-27

1 OLE

2
/

1.

1
2

3


2-28
2-28

2-28

36 2

4

2.

2-29 2-30

Microsoft Access
Microsoft Access


1
2-30

2-29

2-30

3
2-31
4
2-32
5
2-33

2-32

2-31

37

2-33

6

10


2.10

1
2-34

2-35
2-34

2.6

2-35

38 2

2.6.1




Access 2000

2.6.2

3
2.11

1
F11


2
3 Access 2000
2-36
4
2-37

39

2-37

2-36

5
Ctrl

z ID

6 2-38

2-38

40 2
2-39

2-39

9 2-38 2-39
2-40

2-40

10

2.6.3

41

990101

01

990102

990102

02

990103

990103

990103

01

92

01

81

01

83

Access 20003

1.


990102 990103

2.

3.


990101 990102 990103
990101


01 02

4.

1
2
3 2-41

2.6.4

2-39

Delete

2-41

2.6.5

42 2

Microsoft Access

1.

1
2
ID
ID
3 Microsoft Access
Microsoft Access

2.

1
Null

2

3

Microsoft Access
2-42
Microsoft
Access

43

2-42

2.6.6

Microsoft Access

Microsoft Access

1.


Microsoft Access

Microsoft Access

2.


Microsoft Access

2.12

44 2

2-44

2-43

1 2-43

2-44

2.7


Access 3

2.7.1


2.13

1
2-45
2

45

2-45

3 2-46
1

2-46

4
2-47

2-47

2.7.2

46 2


2.14

1
2

3
4 2-45


5 2-48
2-49

2-48

47

2-49

2-50

2.7.3

6
2-50


2-51


/


2-51

48 2

2.15

01
02 2
2

1
2-51


2
2-52

2-52

49

2-53

2
3 2-52 1
2 10
1 2-53

4
2-54 01
02

2-54

2.8
3

50 2

2.8.1
1

2.8.2


2.16

1
2

1
2


3 Microsoft Access

2.17

1
2
3
4

2.8.3

Microsoft Access

1.
1
2
3
4

Microsoft Access

51

2.

2.8.4

2.18

1
2
3

1
2


Enter
Esc

1.

1
2

2.

1
2
3


2.19

1
2

3

2.9

52 2






2-55

2-55

2-5

1.
2-5

2.9.1

2-6
2-6

Shift

Ctrl+Space

Shift+Space

Shift+Space

F2

Shift

Shift+ Shift+

2.


2-56

2-56

53



Delete Enter
4 Enter 4

+ +

2-57 + -

2-57

2.9.2

1.
1

54 2

2
3 Tab Tab

2

OLE
3

/ /

1
2

2.

3.

2.20

1


2

3

2.9.3

4
/

1.

2.21

55

1
2

2-58

2-58

2.



2.22

1
2
3 2-57

3.

Is Null Is Not Null


2.23

1
2

2-59

56 2

2-59


4
2.24 450

>450

2-61

2-60


2
>450
2-60

2-61

4. /

/
/





Microsoft Access

2.25 /
450

57

2-62

1
2 / 2-62
/

3

4

>450

2-63

2.9.4

2-63


2.26

58 2

1
2
2-64

2-64

Microsoft Access
2-7
2-7 Microsoft Access

64

64

255

2 048

Microsoft Access
1 Gbyte
255
65 535 1 Gbyte

OLE

1 Gbyte

32

10

255

2 048

255

2 000

OLE

255

59

2.1

2.2

Access

2.3

2.4

2.5

2.6

2.7

Access 2000

2.12

8
A

2.11

Access
A

2.10

A
2.9

16

2.8

2-65
A

"";0;"";1

"",0,"",1

2-65

2.13

32

0;"";1;""

0,"",1,""

60 2
2.14

2.15

2.16

2.17

A
A

2.22

2.24

2.25

250

10

254

255

Access
A

AccessAccess

Access

Access

Access

2.23

2.21

OLE

2.20

A
2.19

2.18

Access

Access

61

2.26

1980911990831

between 1980/9/1 and 1990/8/31

between 9/1/1980 and 8/31/1990

between #1980/9/1 and 1990/8/31#

between #1980/9/1# and #1990/8/31#

Null
A

Null

Null

Null

2.29

/ / OLE

2.30

2.31

2.32

2.33

Access3

2.34

2.35

AB

2.36

Access

2.37

Access 2000

20

.mdb 3

ID

2.38

2.28

2.27

1000
>=100

62 2

ID

20

12

"";""

ID

ID

date

2-66
2 ID

2-67
ID

ID ID

2-69

2-68

2-70

63

2-67

ID

2-66

2-68

ID

ID

2-69

64 2

2-70

ID

date

2 ID

ID

ID

+ ID

65

2
6

10 000

KH0203

2.39

.mdb

10

ID

10

KH0203

3

8

>=10000

10

>=0

66 2

2000

2.38
2.38
2.38







SQL

1
2
3
4
5
6

3.1

Microsoft Access

SQL

1.

2.

68 3
3.


Microsoft Access

4.

1

2
10
3

z
z
4

1 Microsoft Access

2 2002 5 15
2002 4 1

3
4

5 SQL
5

SQL

5. SQL

SQL SQL SQL



1
6

69

6.

2 ODBC
Microsoft FoxPro
3
Microsoft Access Microsoft FoxPro
4 SQL SELECT


Access

1

2

3


4
Microsoft Access

3.2

Access 2000

3.2.1

Access 2000




1
3-1

3-1

70 3



3-2 /

3-2


3
/

3-3
4
3-4
Access 2000

5 3-5

71

3-4

3-3

6 Access 2000
3-5

7

8

Access 2000

3-5

72 3

3-6

3.1


2 /
/



3-7
3 3-8

4 3-9

73

3-8

3-7

3.2.2

3-9

74 3

3-10

1
3-1

2 3-10

3
Access 2000

3-11

3.2

3-11
1

75

3-12

1
3-12
1


3-13

3-13

3 3-14

3-14

76 3

4
3-15

3-15

3-16

3-16

3-16 Access 2000



3.2.3

77

3.3

1 3-17

3-17

3-18

3-19

3-18

3.2.4

3-19

78 3



3.4 888888

3-20
1

3-20

3-21

3-21

79

3
3-22

3-22

4 3-23
5 3-24

3-24

3-23

80 3

3.3


1
2
3

4
5

3-25

81

3-25

3.3.1

1.


Ctrl


2

Microsoft Access

Microsoft
Access Microsoft Access

1


Microsoft Access




2.


Delete

3.

4.

Delete

82 3
5.


6.



Microsoft Access 1
1
:
2

7.

8.

1
2
3-26
.*

9.




Microsoft Access

10.

3-26

Null
Is Null
Null
" "

83

Null Null
Null Null

11.

12.

13.

1
2



3
4
%

5

3.3.2


3-27

>80

[ ]

1.


Microsoft Access 3-1


3-1

3-27

84 3

And

And

Or

Or

Not

Microsoft Access And

Microsoft Access Or

3.5 450

450 3-28

3-29

3-28

And

3.6

9060

9060
3-29

Or

85

2.
3-2
3-2

>=

<

<=

<>

3.7

>=60 And <=90

<>""

=date

>

60 90

3.

3-3

3-3

Between...And

In

Is Null

Like

3.8

Between

#1984-01-01# And

#1984-12-31#

1984 1 1
1984 12 31

86 3

In "01","02","03"
"01" Or "02" Or "03"

01 02 03

Like "*"

Is Null

4.

3-4

[]

b[!ae]ll bill bull bell


Z Z
A
A

b[a-c]d bad bbd bcd

!
#

3.9

white why

B?ll ball bell bill


B[ae]ll ball bell bill

wh* what

1
2
Microsoft Access 3-4

1#3 103

113 123

Like "*"

Like "*"

Like "[A-D]*"

Like "*AN*"

AN

Like "SUPE?"

5 4 SUPE

5.

Not
Not S* S

3
3.10

Not "02"

02

Not Null Is Not Null

6.

Null

3.11

Is Null

Null

Is Not Null

""

Null

7.


Left Right Mid

87

1 Left
Left

2 Right
Right

3 Mid
Mid

4 Len
Len

3.12

990101

Left([],2)

99

990101

Right([],3)

101

990101

Mid(),3,3)

010

990101

Len()

3.13

88 3

""

"" Or ""

Or

In("", "")

In

Not ""

Not

Like "S*"

>="N"

N Z

ID

Right([ ID], 2)="99" Right OrderID 99

Len([])> 30

8.

Len Val 30

1 Date
Date()

2 Year
Year
1900~9999

3 Month
Month
1~12

4 Now
Now()

5 DatePart
DatePart(datepart,date)
DatePart yyyy q
date / 7-Nov-93
3.14

< Date()- 30

Date 30

Between #2001/1/1# And Date( )

Between...And 2001

Year([])=2001

Year 2001

DatePart("q", [])=4

DatePart

89

DatePart("m",[])=1

DatePart 1

DatePart("yyyy",[])=2000

DatePart 2000

Year([ ])=Year(Now()) And Year Month And


Month([])=Month(Now())

3.3.3


Microsoft Access


Microsoft Access




1 Sum
Sum /

2 Avg
Avg /

3 Min
Min /

4 Max
Max /

5 Count
Count / / OLE

Null Count(*)
Null
6 Nz
Nz

90 3
Nz 0 " "
Null

+ - * /
Null Null Nz
Null Nz
Null

3.15

Sum

Avg Nz ,0

Nz Null Avg

Max

Max

Count(*)

1.

Count

Sum


Microsoft Access

Sum Avg Min Max Count
3.16

1

2
Avg 3-30

3-31

Microsoft Access
3-31 Avg

3-30

3-31

2.

91


Group By
Expression 3-5

3-5


Group By

Expression

Where

Group By

Microsoft Access

3.17


2
Group By
Avg
Max 3-32

3-32

3-33

92 3

3.

1
[]+10
2
3-34

3

3-34

3.18 015%

93

3-35


2 01
3-35
[]*1.05
3-36

3-36

3 1
3-37 3-38

3-37

94 3

3-38

3.4

3.19

Access


3-39

2

3-39
3

3-39

3.19

3-40

3.20 0170

95

3.19

3-40


2 01
>70
3-41 3-42

3-41 3.20

3-42

3.20

3.21

*

3-43
Like "*"

3.22


3-43

3.21

96 3

Group By 3
Max
MinAvg 3-44 3-45

3.22

3-45

3.22

3-44

3.23


Group By
3 Count
3-46

3.24 18

Year(Date())-Year([])>=18
Year(Date())
3-46 3.23
2002 Year([])
3-47
3.25

Sum 3-48

3.24

3-47

3.26

Is Null 3-49

3-48

3.25

3-49

3.26

3.27

3-50

3-50

97

3.27

98 3

3.28

3-51

3.28 0102

"""01" """02"
3-51

3.5

1


2
3
4
5


6

Group By
7
Group By

8
Sum AvgCount

9

10

99

Where
Where


11
3.29

1


2

3
4
Group By
5
Group By
6
Avg
7 3-52 3-53

3-52

3-53

3.6



Microsoft Access
1

100 3

2
3
Microsoft Access

4
3.30

1

2
Between

3-54
[] And []

3-54

3 [] []
[ ]

4
3-55

5 3-56
3-57

3-55

3-56

3-57

101

3-58

6 3-563-57 1984 3-58


3.31

1
Like *
2 Like [] & "*"
3-59
3 3-60

3-59

3-60

4 3-61

3-61

3.32

1 Like "*" & [


102 3
] & "*"

3-62

3-62

3-63

2
3-63
3 02
3-64

3-64

3.7

3.7.1

1 Microsoft Access
2
3

103

3-65


2
3-65

3
4

5
6

7
3.33

3-66

2
3-67

3-67

3-66


3
3-68

3-68

3.7.2

104 3

1.


1

2
3 Where


4
3.34

2


3-69
3 3-70

4
3-71
3-69
1

2.

3-71

3-70

105


Microsoft Access
1
2

3 From

4 Where

5
3.35
990301

1 3-72 2

3
Where
990301
3-73

3-72

3-73

106 3
4 990301

990301

3.

2 *



3
990301

3-72
4
5 Delete

6
Microsoft Access
3.36
990301

1
From

Where
3-74
990301

3-74

3-75

990301

107

3-75 990301
990301 Delete

1.

2.

1
2

3
4
5
6

3.7.3

#85/10/8#

Yes

"VB "

(Yes/No)

[]*[]

[]*1.5

50%

VB

1985 10 8

"19"&[]

Right([],4)

19

(No)

(Yes)

3.37 5

1
2


3

4 Yes

108 3

3-76

3-77

3.7.4

5 []-5
3-76
6 3-77 12

1

2

3
4
Microsoft
FoxPro Paradox dBASE SQL

5


6 Microsoft Access

7
8
3.38

3-78

3-78

109

3-79


1
3-79

2
3-80

3-81

3-80

3-81

3.8 SQL

AccessSQL SQL
SQL SQL SQL


SQL SQL
SQL
SQL SQL SQL

110 3
3.8.1

SQL

SQL
2

1.

CREATE TABLE
CREATE TABLE (1 [()] [NOT NULL] [, 2 [()] [NOT NULL]
[, ...]])

3-6

SQL

BIT

Yes No

TINYINT

MONEY

DATETIME

UNIQUEIDENTIFIER

128

REAL

FLOAT

SMALLINT

INTEGER

DECIMAL

17

TEXT

214

OLE

255

1028 - 1 - 1028 - 1

CHARACTER

BINARY

IMAGE

3-6CREATE TABLE

255

3.39
/

1 SQL
2 SQL

CREATE TABLE
( CHAR (6) NOT NULL,
CHAR (3),
BIT,
DATE,
INTEGER,
MONEY)

3-82

SQL

3-82

111

2.

ALTER TABLE CREATE TABLE


ALTER TABLE
ALTER TABLE ADD [()] [NOT NULL] DROP

ADD DROP
3.40
ALTER TABLE ADD CHAR 6

3.

DROP TABLE
DROP TABLE

4.

3.41
DROP TABLE

CREATE INDEX
CREATE [ UNIQUE ] INDEX ON ( [ASC|DESC][, [ASC|DESC], ...])

UNIQUE
3.42
CREATE UNIQUE INDEX ON

5.
DROP INDEX

DROP INDEX

3.43
DROP INDEX

112 3
3.8.2

SQL

1. SELECT
SELECT SQL SELECT
SELECT
[] [] [AS ] [, ...]]}

SELECT

FROM [, ...]
[WHERE ..]

[GROUP BY .]
[HAVING ]
[ORDER BY [ASC/DESC]]

SELECT
z
z

SELECT
ALL DISTINCT TOP
ALL TOP nn
DISTINCT
z *

z
z FROM FROM INNER
JOIN
z WHERE WHERE
FROM
z GROUP BY Sum
Count SELECT
z HAVING HAVING HAVING
GROUP BY
z ORDER BY
ASC DESC
3.44

SELECT *
FROM

3.45 3

SELECT TOP 3 , ,
FROM

113

ORDER BY DESC

TOP 3
3
3.46

SELECT DISTINCT
FROM

SELECT *
FROM

WHERE Between 400 And 450

3.47 400 450


DISTINCT

Between 400 And 450>=400 And <=450

SELECT *
FROM

NOT

WHERE

3.48

3.49

SELECT ,,YEAR(DATE())-YEAR() AS

FROM

ASYEAR(DATE())-YEAR()

3.50

SELECT .,,,
FROM ,,
WHERE .=. AND.=.

WHERE
3 INNER JOIN3

114 3
SELECT .,,,
FROM INNER JOIN ON.=.,INNER JOIN
ON .=.

3.51 0305

SELECT
FROM
WHERE IN (03,05)

IN ("03", "05")="03" OR ="05"

3.52 49902

SELECT *
FROM
WHERE LIKE 9902*

3.53

FROM

SELECT *
ORDER BY DESC

DESC
3.54

SELECT ,AVG() AS ,MAX() AS ,MIN() AS


FROM

GROUP BY

3.54

SELECT ,COUNT(*) AS
FROM
GROUP BY

COUNT(*) NULL
COUNT() NULL

115

3.55

SELECT SUM()
FROM

3.56 2

SELECT

FROM
GROUP BY
HAVING COUNT(*)>=2


2 HAVING

3.57 0103

SELECT
FROM

WHERE =01 AND IN (

SELECT

FROM

WHERE =03)

SELECT
="01" AND ="03"

3.58

SELECT

FROM

GROUP BY

HAVING COUNT(*)=(SELECT COUNT(*)


FROM )

HAVING 2
SELECT

2. INSERT INTO

INSERT INTO

116 3
INSERT INTO [(1[, 2[, ...]])]
VALUES (1[, 2[, ...]]


INSERT INTO [(1[, 2[, ...]])]
SELECT 1[, 2[, ...]]

FROM

3.59 990401 84/7/15

VALUES (990401

#84/7/15#)

INSERT INTO (,,,)

VALUES

3.60 01

INSERT INTO
*

FROM

SELECT

WHERE LIKE *01

SELECT

3. UPDATE

UPDATE
SET

WHERE

UPDATE
UPDATE

3.61 100

UPDATE
SET = +100

3.62 025

UPDATE
SET = -5
WHERE =02

4. DELETE
DELETE
DELETE

117

FROM
WHERE

3.63 990401

DELETE

FROM
WHERE =990401

3.64

DELETE
FROM

3.1

3.2

SQL

3.3

3.4

(ID

ID

(ID

100
3.5

IDSQL

SQL

SELECT .,.ID, Sum(.) AS


FROM ,

WHERE (.ID = .ID) AND (.=)


GROUP BY ., .ID
ORDER BY. DESC


3.6

3.7

3.8

select * from where like "*"

select * from where

select * from wherelike "**"

select * from where = "*"

left

SQL

,2

SQL
=""

select , from , where not in (select from

where =" C")


118 3
B

select , from where not in (select distinct from

where =(select from where ="C"))


C

select ., from ,, where .=.

and .=. and .<>"C"


D

select , from where not in (select distinct from

where ="C")

3-83

3-83

45

56

46

05/06/198206/06/1985

between 05/06/1982 and 06/06/1985

between #05/06/1982# or #06/06/1985#

between 05/06/1982 or 1985

between #05/06/1982# and #06/06/1985#

3.11

3.12

Now

3.16

3.15

3.14

3.13

3.10

3.9

=""

Like "*"

Like "**"

= "?*"

Between 20+[10] And 50*[10]


A

20

30 500

50

In ("" "" ) And

30 50

Group By
B

=""Or Not In ("")

3-84

3-84
B

3-85

3-85

3.18

3.17

119

120 3

3.19

SELECT , Avg()

FROM
GROUP BY;

SQL

3.20

C
3.21

2002430

year (date

( ) )-year(#2002/4/22#)
A

3.22

3.24

3.25

3.23

2002

Having

Create Table

Group By

Where

SELECT

year(date())-year()

year()-

date()-

year(date()-)

SELECT , COUNT (*)


121

FROM
GROUP BY
SQL
A

3.26

3.27

3.28

10

3.29

3.30

FROM )

SELECT .* FROM WHERE .>(SELECT AVG(.)

3.32

Access 2000

Null

3.33

3.34

Year ( Date () ) ) +10

3.35

2000

3-86

3-86

2000

SQL
SELECT , Sum([]*[]) AS
FROM INNER JOIN ON . = .
WHERE

Year([])=2000

GROUP BY ;
3.37

2000

>Date() And Is Not Null

3.36

3.31

3-87

122 3
3.38

3.39

2000

WHERE >(SELECT AVG()


FROM );

3.41

3-89

3.40

SELECT ,
FROM

3-88

3-87

3-88

3-90

3-89

3.42

3-90

3-91

123

3-91
3.43

3-92

3-92

3-93

3-93

SQL

SELECT , []-Sum([]) AS
FROM INNER JOIN ON . = .

124 3
GROUP BY , ;
3.44

SELECT TOP 2 AS ,
FROM
ORDER BY DESC;

3-94

3.47

3-95

3-96

3-95

3.46

3-94

3.45

3-96

3
3.48

125

50

3-97

SQL
UPDATE
SET = []-50

WHERE ="";
3.49

10 000

3-98

3-97

SQL

DELETE
FROM
WHERE >=10000

SQL

70

01

3.50

3-98

01

05

10

18

11

12

13

14

15

16







Windows Access
2000
Access 2000

z
z
z

SQL

4.1

4.1.1

Access

Access

1.


4-1


4-2 4-3

127

4-2

4-3

4-1

2.

128 4

4-4

3.

4-4



4-5

4-5

4.



4-6

5.
4-6

129

4-7


4-7

6.

/
//

Microsoft Access

Microsoft Access



7

4-8

7.

4-8

130 4

4-9

4.1.2

4-9

1.

4-10

Access 2000 3
4-10

1
2

3

4-11

2.

1
2

131

4-11

4-10 4-12

4-12

3.

4.1.3




Access
/ / 4-13

4-13

4-14 5

132 4

4-14

4-15

4-16

133

4-15

4-16

4.2

4.2.1

Access

Access 2000
6

1.



1
2
3

134 4
z

4-17



z

4
4.1

2
4-17
3 4-18

4-18

2.

1

2
3
4

4.2

135

4-19

1

2
4-19

3
/ /
4-20

4-20

4
4-21

4-22

4-21

136 4

4-22

4-23

4-23

4
4-24

4-25

4-24

137

4.2.2

4-25

1.



1
2
3
4

138 4

5
4.3

1

2


4-26



3 4-27

4-26

4-27

4-28

4-28

Ctrl +

Shift
4-29
5

4-29

139

2.



4-30

4-30

3.


4-31


z Shift

z
z

4-32

4-31

4-32

4.

140 4

4-1


1
2 4-1

4
5
6
7
8

9
10

11
12

13 /

141

Tab

Tab

Tab

Tab

18

4-2


14

15


16
17 Tab
4-2

4.4

1
2

3

4-33
4-34

4-33

4-34

4-35

4-35

4.3

142 4

4.3.1

Microsoft Access
/
ActiveX






Ctrl + Enter

143


1

2

4-36

1 Access
/


Enter
3

4-36

4
4-37

4.5
24

4.3.2

4-37

144 4

1.

4-3

1

2
3 4-3

Shift

Ctrl

2.

4 Access


5
6

1

2
3

3.

1
2

3
4


5 =

145

4.6

4-38

4-39



3

4

5
=Year(Date())-Year([])

4-38

4-39

4.7

1
2
4-40

3
SQL 4-41
4-42

4-41

4-43

4-42

4-43




4-44

5
6
7
8

4-40

146 4

4-44

4.8

1
3 4-45

4-45

147

4-46

2 data1

4-464-47
data2

4-47

3 data12
4-48

=[data1]*[data2]
4-49

4-48

4 4-50
5 Enter Enter
4-51

4-50

4-51

4.3.3

4-49

148 4

Microsoft Access /
/ 1
0


SQL /

1

3 /


4.9


149

4-52

2


3
4-52


4
5 4-53

4.3.4

4-53





Microsoft Access

1
2

3

150 4
4
5

4.10

4-54

1
1
2
4-54

2

3

4-55

4-55

4 4-56

5 4-57
2

4-56

151

4-57

6 4-58

4-58

4-59

4-59

152 4

8 4-60

4-60


9 4-61
12

4-61

4.3.5

153

Microsoft
Access

1.


Microsoft Access

2.


Microsoft Access

3.

4.

Microsoft Access .mdb

154 4

2 Microsoft Access

3

Microsoft Access
4
4.11 2 ID ID

ID
ID
ID
ID

2
3
ID Microsoft Access 4-62


4 ID

4-63

4-62

ID

4-63

5 4-64

4-65

155

4-64

4-65

4-66

4-66

156 4

4-67

8 4-67 ID

9 4-68 ID

4-68

10
4-69
2.501

4-69

4
4-70
ID

ID

4-70

5.

11

157

4-4

Microsoft Access
Microsoft Access 4-4

/
Visual Basic

/ SQL




0
1 2.5 Windows

158 4

Microsoft Access

Microsoft Access

4.12
3

ID

ID
3
4-71
ID 3

1
2
3
4

4.3.6

4-71


30

Microsoft Access

1.

1
2

3
4

5

4.13

159

2
4-72

4-72

4-73

5
6

4-73

4-74

4-75
4-76

4-74

160 4

4-75

4-76

2.
1
2
3
4

161


5

6

4.14
3


1
4-77

4-77

2 4-78

4-78

3 4-79

4-79

162 4

4 4-80

4-80

5

4-81

4-81

163

6
7
4-82
Like [forms]![]![] & "*"

[forms]![]![]

4-83

forms!!

4-83

4-82

9
4-84

4-84

3.

1
2
3
4
5

164 4

4.15

1
2 4-85

4-86

4-85

4-86

4 4-87

165

4-88

4-87

4-88

6 4-89

4-89

166 4

4-90

4.3.7

4-90

7
8

1.

1
Microsoft
2
Access
3
4

5



6
7

2.

4-5
4.16

3
4-91

4
4-5

167

Microsoft Access


Microsoft
Access

Windows
0

Windows

0

0



Windows

4-91

2
3
4
5

6
7

4-92
1 1
1

4-93
2 3

4-93

3.

4-92

168 4

1

2
3
Microsoft Access
4
5
6 Page Down Page Up

4.17

1
2


3 4-94

169

4-94

4 Page Down Page Up 4-95

4.3.8

4-95

.bmp .dib .wmf .emf


GIF JPEG

1.

1

2
3

170 4
2.

1

2
3

3.

1
2 OLE Microsoft Access
OLE


4-6

z
z

4-6

4.

5.

1
2
3 .bmp .ico .dib .wmf .emf

171

4-96

1

2 C:\WINDOWS\
Backgrnd.GIF

4-96
3

4 4-97

4.18 C:\WINDOWS\ Backgrnd.GIF

4.3.9

4-97

1.

1
2
3

172 4
5

6
7

8
9 Microsoft Access

4.19

1


2


/
4-98

4-98

3 4-99
4 4-100
5 4-101

173

4-99

4-100

4-101

174 4
2.

1
/
2
3
4 Microsoft Access

4.20

4-102

4-102
1
2
/
3

4-103

4-103

4
4-104

4-104

175

3.

SQL

4.21

1

=Avg([]
4-105

4-105

2
4-106
=[ ].Form![]

4-106

4-107

4-107

176 4

4.4.1

4.4


Microsoft Access

Microsoft Access


1
2 Microsoft Access
3
4

5



6

4.4.2

177

4.4.3




1
2


3
4 Switchboard /
5 Microsoft Access


1
2
3
4.22

1
4-108

4-108

2
3
4

5




4-109

178 4

4-109

4-110

4-111

3 4-110 4-1114-112

4-112

7
8 Switchboard
/ 4-113

4-113

9 Microsoft Access
4-114

179

4-114

4.5.1

! .

4.5

! . !
!

. Microsoft Access
.
4.23 4-7 ! .
4-7 ! .

Forms![]
Reports![]

Forms![]![]

[ ].Form![]

Forms![]![].DefaultValue

4.5.2

2
3

180 4
4

/
5

4.5.3

# #

4.5.4

2
3

4

5 SQL

4.5.5

#
#

1
2
3
4
=[]-[]
5
6


Microsoft Access

4.5.6

Column Column
ID
Forms![]![].Column(1)

4.5.7

181

4.5.8

=Forms![]![]![]

=Forms![Orders]![Orders Subform]![OrderSubtotal]

OrdersOrders Subform
OrderSubtotal

4.5.9

4.5.10




4.24 4-8

4-8

Microsoft Excel

4.5.11

Word

182 4

4.1

4.2

4.3

4-115

WB

4-115
[Forms]![]![WB]

[]! [Forms]! [WB]

[]![WB]

[Forms]![1]![WB].TEXT

4.4

4.5

C
4.6

B
D

SQL

SELECT ., ., . FROM , ,
WHERE

(.ID =. ID) AND (.ID =. ID)

B =[ ] * [ ]

C []![ ] * []![ ]

D =[]![ ] * []![ ]

4.8

A [] * [ ]

4.7

4-116

183

4-116

184 4

4.9
4.10

SQL

4.11
4.12

Access2000

4.13

4.14

4.15

4.16

4-117

4-117

=-

total1 [

4
4-118

4-118

] =Sum([]*[])

185

4 [] =[
4-119

].Form![total1]

4-119

ID

4.17

4-120

4-120

1 3 NAME

186 4
2 ID
4-121

[forms]![]![name]

4-121

4-122 3

4.18

ID

ID

4-122

4.19

2625

4-123

4-123

187

1 YN 4-124 1999

4-124

2002

MN 4-125

1 12

=DateAdd("m",-1,CDate([yn] & "-" & [mn] &

26

"-26"))
4

4-125

=CDate([yn] & "-" & [mn] & "-25")

25
5

Between [forms]![]![begindate] And [forms]![]![enddate]

[begindate]
4.20

[]

[enddate]

4-126

4-126

188 4

4-127

/ 4-128

4-128

4.22

4.21 4-127










Access 2000

SQL

5.1

5.1.1

1.



5-1

5-1

190 5
2.

5-2

5-2

3.

5-3

5-3

4.
5-4

5 191

5-4

5.


5-5

5-5

6.


5-6

7.


5-7

5-6

192 5

5-7

8.

5-83

5-8

5 193

5.1.2

5.1.3

3


5-9

5-9


Access
/ /
5-10


5-10


5-11

5-11

194 5

5.2

5.2.1

Access

Access 2000
5



1
2
3


z


z

4
5
5.1

1

2
5-12

3 5-13

5-12

5-13

5 195

5.2.2

1

2
3
4

5.2

1

2
5-14

3

/
/
5-15

5-14

4
5
6
7
8
9

5-15


5-16
5-17

5-18

5-19
5-20
5-21

5-16

196 5

5-18

5-17

5-19

5 197

5-21

5-20

198 5
5-22

5-22

5.2.3

10


5.3
5-23

5-23

1

2
5-24

5-24

5-25

5 199

5-25

4
5-26

5-26

200 5
5



5-27

5.3

5.3.1

5-27

1

2
3
4 Microsoft Access
5.4

1

2 5-28

5-28

5 201

5-29

3
5-29

5.3.2


1
2 / /
3
0

0
5.5

27

1
2 /
3 5-30

5.3.3

5-30

1
2
3

202 5

5-31


4 date( ) now( )
5.6

1
2

3 5-31

5.3.4

4
=Date()

1
2
3
5-1
5-1

4
5-2

5 203
5-2

=[Page]

="Page " & [Page]

Page 1 Page 2 Page 3

="" & [Page] & ""

1 2

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

Page 1 of 3 Page 2 of 3 Page 3 of 3

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

1/3 Pages 2/3 Pages 3/3 Pages

=" " & [Page] & "

=Format ([Page], "000")

003

5-32

5.7


N N

1
2
3
5-32
4 5-33

001 002

" & [Pages] & " "

5.3.5

5-33

204 5

2
3
Microsoft Access

5.3.6

5.3.7

1
2
Microsoft Access
3


1
2
3 .bmp .ico .wmf .dib .emf
4




5 3

6 Microsoft Access



7

8
9


5.8

2
5-34
5-35
3

5-34

5 205

5-35

5.4

5.4.1

1.

Microsoft Access


206 5

2.

5.4.2

2
3
z
z
z
4

5.5

5.5.1

10


2
3 /

4 / Microsoft Access

A
Z 0
9
Z

A 9
0
5.9

/
2


5-36

5-36

5-37

5-37

5.5.2

5 207

10
1

3
4
5-3

208 5
5-3

Microsoft Access

5.10 5-38



1 1

5-38

5 209

5-39

1
2 / /
3
5-39

5-40

4
5-40
=" " & [Pages] & " " & [Page] & " "


6
5-41
7 5-42

5-41

5-42

5-43

5-43

9
5-44

210 5

5-44

5.5.3
1

5-38

11

5-45


2
3
4
5.11 5.10
5-46

5-46


10
=ROUND(AVG([]),0)
5-45

5 211

5-48



5-48
4



5-49

5-47

1
2
5-47

5-49

212 5

5.12 5.11
5-50

5-50

5-51

5.5.4
1

1

2

3

4
5-51


2
3
4

5 213
5
5-4
5-4

5-5

6
7 5-5

5-52

5-53

2
3

5.13 5.12

5-52

5.5.5
1
2
3
4

5-53

214 5
z
z
5
6
7 5-6

5-6

Microsoft Access

Microsoft Access

Microsoft Access

5.5.6

5.5.7

1
2
3
4 =Count
5.14 5.13
5-54

1
2
3
=Count([])

2
5-7

5-54

5-7

5 215

3
4
5 Left Right
5.15
5-55

5-55

216 5

5-56

1
2 =Right(Left([],4)
5-56

3 =Right(Left([


],4)
5-57

5 217

5.5.8

5-57

5-8



1
2
3 5-8

5.16
5.15

1
2
5-58


5-58

5.6

218 5
5.6.1

5.6.2


1

2
/
3
4
5

5.6.3


1

2
3 F11
4 Microsoft Access




Microsoft Access
1
2
AutoNumber

Number

Microsoft Access

1
2

z
z

5 219


4
/
5.17 5.16
5-59

5-59

1
2 5.16

5-60

5-60

220 5
5-61

5-61

5.7

1
z

z

2
3
4
5
6
7 3

8
9
10
11
5.18 5.10

5-62

1
2
2

5 221

3
4

5-62

5.8

1.

2
" "

1
2
3
4

2.

1
2
z
z
5.19
3
5-63

222 5

5-63

5-64

1
2
5-64

5.9

5.9.1

5.9.2

3
4

1
2

1
2
z
z


3
4 SumAvg

5.20 5.10
5-65

5 223

5-65

1
2 =Max([
5-66
])

5-66

5.9.3

1
2
z

224 5

3
4
z
z

5.9.4

1
2
3
4


5
6
7
5.21 5.10
5-67

5-67

5 225

5-68

5.1

5.2

5.3

5.4

5.5

1
2 =Count([


])

3


=Count([])

=Count([])/[]
5-68

SQL

5.6
C

SQL

5.9

5.8

5.7

5-69

5-69

5.10

226 5

SELECT ., ., ., .
FROM INNER JOIN ( INNER JOIN ON . = .
) ON . = .

5-70

5-70

5 227

[Pages]

5.12

5.11

5 1

=[Page] & " / " &

15

Page1/5Pages

1 Page/5Pages

1/5

ID

5-71

5-72

5-71

228 5

5-72

=[]-[]

=[]*[]

5.13

5-73

5 229

5-74

5.14

5-75

5-73

5-74

5-75

230 5

5-76

5.15

5-76

5-77

5-77

2 =[]-Sum([])

5-78

5-78



AutoKeysAutoExec



4 4
4


6.1.1

6.1




6-1 1 OpenTable
ApplyFilter 460 Microsoft Access
1

6-1

6.1.2

232 6



21

22

6-2

6-2 2
OpenForm

6.1.3

Access

+ +
2 22 2.22

6-3
ApplyFilter ShowAllRecords

6.2.1

6-3

6.2

1.
6.1

6
6-4

6-4

233


1

2

3 OpenForm
6-5
4

6-5

4
5


6-6

6-6

234 6
6

2.

6.2 3
6-7

3 6-8

6-8

6-7

3 3

6-9

6-9

6.2.2

235

1.

2.

1
2

1


2
3
4

3.

1
2
3

6.3.1

6.3

AutoExec

AutoExec
Microsoft Access
AutoExec AutoExec
1
2 AutoExec
3 Access
4 AutoExec Shift
6.3 AutoExec


1

2 MsgBox
6-10

236 6

6-10

6.3.2

3 AutoExec Access
6-11

6-11 AutoExec

AutoExec

AutoKeys

AutoKeys
Microsoft Access AutoKeys


2
3
4
5
6 AutoKeys
6-1AutoKeys
6-1

^A ^4

Ctrl +

{F1}

^{F1}

Ctrl +

+{F1}

Shift +

{Insert}

Ins

^{ Insert }

Ctrl + Ins

+{ Insert }

Shift + Ins

{Delete} {Del}

Del

^{ Delete } ^{ Del }

Ctrl + Del

+{ Delete } +{ Del }

Shift + Del

237

6.4 AutoKeys Ctrl+O


Ctrl+Q


1

2

^O

AutoKeys

6-12

OpenTable
3 ^Q OpenQuery

6-12

4 AutoKeys Ctrl+O
Ctrl+P

6.4

6.4.1


1
2
3 Microsoft Access

6.4.2

Microsoft Access
Microsoft Access
...
Microsoft Access
...

238 6

6-13

Subpage
SetValue
Visible [Subpage].[Visible]
No 6-14

3
4
5
6

6.5 70

1

2
6-13

6-14

7
8
6-15
9 70 Visible
Yes 6-16
10
11

239

6-15

6-16

12

70

6.6
6-17

6-17

4 [Forms]![].[]<50 And [Forms]![].[


240 6

6-18

]>=0 50
[Forms]![].[]<100 And [Forms]![].[]>=50
100 6-18

5
6
7 51 6-19

6.5

6.5.1

6-19

6-20

6.5.2

6-20

Microsoft Access

241

1.
1
2

Microsoft Access

6.7

2.

1
2 Microsoft Access

6.8 1

1 6-21

6-21

6-22

6-22

242 6
3.
1
2
3

6.9


Current
1
2 OpenForm
3 Where

[]=[Forms]![].[]
6-23

6-23

4
6-24

6-24

5
6-25

6-25

243

6.10

1
2 OpenReport

3
6-26

6-26

4
6-27

6-27

5
6-28

6-28

6.6

6.6.1

6-2

ApplyFilter

6-2

244 6

ApplyFilter

SQL WHERE

Close

Microsoft Access

GoToControl

Beep

GoToPage

GoToPage

GoToRecord

Maximize

GoToRecord

Microsoft Access

Microsoft Access

MsgBox

Minimize

OpenForm

OpenQuery

OpenQuery

OpenReport

245

Opentable

Opentable

PrintOut

Quit

Microsoft Access

RepaintObject

Quit Access

RunApp

RunApp Microsoft Access Windows MS-DOS

Microsoft Word Microsoft PowerPoint

Microsoft Excel
RunMacro

SetValue

Microsoft Access

6.6.2

StopMacro

ShowAllRecords ShowAllRecords

Restore

6.11

123
* 6-29

6-29

6-30

3


.
. 6-31

4




6-32

6-31

6-30

246 6

6-32

123

6.12 6-33


6-33

247

1


3

2 6-34

6-34


3

4
6-35

6-35

248 6

6.2

6.3

6.4

6.5

Access 2000

6.1

6.7

RunSQL

RunCode

OpenForm

Echo
Macro

Message

RunApp

OpenQuery

Quit

Revoke

View

Warn

MsgBox

Form

Page

6.12

Return

OpenTable

6.2.1

6.13

6.2

Close 6-36

MsgBox 6-37

6-36

Close

6-37

MsgBox

6.11

Exit

6.10

Microsoft Access

6.9

OpenReport

6.8

RunMacro

6.6

6
6.14

AutoExec

6.15

6.3.16.3

6.16

249

AutoKeys Ctrl+D

Access

6.3.26.4

6-38

6-38

6-39

6.6.26.12

6-39
3







Web Internet Intranet
Microsoft Access Microsoft SQL Server
Microsoft Excel

7.1.1

7.1

Microsoft Access
Microsoft Access .HTM Microsoft Access


1.

2.

3.

Microsoft Access
Microsoft Excel

251


Microsoft Excel

7.1.2

Microsoft Access Microsoft SQL Server 6.5



Microsoft Access Microsoft SQL Server
Microsoft Access
ConnectionString Internet Explorer 5
ConnectionString
Microsoft Access

UNC

ConnectionString


X

7.2

7.2.1

Microsoft Internet Explorer


Internet Explorer 5

Microsoft Access
HTML

1.



1
2
3

4
5

252 7

7-2

7-1

7.1


1

2
7-1

2.

7-2



1
2
3

7
4
5
7.2

253




7-3

7-3

3
7-4

7-4

254 7

7-5

7-6

7-6

7.2.2

7-5

1
2
3
4 7-7

255

7-7

5




7-8
6

7
7-8

8
9
7.3


2
3
7-9
4 7-10

7-10

7-11

7-9

256 7

7-11

7-12

7-12

7.4 7.3

257

HTML

7-13

1
2 HTML

3 HTML
4 TotalType Sum Avg Min Max Count AnyStDev
Avg 7-13

5 HTML
Delete
6
Delete Access 7-14

7-14

7-15

7-15

7.2.3

258 7

7.2.4

Microsoft Access
Access

1
2
3
z
z

1.



HTML
Internet Explorer Web

2.

259

7-16
z

z

z

7-16


7-17

7-17

260 7
7.2.5

Access 2000

HTML
HTML

2.

1.

4.

3.

Microsoft Access

5. Office

Office

6. Office

Office

7. Office

Microsoft Excel

8.

Web

9.

261

10.

7.5 7.4

1
2

HTML

7-18

7-18

7.3

7.3.1

1
2 HTML

z HTML

262 7

7-19

z
3

4
Microsoft Access

7.6 7-19

1

2
3 HTML ControlSource

4 HTML
7-20

7-20

7.3.2

263

2
3

4

5
6
7

8
7.7 7-21

7-21

1

2
3 HTML ControlSource


4 HTML

5
1 7-22

7-22

264 7
7.3.3


2
3
4

Microsoft Internet Explorer



7.8 7.7 3

1

2

3
3 7-23

7-23

7.4

7.4.1

1
2

265

3
7-24
4

7.4.2

1

z

z

7-24


2
7.9 7.8

1
2
7-25

7.4.3
1

7-25


2
3
4
z Microsoft Access

266 7

7-26

z Access
7.10 7.9

1
2
7-26

7.5

7-27

267

2
3 ;
4 7-27

7.6

7-1

Microsoft Access 7-1




Microsoft Access Microsoft Access


Internet Intranet Access Access

Microsoft Office 2000 Office


1
Internet
2 Internet
IntranetAccess 2000SQL
3 Access 2000

4 SQL

5 E-mail

1
2
3
4

7.7


7-28

5

6

7
7-29
8

7.1

7.2

7-29

7-28

268 7

7.3

7.4

7.5

E-mail
A

7.6

7.8

7.7

HTML

MDB

D
D

Access 2000

MDF

MDT

7
A

IE

7.9

7.10

7-30

269

7-30

7.3.17.6
1

3
7-31

7-31

270 7
7.11

7.7

7-32

7-32

Office

7.12

7-33

7-33




Visual Basic
Windows Visual Basic For Windows Visual
Basic For Applications VBA Visual Basic For Windows Microsoft
Offic VBA VBA
MS Office
Microsoft Access

Visual Basic



VBA
1
VBA

2 Microsoft Access
IPmt VBA


3 Microsoft Access

Microsoft Access VBA

4
VBA

5 VBA

272 8
6 VBA
VBA
VBA

8.1

8.1.1

1.

VBA

2.

VBA

VBA


3.

8 273



2



VBA

4.

5.

1


2

3
RESET

Ctrl+Alt+Del
4

8.1.2

Visual Basic for Applications



274 8
1




Access 2000


Microsoft Access

8-1


8-1 8-2

8-2

8 275

8-3


F2
VBA
8-3

Visual Basic for Applications


OpenForm 1

Sub Openform ()

DoCmd.OpenForm
End Sub

1 Sub Sub
Microsoft Access


Microsoft Access


2 Visual
Basic Now


getdate
Function getdate()

276
276 8
getdate = Str(Year(Now)) + "" + Str(Month(Now))
+ "" + Str(Day(Now)) + ""
End Function

8.1.3

getdate
Date Year Now Month Day Str
Microsoft Access

Microsoft Access


MAIN

1. Data

Data
8-1
8-1 Data

AfterUpdate

Visual Basic

Delete

Change

BeforeUpdate

Text

2. Keyboard

Keyboard SendKeys SendKeys


Keyboard 8-2
8-2 Keyboard

KeyPress

ANSI


KeyPress
KeyPress

KeyDown KeyUp

8 277

3. ErrorTiming
Error Timing 8-3
8-3 ErrorTiming

Microsoft Jet Visual Basic

Microsoft Access

Timer

Error

Visual Basic

TimerInterval Timer

4. Mouse

8-4 Mouse

Mouse 8-4

Click

DblClick

5. Filter

ApplyFilter

Filter 8-5
8-5 Filter

Filter

/

/

/ /

278 8
6. Focus
Focus
8-6
8-6 Focus

Deactivate

Microsoft Access

Activate

LostFocus

7.

GotFocus

Deactivate

Window

Window 8-7
8-7 Window

Close

Load

Current Open

Close

Unload

Open

8.1.4

1.

1

Enter GotFocus

8 279

Enter GotFocus

Open Activate Current

Open () Activate () Current () Enter () GotFocus


()


Exit LostFocus

Exit LostFocus

Exit LostFocus
Unload Deactivate Close

Exit () LostFocus () Unload () Deactivate () Close


()

BeforeUpdate AfterUpdate

2

BeforeUpdate AfterUpdate

BeforeUpdate AfterUpdate
Exit LostFocus
BeforeUpdate AfterUpdate Exit LostFocus

Change
Change
BeforeUpdate AfterUpdate

KeyDown KeyPress Change KeyUp


NotInList Change
LimitToList Yes
Error NotInList
KeyDown KeyPress Change KeyUp NotInList Error

2.



1


Current (form) BeforeUpdate (form) AfterUpdate (form)

280 8

Exit LostFocus BeforeUpdate AfterUpdate

BeforeUpdate (form) AfterUpdate (form) Exit (control) LostFocus
(control)

Enter (control) GotFocus (control) BeforeUpdate (control) AfterUpdate

(control)

Exit (control1) LostFocus (control1) Enter (control2) GotFocus

(control2)

BeforeUpdate (form) AfterUpdate (form) Exit (control2) LostFocus

(control2)

2
Microsoft Access

Delete BeforeDelConfirm AfterDelConfirm

Delete BeforeDelConfirm AfterDelConfirm



3

Enter (control) GotFocus (control) BeforeInsert (form) AfterInsert


(form)

BeforeUpdate AfterUpdate BeforeUpdate


AfterUpdate BeforeInsert AfterInsert

8.2.1

8.2

8.1

8 281
1 8-4

8-4

Visual Basic 8-5

8-5 VBA

3
4
5
6 8-6
8.2 1
90 Message
90

1 8-7

8-6

282 8

8-7

2
3
Format
4 8-8
Private Sub _Format(Cancel As Integer, FormatCount As Integer)

If Me! >=90 Then


Me!message.Visible = True
Else
Me!message.Visible = False
End If

End sub

8-8

8 283

8.2.2

5 Message
8-9

8-9



SubFunction Property Let Property Get
Property Set

1
8-10
2 8-11
8-12

8-10

284 8

8-12

8-11

8 285

8-13

3
8-13


8-14

8-14


ABasicClass

Dim abc As New ABasicClass

Visual Basic ABasicClass


abc dispaly
X1
abc.display(

n=abc.x1(3214)

8.2.3

286 8

8-15

2
3

4 8-15

8.3.1

8.3 VBA

1. VBA

VBA 8-8

(Bytes)

Boolean

True False

Integer
Long

2
4

-32768 32767
-2 147 483 648 2 147 483 647

Single

10-38 1038

Double

10-308 10308

Date
String

8
1

1/1/100 12/31/9999
0 65 535

8-8 VBA

6
15

2.


VBA 3

8 287

z Const
z Microsoft Access
z True False Null
1

Const
Const

Const conPI = 3.14159265


Const conreleasedate= #1/1/2000#

Const conVersion = "Version 7.0"

2 Const VBA
Visual Basic

VBA vb
vbCurrency

3.

VBA
1
2
{ } [ ] # $ % & @
3
SALE user_name The1234
2

Dim
z Dim AS
z Dim 1 2 n AS
z Dim 1 2 AS 1 AS 2
dtdate=now()

Option Explicit

288 8

DIM
3 VBA
SUBEND SUB



8-16

8-16

Public

AS

Integer

book_name AS String

8.3.2

weight

PUBLIC

VBA


ST(10) ST(5) ST 10 5


1.


Dim Static Private Public



8 289
0 1 Option Base
0 Option Base 1 1
1
1 ()

Book_name(100) As String

100

Dim

Score(50) As Integer

50

Dim

ReDim MyDoubleArray(10) As Double

Option Explicit 1 1 0
2 (M,N)
M N
11 11 Integer
88

11 * 8

2
Static Dim Private Public

Dim sngArray() As Single

Dim intdyn()

ReDim
ReDim Preserve
varArray 10
ReDim Preserve varArray(UBound(varArray) + 10)

As integer

0 5

for I=1 to 5

redim intdyn(5)

intdyn(i)=2*I

next I

ReDim Preserve intdyn(UBound(intdyn) + 10)

10

2.

365 365
curExpense 365
364 365
8.3 20

Sub FillArray()
Dim curExpense(364) As Currency
Dim intI As Integer
For intI = 0 to 364
curExpense(intI) = 20

290 8
Next
End Sub

8.4 Variant

Dim varData(3)

As

Variant

varData(1) = "4242 Maple Blvd"


varData(2) = 38
varData(3) = Format("06-09-1952", "General Date")

varData(0) = "Claudia Bendel"

Sub FillArrayMulti()
Dim intI As Integer, intJ As Integer

8.5 5 10
For...Next
Single

Rem
For intI = 1 To 5
For intJ = 1 To 10

Dim sngMulti(1 To 5, 1 To 10) As Single

sngMulti(intI, intJ) = intI * intJ


Debug.Print sngMulti(intI, intJ)
Next intJ

End Sub

8.3.3

Next intI

VBA

Visual Basic
3
z
z
z

1. VBA

1
_
8.6

8 291
Sub chekyear(year as integer)
Dim strtemp As integer
If

(year mod 4=0 and

or

year

mod

100 <>0)_

year mod 400=0 then

msgbox (year& )

End if
Strtemp=&_
?&_
4 100 &_

400 .
Msgbox(strtemp)
End Sub

2
Visual
Basic Rem


Rem

Dim MyStr1, MyStr2


MyStr1 = "Hello"

Rem MyStr1
MyStr2 = "Goodbye"

'

3 VBA
Enter
8-17

8-17

2. VBA
VBA

292 8

Public

Static
8.7 3

Public Sub test()


Const value=32145

Dim x As Imteger
Dim abc As New ABasicClass
abc.display ("!")

x = abc.x1(value)
MsgBox (x)
End Sub

1 Sub End Sub Test Test


Sub End Sub
2 Const value=32145
3 Dim x As Imteger Dim abc As New AbasicClass

3.

=
8.8 InputBox yourName

Sub Question()

Dim yourName As String

yourName = InputBox("What is your name?")


MsgBox "Your name is " & yourName

End Sub

Let Let yourName =


InputBox("What is your name?")
Set
8.9 Set Sheet1 myCell

Sub ApplyFormat()
Dim myCell As Range
Set myCell = Worksheets("Sheet1").Range("A1")
With myCell.Font
.Bold = True

8 293
.Italic = True
End With
End Sub

4.

Then 1

If


VBA

1
1 True If...Then...Else

[ Else 2]

Then
Else Else
8.10 X

Function absvalue(x as integer)


If

x>0 then

y=x

else

y=-x

Absvalue=y

End Function

Sub FixDate()

Else

myDate = #2/13/95#

If myDate < Now Then myDate = Now


End Sub

2 End If IF

If

Then

[Else

End If

Then
Else Else

Sub AlertUser(value as Long)


If value = 0 Then
AlertLabel.ForeColor = "Red"

294 8
AlertLabel.Font.Bold = True
AlertLabel.Font.Italic = True
End If
End Sub

If...Then...Else True
False
8.11 X

Sub AlertUser(x as Long)


x

Mod 2=0

Then

If

msgbox x
Else

msgbox x
End If
End Sub

3 False If...Then...Else
ElseIf

If 1then
elseif 2 then
2
3

else

elseif 3

End if

8.12

Function Bonus(performance, salary)

If performance = 1 Then
Bonus = salary * 0.1

ElseIf performance = 2 Then


Bonus = salary * 0.09
ElseIf performance = 3 Then
Bonus = salary * 0.07
Else
Bonus = 0

8 295
End If
End Function

Select Case
Case 1
1

Case 2
2

[Case Else
[ n]]
End Select

CASE
CASE CASE
CASE
CASE
CASE ELSE
Select Case
8.13 8.12 Select Case

Select Case performance


Case
Select Case Case Case Else
Function Bonus(performance, salary)
Select Case performance

Case 1

Bonus = salary * 0.1

Case 2, 3
Bonus = salary * 0.09

Case 4 To 6
Bonus = salary * 0.07
Case Is > 8
Bonus = 100
Case Else
Bonus = 0

End Select

296 8
End Function

5.

VBA
DO FOR
1 Do DO Do

1 DO WHILE
WHILE

DO

LOOP



8.14 ChkFirstWhile
myNum 20 9 ChkLastWhile
False

Sub ChkFirstWhile()
counter = 0

myNum = 20

Do While myNum > 10

myNum = myNum - 1

Loop

counter = counter + 1

MsgBox "The loop made " & counter & " repetitions."
End Sub

DO

2 DO WHILE

WHILE

LOOP



8.15

Sub ChkLastWhile()
counter = 0
myNum = 9
Do
myNum = myNum - 1

8 297
counter = counter + 1
Loop While myNum > 10
MsgBox "The loop made " & counter & " repetitions."
End Sub

3 DO UNTIL
UNTIL

LOOP



8.16

DO

Sub ChkFirstUntil()
counter = 0
myNum = 20

myNum = myNum - 1
counter = counter + 1

Loop

Do Until myNum = 10

MsgBox "The loop made " & counter & " repetitions."
End Sub

4 DO UNTIL

DO

LOOP UNTIL



8.17

Sub ChkLastUntil()
counter = 0

myNum = 1
Do

myNum = myNum + 1
counter = counter + 1
Loop Until myNum = 10
MsgBox "The loop made " & counter & " repetitions."
End Sub

Exit Do Do

298 8
If...Then...Else Select Case True Exit Do
False
8.18 myNum
If...Then...Else

Sub ExitExample()

counter = 0
myNum = 9
Do Until myNum = 10

myNum = myNum - 1
counter = counter + 1
If myNum < 10 Then Exit Do

Loop

MsgBox "The loop made " & counter & " repetitions."
End Sub

FOR

to

[STEP ]

2 For DO
FOR DO FOR
FOR

NEXT []

FOR



1
8.19 50 For x
Next 1

Sub Beeps()

For x = 1 To 50
Beep

Next x

End Sub

Step
8.20 j 2
total 2 4 6 8 10

Sub TwosTotal()

8 299
For j = 2 To 10 Step 2
total = total + j
Next j
MsgBox "The total is " & total
End Sub

Step

8.21 myNum 2
total 16 14 12 10 8 6 4 2

Sub NewTotal()
For myNum = 16 To 2 Step -2

Next myNum
MsgBox "The total is " & total

End Sub

total = total + myNum

Next

8.3.4

Exit For For...Next


If...Then...Else Select Case True Exit
For If...Then...Else
False

VBA

VBA Sub Function

1.

Sub ()

End Sub

300 8
Sub End Sub

8.22

Sub

Computer(a as integer,b as integer)

Dim intc1 ,intc2 as integer

Intc1=a+b
Intc2=a-b
Msgbox(intc1)

Msgboc(intc2)
End Sub

Sub Sub
8.23

Sub GetInfo()

Dim answer As String


' InputBox

answer

answer = InputBox(Prompt:="What is your name?")


If answer = Empty Then

MsgBox Prompt:="You did not enter a name."


Else

MsgBox Prompt:="Your name is " & answer

End Sub

End If

8.24

Sub openformcmd_Click()
Docmd.Openform

main

End Sub

Access 2000



CALL CALL

x=213
y=111
Call

Computer(x,y)

8 301

x=213
y=111
Computer

x,y

2.

()

Function

[]
End Function

Function Celeius(degrees

as Single)

Celeius=( Celeius-32)*5/9
End Function



8.25

Temp= Celeius(60)
CALL VBA
8.26 msgbox 3

Answer3 = MsgBox("Are you happy with your salary?", 4, "Question 3")

MsgBox "Task Completed!", 0, "Task Box"

CALL

MsgBox

"Task Completed!", 0, "Task Box"

3.

1 MsgBox Integer

1 MsgBox(prompt[, buttons] [, title] [, helpfile,
context])

302 8
MsgBox 8-9
8-9 MsgBox

Prompt

Buttons


buttons 0

Title

title

Helpfile


helpfile context

Context


context helpfile

buttons 8-10
8-10

OK

VbOKCancel

OK Cancel

VbAbortRetryIgnore

Abort

VbYesNoCancel

Yes No Cancel

Yes No

Retry Cancel

VbCritical

16

Critical Message

VbQuestion

32

Warning Query

VbExclamation

48

Warning Message

VbInformation

64

Information Message

VbRetryCancel

VbOKOnly

VbYesNo

buttons

Retry Ignore

MsgBox 8-11
8-11 MsgBox

vbOK

OK

vbCancel

Cancel

vbAbort

Abort

vbRetry

Retry

vbIgnore

Ignore

vbYes

Yes

vbNo

No

8 303
8.27 MsgBox
MsgBox
DEMO.HLP 1000

Sub Display()

Msg = Do you want to continue ?

Style = vbYesNo + vbCritical + vbDefaultButton2

Ctxt = 1000

Help = DEMO.HLP

Title = MsgBox Demonstration

Dim Msg, Style, Title, Help, Ctxt, Response, MyString As string

Response = MsgBox(Msg, Style, Title, Help, Ctxt)

CALL
Else

D1()

If Response = vbYes Then



NOD1()

CALL
End If
End Sub

2 InputBox
String InputBox
InputBox(prompt[, title] [, default] [, xpos] [, ypos] [, helpfile,
context])

InputBox 8-12
8-12

Prompt

Title

Default

Xpos

Ypos

Helpfile


helpfile context

Context


context helpfile

InputBox

OK Enter InputBox
Cancel
8.28 InputBox

304 8
x y
Enter Value

Dim Message, Title, Default, Value


Message = Enter a value between 1 and 3

Default = 1

Title = InputBox Demo

Value = InputBox(Message, Title, Default)

Value = InputBox(Message, Title, , , , DEMO.HLP, 10)

Value = InputBox(Message, Title, Default, 100, 100) 100, 100

InputBox 8-18

A=inputbox(,)

8-18

InputBox

A 98

8.4 Visual Basic

Office 2000 Visual Basic Visual Basic





Visual Basic 8-19

8-19

Visual Basic

8 305
4


Visual Basic

8.4.1

Visual Basic


1
2
F7
/ 8-20

8-20

1.


/

/

306 8
Public
Dim Static Private

2. /

Visual Basic




3.

4.
8.4.2

Visual Basic

VB
Ctrl + R

8-21

8-21

8 307


Access 2000

3

z

z Access 2000
8-22
z
8-23

8-22

8-23

308 8

8.4.3

8-24





8-24 8-24


Ctrl + G 8-25

8-25

1
2

3
4
5
Enter


8 309

8.2

8.3

8.4

8.5

8.6

8.1

8.8

8.9

MSGBOXINPUTBOX

8.11

8.12

8.2.18.1

8.13

8.10

8.7

8.2.18.2

8.2.3

9.1

01

02

03

04

9-2

ID

9-1

9-2

ID

2
2

1
2

1
1

1 3
2
1 9-1

a1@info.inte.net.cn

61234567

a2@info.inte.net.cn

62345678

a3@info.inte.net.cn

63031011

b1@info.inte.net.cn

67890123

b2@info.inte.net.cn

84051212

b2@info.inte.net.cn

83331122

b3@info.inte.net.cn

311

88481234


ID

1
2
1
2



1
2
1
/ 2
1
2

ID

2001-7-15 18

2001-7-2

ID

9-3

2001-5-25 15

2001-6-10 16

3
4

2001-6-1

18

15
15
12

1
2
4
1
2
3 1
5

6

7
8

9.2

.mdb 3
1 ID
9-1 ID
2 ID
1

312 9

9-1

9-2

9-2 ID

9-4

ID

9-3


ID
ID
3




ID + ID

ID 9-3
ID ID select * from

9-4

5 3
2
1 9-5

9-5

2 2000 85%

9
3

9-6

313

9-6

9-7

3 +
9-7

1 1 9-8 9-9

9-8

9-9

2 9-10

9-10

314 9

9.3
.mdb book sale
1 book ID
9-11 ID

9-11

book

2 sale ID
9-12 ID

sale

9-12

3 ID
2
1 9-13

9-13

2 9-14

9-14

3
4 9-15 2001

9-15

315

ID

2001

9-16

1 1 9-17

3 1
9-16

9-17

2 3 2
9-18
3 9-19 4
2

1

1

9-18

9-19


1
C

1.5

1.6

1.7

1.8

1.9

2
D

2.24

2.9

2.17

2.10
A

2.25

2.18

2.11
D

2.26

2.19
D

2.27

2.21

3.22

3.7

3.15

3.8

3.23

3.16

3.9
A

3.24

3.10

3.17
A

3.25

(SELECT FROM WHERE ="")


3.32

3.11

2.22

3.19

3.29

3.33

2.15

2.23

2.32

3.12
3.20

2.33

3.13

3.21

3.30
3.34 2013 2003

3.35

3.31

2.14

3.28 UPDATE SET =+10 WHERE IN

3.26 3.27 SQL

3.18

2.34 date() 2.35 2.36 2.37 OLE

3.14

2.13

2.31

3
3.6

2.20
B

2.28 2.29 2.30

2.12

2.8
2.16

1.4

4.4

4.5

4.3

4.6

4.7

4.8

4.9 4.10

5.5

4.13 4.14 4.15

5.6

5.7

4.11

5
5.8

5.9

5.10

6.7

6.8

6.9

6.10

7.5

7.6

7.7

7.8

6.11

7
C

7.9

5.11

4.12 !

You might also like