📄 form10.frm
字号:
VERSION 5.00
Begin VB.Form Form9
Caption = "校极约束"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form9"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command8
Caption = "启用约束"
Height = 375
Left = 480
TabIndex = 6
Top = 2520
Width = 1575
End
Begin VB.TextBox Text3
Height = 375
Left = 2400
TabIndex = 2
Text = "5"
Top = 1680
Width = 1215
End
Begin VB.TextBox Text2
Height = 375
Left = 2400
TabIndex = 1
Text = "星期一"
Top = 960
Width = 1215
End
Begin VB.TextBox Text1
DataField = "事件"
DataSource = "Adodc1"
Height = 375
Left = 2400
TabIndex = 0
Text = "班会"
Top = 240
Width = 1215
End
Begin VB.Label Label3
Caption = "节数"
Height = 255
Left = 600
TabIndex = 5
Top = 1800
Width = 1215
End
Begin VB.Label Label2
Caption = "时间"
Height = 255
Left = 600
TabIndex = 4
Top = 1080
Width = 1215
End
Begin VB.Label Label1
Caption = "事件"
Height = 255
Left = 600
TabIndex = 3
Top = 360
Width = 1215
End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command8_Click()
sj = Text1.Text
times = Text2.Text
js = Text3.Text
Dim mycn As New ADODB.Connection
Dim myrs As New ADODB.Recordset
Set myrs = New ADODB.Recordset
mycn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=rsgl.mdb;"
myrs.Open "update tables2 set " + times + "='" + sj + "'where js=" + js + " ;", mycn, adOpenKeyset, adLockOptimistic
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -