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

:

: 4-03
: . .

2006

3
4
.. 7
..9
...10
..14
15
.16
17

.

, ,
(, , ..), ,
, .
( ),
,
, , ,
.
Microsoft
Access 2003.

:
:
1. :
a.
b.
c.
d.
e.

a.
b.
c.
d.
e.

2. :

3. :
a.
b.

4. :
a.
b.
5. :
a.
b.
6. :
a.
b.

7. :
a.
b.

8. :
a.
b.
9. :
a.
b.
10. :
a.
b.

11. :
a.
b.

12. :
a.

b.

c.

d.

e.
f.

g.

h.

i.

j.

k.

l.

m.

n.

o.

p. -
q.
-
5

:

.
:
















-

-



1.
. :


Between [forms]![_]![date1] And [forms]![_]![date2]
= .
2.
1. :

= .
(/100)*.
7

3. _.
:

Like ('*'+[forms]![]![adres]+'*'),
Adres .
4. .
:

Like ('*'+[forms]![]![fio]+'*'),
Fio .

5. _.
:


Between [forms]![]![cst1] And [forms]![]![cst2]
cst1 cst2

.
. Windows 952000,WinXP MS Office Access-2000, MS Office Access-2000, MS
Office Access-2003.

( ),
, .

.

:

:

.
10

**
.
**, :

, (
) * * .
* * :

11


**.
** ,
.

12

* * ,
.

* * .
.

13

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



.

.
,
.
, ,
**,
.

.
.
,
.

14



.

, , ,.
,
, .

.

,

.

15


1. ..
2. Microsoft Access 2003

16


Private Sub 0_Click()
On Error GoTo Err_0_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = ChrW(1055) & ChrW(1086) & ChrW(95) & ChrW(1044) & ChrW(1072) & ChrW(1090)
& ChrW(1077)
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_0_Click:
Exit Sub
Err_0_Click:
MsgBox Err.Description
Resume Exit_0_Click
End Sub
--------------------------------------------------------------------------------Private Sub 1_Click()
On Error GoTo Err_1_Click
Dim stDocName As String
stDocName = ChrW(1053) & ChrW(1077) & ChrW(1076) & ChrW(1074) & ChrW(1080) &
ChrW(1078) & ChrW(1080) & ChrW(1084) & ChrW(1086) & ChrW(1089) & ChrW(1090) & ChrW(1100)
DoCmd.OpenReport stDocName, acPreview
Exit_1_Click:
Exit Sub
Err_1_Click:
MsgBox Err.Description
Resume Exit_1_Click
End Sub
-------------------------------------------------------------------------------------Private Sub 2_Click()
On Error GoTo Err_2_Click
Dim stDocName As String
stDocName = ChrW(1054) & ChrW(1090) & ChrW(1095) & ChrW(1077) & ChrW(1090) & ChrW(49)
DoCmd.OpenReport stDocName, acPreview
Exit_2_Click:
Exit Sub
Err_2_Click:
MsgBox Err.Description
Resume Exit_2_Click
End Sub
-----------------------------------------------------------------------------------------

17

Private Sub 3_Click()


On Error GoTo Err_3_Click
DoCmd.Close
Exit_3_Click:
Exit Sub
Err_3_Click:
MsgBox Err.Description
Resume Exit_3_Click
End Sub
---------------------------------------------------------------------------------Private Sub __LostFocus()
If prdate(prod) < prdate(post) Then
MsgBox (" !!!!"): Exit Sub
End If
End Sub
--------------------------------------------------------------------------------Private Sub Form_Activate()
post = Date
End Sub
------------------------------------------------------------------------------------Private Sub 36_Click()
On Error GoTo Err_36_Click
If CDate(prod) < CDate(post) Then
MsgBox (" !!!!")
Exit Sub
End If
I
f (_ = 2) Then
MsgBox (" -* *-")
Exit Sub
End If
DoCmd.GoToRecord , , acNewRec
Exit_36_Click:
Exit Sub
Err_36_Click:
MsgBox Err.Description
Resume Exit_36_Click
End Sub
-----------------------------------------------------------------------------------

18

Private Sub 37_Click()


On Error GoTo Err_37_Click
If CDate(prod) < CDate(post) Then
MsgBox (" !!!!")
Exit Sub
End If
If (_ = 2) Then
MsgBox (" -* *-")
Exit Sub
End If
DoCmd.Close
Exit_37_Click:
Exit Sub
Err_37_Click:
MsgBox Err.Description
Resume Exit_37_Click
End Sub
---------------------------------------------------------------------------------Private Sub 38_Click()
On Error GoTo Err_38_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = ChrW(1050) & ChrW(1083) & ChrW(1080) & ChrW(1077) & ChrW(1085) &
ChrW(1090) & ChrW(49)
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_38_Click:
Exit Sub
Err_38_Click:
MsgBox Err.Description
Resume Exit_38_Click
End Sub
-----------------------------------------------------------------------------------------

19

Оценить