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

📄 生成盘.frm

📁 此系统是运用VB开发的一个工资管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form12 
   Caption         =   "生成上报盘"
   ClientHeight    =   2445
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4575
   ControlBox      =   0   'False
   LinkTopic       =   "Form12"
   ScaleHeight     =   2445
   ScaleWidth      =   4575
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   375
      Left            =   2400
      TabIndex        =   3
      Top             =   1800
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "生成"
      Height          =   375
      Left            =   1080
      TabIndex        =   1
      Top             =   1800
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Height          =   1455
      Left            =   360
      TabIndex        =   0
      Top             =   120
      Width           =   3855
      Begin VB.Label Label1 
         Alignment       =   2  'Center
         AutoSize        =   -1  'True
         ForeColor       =   &H000000FF&
         Height          =   180
         Left            =   1890
         TabIndex        =   2
         Top             =   600
         Width           =   105
      End
   End
End
Attribute VB_Name = "Form12"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Flag As Boolean
Private Sub Command1_Click()
    diskname = Year(Now) & "-" & Month(Now) & ".xls"
    Flag = FloppyDrive("A:")
    If Flag = False Then
        MsgBox "A:驱没有准备好,请将磁盘插入驱动器!", 48, "警告"
    '-------------------------------
    '函数:检查软驱中是否有盘的存在
    '-------------------------------
    Else
        ExporToExcel ("select 员工信息.编号 as 编号,姓名,科室,职务,基本工资,津贴,工资扣,洗理,书报,交通,奖金,日期 from 工资总,员工信息 where 员工信息.编号=工资总.编号")
           MsgBox "恭喜你,数据导出成功", 48, "祝贺"
           Me.Hide
    End If
End Sub
Private Sub Command2_Click()
    Me.Hide
End Sub
Private Sub Form_Load()
    Set con = New ADODB.Connection
    con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=gzgl.mdb;Persist Security Info=false"
    con.CursorLocation = adUseClient
    con.Open
    Label1.Caption = "生成Excel格式上报盘" + "请确认软驱中已插入软盘"
End Sub

⌨️ 快捷键说明

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