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

📄 技术人才信息删除.frm

📁 本程序是用Visual Basic来建立数据库管理系统的经典例程。
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Alignment       =   2
            AutoSize        =   1
            Object.Width           =   4763
            Picture         =   "技术人才信息删除.frx":2D68
         EndProperty
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Label Label10 
      Caption         =   "请输入姓名:"
      Height          =   315
      Left            =   1800
      TabIndex        =   35
      Top             =   7260
      Width           =   1335
   End
   Begin VB.Label Label9 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "曾获何种奖励:"
      Height          =   210
      Left            =   360
      TabIndex        =   25
      Top             =   3480
      Width           =   1470
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "主要技术特长:"
      Height          =   210
      Left            =   360
      TabIndex        =   23
      Top             =   2805
      Width           =   1470
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "姓    名:"
      Height          =   210
      Left            =   360
      TabIndex        =   22
      Top             =   780
      Width           =   1050
   End
   Begin VB.Label Label23 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "技术人才信息删除"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   24
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   480
      Left            =   3930
      TabIndex        =   21
      Top             =   -30
      Width           =   3930
   End
   Begin VB.Label Label33 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "号"
      Height          =   210
      Left            =   8580
      TabIndex        =   20
      Top             =   2130
      Width           =   210
   End
   Begin VB.Label Label32 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "街(路)"
      Height          =   210
      Left            =   6720
      TabIndex        =   18
      Top             =   2130
      Width           =   840
   End
   Begin VB.Label Label31 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "区(镇)"
      Height          =   210
      Left            =   4710
      TabIndex        =   16
      Top             =   2130
      Width           =   840
   End
   Begin VB.Label Label30 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "市(县)"
      Height          =   210
      Left            =   2580
      TabIndex        =   14
      Top             =   2130
      Width           =   840
   End
   Begin VB.Label Label7 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "出生日期:"
      Height          =   210
      Left            =   4800
      TabIndex        =   13
      Top             =   780
      Width           =   1050
   End
   Begin VB.Label lable25 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "年"
      Height          =   210
      Left            =   7260
      TabIndex        =   12
      Top             =   780
      Width           =   210
   End
   Begin VB.Label Label25 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "月"
      Height          =   210
      Left            =   8460
      TabIndex        =   11
      Top             =   780
      Width           =   210
   End
   Begin VB.Label Label26 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "日"
      Height          =   210
      Left            =   9480
      TabIndex        =   10
      Top             =   780
      Width           =   210
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FFFFFF&
      BorderWidth     =   2
      X1              =   0
      X2              =   1027
      Y1              =   36
      Y2              =   36
   End
   Begin VB.Label Label8 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "政治面貌:"
      Height          =   210
      Left            =   3930
      TabIndex        =   4
      Top             =   1455
      Width           =   1050
   End
   Begin VB.Label Label6 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "技术职称:"
      Height          =   210
      Left            =   7500
      TabIndex        =   3
      Top             =   1455
      Width           =   1050
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "通讯地址:"
      Height          =   210
      Left            =   360
      TabIndex        =   2
      Top             =   2130
      Width           =   1050
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "文化程度:"
      Height          =   210
      Left            =   360
      TabIndex        =   1
      Top             =   1455
      Width           =   1050
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "性别:"
      Height          =   210
      Left            =   2790
      TabIndex        =   0
      Top             =   780
      Width           =   630
   End
End
Attribute VB_Name = "技术人才信息删除"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Cxs As String, Result As Integer, Tx As String
Private Sub Form_Load()
Dim A As String, B As Integer
On Error GoTo A1
    A = Me.hwnd
    B = 0
    Disabled A, B
Data1.DatabaseName = App.Path + "\" + "人才库.mdb"
Data1.Refresh
Data1.Recordset.MoveLast
Data1.Recordset.MoveFirst
 StatusBar1.Panels(1).Text = "记录总数: " & Data1.Recordset.RecordCount
 StatusBar1.Panels(2).Text = "当前记录: " & 1
 StatusBar1.Panels(3).Text = "今天日期: " & Format(Date, "yyyy 年 m 月 d 日")
 StatusBar1.Panels(4).Text = "当前时间: " & Time
 Tx = "姓名"
Exit Sub
A1:
 Command1.Enabled = False
 Command2.Enabled = False
 Command3.Enabled = False
 MsgBox "数据库中没有记录,请输入数据 !"
 Unload 技术人才信息删除
 Load 技术人才主菜单
 技术人才主菜单.Show
End Sub
Private Sub Command1_Click()
    Cxs = "[" + Tx + "]" + "Like" + "'" + Text17 + "*" + "'"
    Data1.Recordset.FindFirst Cxs
    If Text17 = "" Then
     MsgBox " 请输入姓名  ! ", vbExclamation
          Text17 = ""
          Text17.SetFocus
    Exit Sub
    End If
    If Data1.Recordset.NoMatch Then
       Result = MsgBox("查无此人,是否查找其他记录 ?", vbOKCancel + vbQuestion)
          If Result = 1 Then
          Text17.Text = ""
          Text17.SetFocus
          Exit Sub
          Else
            Data1.Recordset.Close
            Unload Me
            管理人才主菜单.Show
         End If
         Else
    StatusBar1.Panels(2).Text = "当前记录: " & Data1.Recordset.AbsolutePosition + 1
   End If
End Sub
Private Sub Command2_Click()
On Error GoTo A1
If Text17 = "" Then
   MsgBox "   请先输入姓名   ! ", vbExclamation
   Text17.SetFocus
   Exit Sub
End If
 Cxs = "[" + Tx + "]" + "Like" + "'" + Text17 + "*" + "'"
 Data1.Recordset.FindNext Cxs
    If Data1.Recordset.NoMatch Then
       Result = MsgBox(" 没有符合条件的记录,是否查找其他记录 ?", vbOKCancel + vbQuestion)
          If Result = 1 Then
          Text17.Text = ""
          Text17.SetFocus
          Exit Sub
          Else
            Data1.Recordset.Close
            Unload Me
            技术人才主菜单.Show
         End If
         Else
     StatusBar1.Panels(2).Text = "当前记录: " & Data1.Recordset.AbsolutePosition + 1
    End If
    Exit Sub
A1:
   MsgBox "   请先输入查询条件   ! ", vbExclamation
   Text17.SetFocus
End Sub
Private Sub Command3_Click()
Data1.Recordset.Delete
Data1.Refresh
       Result = MsgBox("  是否删除其他记录 ? ", vbOKCancel + vbQuestion)
        If Result = 1 Then
          Text17 = ""
          Text17.SetFocus
          Else
        Unload Me
        技术人才主菜单.Show
       End If
End Sub
Private Sub Command4_Click()
Unload Me
技术人才主菜单.Show
End Sub
Private Sub Timer1_Timer()
 StatusBar1.Panels(4).Text = "当前时间: " & Time
End Sub

⌨️ 快捷键说明

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