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

📄 frm_sys_deleteuser.frm

📁 中学教务管理系统是基于河南大学附属中学的教务管理条件所涉及
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frm_sys_deleteuser 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "中学教务管理系统——V1.0(删除用户)"
   ClientHeight    =   2025
   ClientLeft      =   2010
   ClientTop       =   2925
   ClientWidth     =   6165
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   2025
   ScaleWidth      =   6165
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton Command1 
      Caption         =   "确  定"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   240
      TabIndex        =   2
      Top             =   1200
      Width           =   1695
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取  消"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4080
      TabIndex        =   1
      Top             =   1200
      Width           =   1695
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   405
      Left            =   3360
      TabIndex        =   0
      Top             =   360
      Width           =   2415
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "输入要删除的用户名:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   285
      Left            =   240
      TabIndex        =   3
      Top             =   480
      Width           =   3150
   End
End
Attribute VB_Name = "frm_sys_deleteuser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = Trim("administrator") Then
   MsgBox "这是我们的特定的管理员帐户,不允许删除!", 0 + 64 + 0 + 0, "系统提示信息"
   Text1.Text = ""
Else
Set db = OpenDatabase(App.Path + "\db\teaching_manage.mdb")
Set rs = db.OpenRecordset("select id from users_info where id='" & Text1.Text & "'")
If rs.EOF Or rs.BOF Then
   MsgBox "没有此用户,请检查是否输入正确!", 0 + 64 + 0 + 0, "系统提示信息"
   Text1.Text = ""
   Text1.SetFocus
   rs.Close
Else
  Action = MsgBox("确定要删除此用户吗?", 1 + 32 + 0 + 0, "系统提示信息")
  If Action = vbOK Then
  sql = "delete from users_info where id='" & Text1.Text & "'"
  db.Execute sql
  db.Close
  Text1.Text = ""
  End If
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Activate()
Text1.SetFocus
End Sub

Private Sub Form_Load()
Me.Left = 0
Me.Top = 0
Text1.Text = ""
Me.Picture = LoadPicture(App.Path + "\pictures\flower.jpg")
End Sub

⌨️ 快捷键说明

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