📄 jmpa_bmedit.frm
字号:
VERSION 5.00
Begin VB.Form Form13
BorderStyle = 3 'Fixed Dialog
Caption = "部门修改"
ClientHeight = 2190
ClientLeft = 45
ClientTop = 450
ClientWidth = 3690
Icon = "JmPa_bmEdit.frx":0000
LinkTopic = "Form13"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2190
ScaleWidth = 3690
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "取 消"
Height = 495
Left = 2280
TabIndex = 5
Top = 1560
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确 认"
Height = 495
Left = 600
TabIndex = 4
Top = 1560
Width = 975
End
Begin VB.TextBox Text2
Height = 375
Left = 1200
TabIndex = 3
Text = "Text2"
Top = 840
Width = 2295
End
Begin VB.TextBox Text1
Height = 375
Left = 1200
TabIndex = 1
Text = "Text1"
Top = 240
Width = 2295
End
Begin VB.Label Label2
Caption = "部门名称:"
Height = 255
Left = 120
TabIndex = 2
Top = 840
Width = 975
End
Begin VB.Label Label1
Caption = "部门编号:"
Height = 255
Left = 120
TabIndex = 0
Top = 240
Width = 975
End
End
Attribute VB_Name = "Form13"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'确认
Set conn_bmupdate = CreateObject("adodb.connection")
conn_bmupdate.Open connstring
If Trim(Text2.Text) <> "" Then
Set rs_bmupdate = conn_bmupdate.Execute("update Pa_bm set fbmname=" & "'" & Trim(Text2.Text) & "'" & " where fid=" & "'" & Trim(Text1.Text) & "'")
End If
conn_bmupdate.Close
Call Form12.fload_bm
Unload Me
End Sub
Private Sub Command2_Click()
'取消
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -