📄 form11.frm
字号:
VERSION 5.00
Begin VB.Form Form10
Caption = "班级约束"
ClientHeight = 3240
ClientLeft = 60
ClientTop = 450
ClientWidth = 4605
LinkTopic = "Form10"
ScaleHeight = 3240
ScaleWidth = 4605
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text4
Height = 375
Left = 2280
TabIndex = 7
Text = "1"
Top = 2160
Width = 1215
End
Begin VB.TextBox Text1
DataField = "事件"
DataSource = "Adodc1"
Height = 375
Left = 2280
TabIndex = 3
Text = "不排课"
Top = 120
Width = 1215
End
Begin VB.TextBox Text2
Height = 375
Left = 2280
TabIndex = 2
Text = "星期五"
Top = 840
Width = 1215
End
Begin VB.TextBox Text3
Height = 375
Left = 2280
TabIndex = 1
Text = "5"
Top = 1560
Width = 1215
End
Begin VB.CommandButton Command8
Caption = "启用约束"
Height = 375
Left = 360
TabIndex = 0
Top = 2760
Width = 1575
End
Begin VB.Label Label4
Caption = "班级"
Height = 255
Left = 480
TabIndex = 8
Top = 2280
Width = 1215
End
Begin VB.Label Label1
Caption = "事件"
Height = 255
Left = 480
TabIndex = 6
Top = 240
Width = 1215
End
Begin VB.Label Label2
Caption = "时间"
Height = 255
Left = 480
TabIndex = 5
Top = 960
Width = 1215
End
Begin VB.Label Label3
Caption = "节数"
Height = 255
Left = 480
TabIndex = 4
Top = 1680
Width = 1215
End
End
Attribute VB_Name = "Form10"
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
bj = Text4.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 + " and bj=" + bj + " ;", mycn, adOpenKeyset, adLockOptimistic
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -