📄 删除管理员表.frm
字号:
VERSION 5.00
Begin VB.Form Form19
Caption = "Form19"
ClientHeight = 4080
ClientLeft = 60
ClientTop = 405
ClientWidth = 5520
LinkTopic = "Form19"
ScaleHeight = 4080
ScaleWidth = 5520
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
Caption = "操作"
Height = 3975
Left = 120
TabIndex = 0
Top = 0
Width = 5295
Begin VB.CommandButton Command2
Caption = "返 回"
Height = 615
Left = 3120
TabIndex = 2
Top = 1440
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "删 除"
Height = 615
Left = 600
TabIndex = 1
Top = 1440
Width = 1335
End
End
End
Attribute VB_Name = "Form19"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim strDelete As String
Dim strNo As String
strNo = InputBox("请输入你要删除的管理员号", 提示!)
If Trim(strNo) = "" Then Exit Sub
strDelete = "delete from 管理员表 where 管理员表.管理员号='" & Trim(strNo) & "' "
mycon.BeginTrans
mycon.Execute (strDelete)
a = MsgBox("删除物资表中记录会删除相关的管理员情况信息" & Chr(13) & "确定吗?", vbInformation, "提示!")
If a = vbOK Then
mycon.CommitTrans
MsgBox "删除成功"
Else
mycon.RollbackTrans
MsgBox "删除被撤销!", vbExclamation, "提示!"
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -