-

   rss_sql_ru_access_programming

 - e-mail

 

 -

 LiveInternet.ru:
: 16.03.2006
:
:
: 4

:


, 31 2014 . 18:19 +
. . , , , . ׸! . - , - . , .

, :
1)
2)
3)

:
+
Private Sub 37_Click()
On Error GoTo er1
If Me!spisok1 = 0 Then
MsgBox " !"
Exit Sub
End If
If Me!sgg = 0 Then
MsgBox " !"
Me!sgg.SetFocus
Exit Sub
End If
If Me!sg = 0 Then
MsgBox " !"
Me!sg.SetFocus
Exit Sub
End If
If Me!sa = 0 Then
MsgBox " !"
Me!sa.SetFocus
Exit Sub
End If
If Me!l = 0 Then
MsgBox " !"
Me!l.SetFocus
Exit Sub
End If

Dim stDocName As String
stDocName = "gen_store"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Me!spisok2.Requery
Me!spisok2 = 0
Me!stoim2.Requery
Me!stoim2 = Me!stoim2.ItemData(0)
Me!ss1 = Me!stoim2.Column(1)
Me!ss2 = Me!stoim2.Column(2)
stDocName = "obr_mod2"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Me!stoim2.Requery
Me!stoim2 = Me!stoim2.ItemData(0)
Me!ss1 = Me!stoim2.Column(1)
Me!ss2 = Me!stoim2.Column(2)
MsgBox "! !"

Exit Sub

er1:
MsgBox " !"

End Sub


, . gen_store

+
INSERT INTO _ ( _, _, _, _, ___ )
SELECT Forms!Address!spisok1 AS 1, Forms!Address!sg AS 2, Forms!Address!sa AS 3, Forms!Address!l AS 4, rest_prim(Forms!Address!pr) AS 5;


obr_mod2, .
+
UPDATE SET . = CDbl(Forms!Address!ss1)+CDbl(Forms!Address!ss2)
WHERE (((._)=[Forms]![Address]![spisok1]));



.

+
http://firepic.org/images/2014-07/31/hmdg1324ervt.png


, .

, !

http://www.sql.ru/forum/1108356/pomogite-nayti-oshibku-posle-izmeneniya-struktury-tablic-v-baze


: [1] []
 

:
: 

: ( )

:

  URL