📄 部门信息修改.frm
字号:
VERSION 5.00
Begin VB.Form Form13
Caption = "Form13"
ClientHeight = 3840
ClientLeft = 60
ClientTop = 420
ClientWidth = 5415
LinkTopic = "Form13"
ScaleHeight = 3840
ScaleWidth = 5415
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "部门信息"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2175
Left = 240
TabIndex = 3
Top = 120
Width = 4935
Begin VB.TextBox Text1
Height = 390
Left = 1080
TabIndex = 7
Top = 360
Width = 975
End
Begin VB.TextBox Text2
Height = 375
Left = 3480
TabIndex = 6
Top = 360
Width = 1095
End
Begin VB.TextBox Text3
Height = 375
Left = 1320
TabIndex = 5
Top = 960
Width = 2295
End
Begin VB.TextBox Text4
Height = 375
Left = 1440
TabIndex = 4
Top = 1560
Width = 2535
End
Begin VB.Label Label1
Caption = "部门号"
Height = 255
Left = 240
TabIndex = 11
Top = 480
Width = 615
End
Begin VB.Label Label2
Caption = "部门名称"
Height = 255
Left = 2400
TabIndex = 10
Top = 480
Width = 855
End
Begin VB.Label Label3
Caption = "部门电话"
Height = 255
Left = 240
TabIndex = 9
Top = 1080
Width = 855
End
Begin VB.Label Label4
Caption = "部门办公处"
Height = 255
Left = 240
TabIndex = 8
Top = 1680
Width = 975
End
End
Begin VB.Frame Frame2
Caption = "操 作"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1095
Left = 840
TabIndex = 0
Top = 2520
Width = 3735
Begin VB.CommandButton Command1
Caption = "修改部门信息"
Height = 375
Left = 480
TabIndex = 2
Top = 360
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "取 消"
Height = 375
Left = 2280
TabIndex = 1
Top = 360
Width = 975
End
End
End
Attribute VB_Name = "Form13"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim rst As New ADODB.Recordset '定义Recordset对象
Dim strSql As String
Private Sub Command1_Click()
If rst.State = adStateOpen Then
rst.Close
End If
strSql = "update bmxx set bmxx.部门名称='" & Text2.Text & "',bmxx.部门电话='" & Text3.Text & "',bmxx.部门办公处='" & Text4.Text & "' where 部门号='" & Text1.Text & "'"
rst.Open strSql, cnn, 1, 1
MsgBox "成功修改部门信息!", vbInformation + vbOKOnly + vbApplicationModal, "提示"
Call Form6.Info
Form6.Show
Unload Me
End Sub
Private Sub Command2_Click()
Unload Me
Form6.Show
End Sub
Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -