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

📄 工资修改.frm

📁 利用VB对公司人事管理系统的部分功能的描述
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 工资修改 
   Caption         =   "Form4"
   ClientHeight    =   3135
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4890
   LinkTopic       =   "Form4"
   ScaleHeight     =   3135
   ScaleWidth      =   4890
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Enabled         =   0   'False
      Height          =   375
      Left            =   1080
      TabIndex        =   0
      Top             =   360
      Width           =   1095
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   3360
      TabIndex        =   6
      Top             =   360
      Width           =   1215
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   1080
      TabIndex        =   5
      Top             =   1080
      Width           =   1335
   End
   Begin VB.TextBox Text4 
      Height          =   375
      Left            =   3360
      TabIndex        =   4
      Top             =   1080
      Width           =   1215
   End
   Begin VB.TextBox Text5 
      Height          =   375
      Left            =   1080
      TabIndex        =   3
      Top             =   1680
      Width           =   1695
   End
   Begin VB.CommandButton Command1 
      Caption         =   "修 改"
      Height          =   375
      Left            =   1200
      TabIndex        =   2
      Top             =   2520
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取 消"
      Height          =   375
      Left            =   3000
      TabIndex        =   1
      Top             =   2520
      Width           =   855
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "编号"
      Height          =   180
      Left            =   360
      TabIndex        =   11
      Top             =   480
      Width           =   360
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "职工号"
      Height          =   180
      Left            =   2520
      TabIndex        =   10
      Top             =   480
      Width           =   540
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "部门号"
      Height          =   180
      Left            =   360
      TabIndex        =   9
      Top             =   1200
      Width           =   540
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "月份"
      Height          =   180
      Left            =   2640
      TabIndex        =   8
      Top             =   1200
      Width           =   360
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      Caption         =   "金额"
      Height          =   180
      Left            =   360
      TabIndex        =   7
      Top             =   1800
      Width           =   360
   End
End
Attribute VB_Name = "工资修改"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim rst As New ADODB.Recordset '定义Recordset对象
Dim strSql As String

Private Sub Command1_Click()
If rst.State = adStateOpen Then
       rst.Close
    End If
    strSql = "update gzxx set gzxx.职工号='" & Text2.Text & "',gzxx.部门号='" & Text3.Text & "',gzxx.月份='" & Text4.Text & "',gzxx.金额='" & Text5.Text & "'where 编号='" & Text1.Text & "'"
    rst.Open strSql, cnn, 1, 1
    MsgBox "成功修改工资信息!", vbInformation + vbOKOnly + vbApplicationModal, "提示"
    Call Form7.Info
    Form7.Show
    Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
Form7.Show
End Sub

⌨️ 快捷键说明

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