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

📄 -

📁 VB工资管理系统
💻
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form 统一数 
   BorderStyle     =   5  'Sizable ToolWindow
   Caption         =   "统一置数"
   ClientHeight    =   1725
   ClientLeft      =   60
   ClientTop       =   285
   ClientWidth     =   4470
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1725
   ScaleWidth      =   4470
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   3360
      Top             =   0
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   2
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "FILE NAME=C:\Program Files\Common Files\Linkmain .UDL"
      OLEDBString     =   ""
      OLEDBFile       =   "C:\Program Files\Common Files\Linkmain .UDL"
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "mainformat1"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.TextBox Text1 
      Height          =   330
      Left            =   2468
      TabIndex        =   1
      Top             =   480
      Width           =   1575
   End
   Begin MSDataListLib.DataCombo DataCombo1 
      Bindings        =   "统一数.frx":0000
      Height          =   330
      Left            =   435
      TabIndex        =   0
      Top             =   480
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   582
      _Version        =   393216
      ListField       =   "字段名称"
      Text            =   "               "
   End
   Begin VB.Frame Frame1 
      Height          =   1695
      Left            =   0
      TabIndex        =   2
      Top             =   0
      Width           =   4455
      Begin VB.CommandButton Command2 
         Caption         =   "取消"
         Height          =   375
         Left            =   2648
         TabIndex        =   5
         Top             =   1080
         Width           =   1215
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定"
         Height          =   375
         Left            =   608
         TabIndex        =   4
         Top             =   1080
         Width           =   1215
      End
      Begin VB.Label Label3 
         Caption         =   "值:"
         Height          =   255
         Left            =   2520
         TabIndex        =   7
         Top             =   240
         Width           =   735
      End
      Begin VB.Label Label2 
         Caption         =   "字段名称:"
         Height          =   255
         Left            =   480
         TabIndex        =   6
         Top             =   240
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "="
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   18
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   2160
         TabIndex        =   3
         Top             =   480
         Width           =   375
      End
   End
End
Attribute VB_Name = "统一数"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim SQL As String
Dim mydb As Database
Dim name As String
Dim value As String
name = DataCombo1.Text
value = Text1.Text
Set mydb = OpenDatabase("c:\program files\common files\main.mdb")
SQL = "update main set" & " " & name & "=" & value
mydb.Execute SQL
mydb.Close
Frmmain.Adodc1.Refresh
Unload Me
For i = 0 To Frmmain.Adodc1.Recordset.Fields.Count - 1
Frmmain.DataGrid1.Columns(i).Width = 10950 / Frmmain.Adodc1.Recordset.Fields.Count
Next i
End Sub

Private Sub Command2_Click()
Unload 统一数
End Sub

⌨️ 快捷键说明

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