📄 delmange.frm
字号:
VERSION 5.00
Begin VB.Form delmange
Caption = "删除管理员"
ClientHeight = 2145
ClientLeft = 7965
ClientTop = 5400
ClientWidth = 3840
LinkTopic = "Form1"
ScaleHeight = 2145
ScaleWidth = 3840
Begin VB.Frame Frame1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
ForeColor = &H00E0E0E0&
Height = 2145
Left = 0
TabIndex = 0
Top = 0
Width = 3855
Begin VB.TextBox Text2
Height = 330
Left = 1155
TabIndex = 5
Text = "Text2"
Top = 840
Width = 1380
End
Begin VB.CommandButton Command2
Caption = "查找"
Height = 330
Left = 2625
TabIndex = 4
Top = 315
Width = 540
End
Begin VB.TextBox Text1
Height = 330
Left = 1155
TabIndex = 2
Text = "Text1"
Top = 315
Width = 1380
End
Begin VB.CommandButton Command1
Caption = "删除"
Height = 435
Left = 1365
TabIndex = 1
Top = 1365
Width = 1275
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "用户名"
Height = 180
Left = 315
TabIndex = 3
Top = 945
Width = 540
End
End
End
Attribute VB_Name = "delmange"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If rst.EOF = True And rst.BOF = True Then
MsgBox "没有数据!"
Else
rst.Delete
rst.MoveNext
If rst.BOF Or rst.EOF Then
MsgBox "没有数据"
Call txtCls
End If
Unload Me
End If
End Sub
Private Sub Command2_Click()
Dim strF1 As String
strF1 = "select * from yh where userid like '%" & Text1.Text & "%'"
If QueryData(strF1) Then
Text2.Text = rst.Fields("userid").Value
End If
End Sub
Private Sub Form_Load()
txtCls
End Sub
Private Sub txtCls()
Text1.Text = ""
Text2.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -