⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmdelete.frm

📁 通讯录
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmDelete 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "删除通讯信息"
   ClientHeight    =   1530
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4590
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   14.25
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmDelete.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   1530
   ScaleWidth      =   4590
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton cmdBack 
      Caption         =   "返回(&B)"
      Height          =   495
      Left            =   3000
      TabIndex        =   2
      Top             =   960
      Width           =   1335
   End
   Begin VB.CommandButton cmdDelete 
      Caption         =   "删除(&D)"
      Height          =   495
      Left            =   1320
      TabIndex        =   1
      Top             =   960
      Width           =   1335
   End
   Begin VB.TextBox txtID 
      BackColor       =   &H8000000E&
      Height          =   405
      Left            =   2520
      MaxLength       =   30
      TabIndex        =   0
      Top             =   240
      Width           =   1695
   End
   Begin VB.Label Label7 
      AutoSize        =   -1  'True
      Caption         =   "请输入用户编号:"
      Height          =   285
      Left            =   240
      TabIndex        =   3
      Top             =   360
      Width           =   2280
   End
End
Attribute VB_Name = "frmDelete"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdBack_Click()
Unload frmDelete
End Sub

Private Sub cmdDelete_Click()
Dim strID$
strID = Trim(txtID.Text)
strID = Format(Val(strID))
If strID = "" Then
    MsgBox "请输入用户编号!", 48, "删除"
    Exit Sub
End If
strSQL = "select * from person where pid=" + strID
Set RS = conn.Execute(strSQL)
If RS.EOF Then
   MsgBox "无此人信息!", 48, "删除"
   RS.Close
   Exit Sub
End If
strSQL = "delete from person where pid=" + strID
conn.Execute strSQL
MsgBox "删除成功!", 64, "删除"
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -