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

📄 jmpa_itemedit.frm

📁 一个vb做的工资管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form4 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "工资项目修改"
   ClientHeight    =   2280
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4020
   Icon            =   "JmPa_itemEdit.frx":0000
   LinkTopic       =   "Form4"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2280
   ScaleWidth      =   4020
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取  消"
      Height          =   495
      Left            =   2400
      TabIndex        =   7
      Top             =   1680
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确  认"
      Height          =   495
      Left            =   600
      TabIndex        =   6
      Top             =   1680
      Width           =   975
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   1560
      TabIndex        =   5
      Text            =   "Text3"
      Top             =   1080
      Width           =   2295
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   1560
      TabIndex        =   4
      Text            =   "Text2"
      Top             =   600
      Width           =   2295
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1560
      TabIndex        =   3
      Text            =   "Text1"
      Top             =   120
      Width           =   2295
   End
   Begin VB.Label Label3 
      Caption         =   "顺序号:"
      Height          =   255
      Left            =   120
      TabIndex        =   2
      Top             =   1080
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "项目名称:"
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   600
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "项目编号:"
      Height          =   255
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   1215
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'确认
Set fitem_updateconn = CreateObject("adodb.connection")
fitem_updateconn.Open connstring
If Trim(Text2.Text) <> "" Then
 If Trim(Text3.Text) <> "" Then
  Set rs_itemupdate = fitem_updateconn.Execute("update Pa_item set Fitemname=" & "'" & Trim(Text2.Text) & "'" & ",Fno=" & "'" & Trim(Text3.Text) & "'" & " where Fitemid=" & "'" & Trim(Text1.Text) & "'")
Else
  MsgBox "请认真填写顺序号!", vbOKOnly + vbInformation, "提示"
 End If
Else
 MsgBox "请认真填写项目名称!", vbOKOnly + vbInformation, "提示"
End If
fitem_updateconn.Close
Call Form3.fado_item
Unload Me

End Sub

Private Sub Command2_Click()
'取消
Unload Me
End Sub

⌨️ 快捷键说明

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