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

📄 mctb.frm

📁 企业管理系统,用ACESS2000的数据库系统和ADO连接接口
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form mctb 
   Caption         =   "二部门"
   ClientHeight    =   8985
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10770
   LinkTopic       =   "Form3"
   ScaleHeight     =   8985
   ScaleWidth      =   10770
   StartUpPosition =   3  '窗口缺省
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   2760
      TabIndex        =   39
      Text            =   "Combo1"
      Top             =   2760
      Width           =   1575
   End
   Begin VB.CommandButton Command10 
      Caption         =   "返回主菜单"
      Height          =   975
      Left            =   9360
      TabIndex        =   38
      Top             =   6360
      Width           =   1215
   End
   Begin VB.Frame Frame2 
      Caption         =   "Frame2"
      Height          =   1095
      Left            =   600
      TabIndex        =   33
      Top             =   7560
      Width           =   8415
      Begin VB.CommandButton Command7 
         Caption         =   "最后一条"
         Height          =   615
         Left            =   6720
         TabIndex        =   37
         Top             =   240
         Width           =   1215
      End
      Begin VB.CommandButton Command6 
         Caption         =   "第一条"
         Height          =   615
         Left            =   4440
         TabIndex        =   36
         Top             =   240
         Width           =   1215
      End
      Begin VB.CommandButton Command9 
         Caption         =   "下一条"
         Height          =   615
         Left            =   2280
         TabIndex        =   35
         Top             =   240
         Width           =   1335
      End
      Begin VB.CommandButton Command8 
         Caption         =   "上一条"
         Height          =   615
         Left            =   480
         TabIndex        =   34
         Top             =   240
         Width           =   1215
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Frame1"
      Height          =   1095
      Left            =   600
      TabIndex        =   24
      Top             =   6240
      Width           =   8415
      Begin VB.CommandButton Command11 
         Caption         =   "初始化数据记录"
         Height          =   615
         Left            =   6840
         TabIndex        =   40
         Top             =   240
         Width           =   1215
      End
      Begin VB.CommandButton Command5 
         Caption         =   "确定"
         Height          =   615
         Left            =   480
         TabIndex        =   29
         Top             =   240
         Width           =   1215
      End
      Begin VB.CommandButton Command4 
         Caption         =   "放弃"
         Height          =   615
         Left            =   5280
         TabIndex        =   28
         Top             =   240
         Width           =   1215
      End
      Begin VB.CommandButton Command3 
         Caption         =   "修改"
         Height          =   615
         Left            =   3720
         TabIndex        =   27
         Top             =   240
         Width           =   1215
      End
      Begin VB.CommandButton Command2 
         Caption         =   "删除"
         Height          =   615
         Left            =   2040
         TabIndex        =   26
         Top             =   240
         Width           =   1215
      End
      Begin VB.CommandButton Command1 
         Caption         =   "添加"
         Height          =   615
         Left            =   480
         TabIndex        =   25
         Top             =   240
         Width           =   1215
      End
   End
   Begin VB.TextBox Text12 
      Height          =   615
      Left            =   6720
      TabIndex        =   23
      Text            =   "Text12"
      Top             =   5400
      Width           =   1575
   End
   Begin VB.TextBox Text11 
      Height          =   615
      Left            =   6720
      TabIndex        =   22
      Text            =   "Text11"
      Top             =   4440
      Width           =   1575
   End
   Begin VB.TextBox Text10 
      Height          =   615
      Left            =   6720
      TabIndex        =   21
      Text            =   "Text10"
      Top             =   3600
      Width           =   1575
   End
   Begin VB.TextBox Text9 
      Height          =   615
      Left            =   6720
      TabIndex        =   20
      Text            =   "Text9"
      Top             =   2760
      Width           =   1575
   End
   Begin VB.TextBox Text8 
      Height          =   615
      Left            =   6720
      TabIndex        =   19
      Text            =   "Text8"
      Top             =   1920
      Width           =   1575
   End
   Begin VB.TextBox Text7 
      Height          =   615
      Left            =   6720
      TabIndex        =   18
      Text            =   "Text7"
      Top             =   1080
      Width           =   1575
   End
   Begin VB.TextBox Text6 
      Height          =   615
      Left            =   2760
      TabIndex        =   17
      Text            =   "Text6"
      Top             =   5280
      Width           =   1575
   End
   Begin VB.TextBox Text5 
      Height          =   615
      Left            =   2760
      TabIndex        =   16
      Text            =   "Text5"
      Top             =   4440
      Width           =   1575
   End
   Begin VB.TextBox Text4 
      Height          =   615
      Left            =   2760
      TabIndex        =   15
      Text            =   "Text4"
      Top             =   3600
      Width           =   1575
   End
   Begin VB.TextBox Text2 
      Height          =   615
      Left            =   2760
      TabIndex        =   14
      Text            =   "Text2"
      Top             =   1920
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   2760
      TabIndex        =   13
      Text            =   "Text1"
      Top             =   1080
      Width           =   1575
   End
   Begin VB.Label Label16 
      Caption         =   "Label16"
      Height          =   255
      Left            =   6120
      TabIndex        =   32
      Top             =   240
      Width           =   255
   End
   Begin VB.Label Label15 
      Caption         =   "现为第       条"
      Height          =   495
      Left            =   5400
      TabIndex        =   31
      Top             =   240
      Width           =   1815
   End
   Begin VB.Label Label14 
      Caption         =   "Label14"
      Height          =   255
      Left            =   3240
      TabIndex        =   30
      Top             =   240
      Width           =   255
   End
   Begin VB.Label Label13 
      Caption         =   "共有      条"
      Height          =   375
      Left            =   2760
      TabIndex        =   12
      Top             =   240
      Width           =   1695
   End
   Begin VB.Label Label12 
      Caption         =   "备注:"
      Height          =   495
      Left            =   5400
      TabIndex        =   11
      Top             =   5520
      Width           =   1455
   End
   Begin VB.Label Label11 
      Caption         =   "电话:"
      Height          =   375
      Left            =   5400
      TabIndex        =   10
      Top             =   4680
      Width           =   1215
   End
   Begin VB.Label Label10 
      Caption         =   "住址:"
      Height          =   375
      Left            =   5400
      TabIndex        =   9
      Top             =   3840
      Width           =   1335
   End
   Begin VB.Label Label9 
      Caption         =   "政治面貌:"
      Height          =   495
      Left            =   5400
      TabIndex        =   8
      Top             =   3000
      Width           =   1215
   End
   Begin VB.Label Label8 
      Caption         =   "职务:"
      Height          =   495
      Left            =   5400
      TabIndex        =   7
      Top             =   2160
      Width           =   1215
   End
   Begin VB.Label Label7 
      Caption         =   "职称:"
      Height          =   495
      Left            =   5400
      TabIndex        =   6
      Top             =   1320
      Width           =   1215
   End
   Begin VB.Label Label6 
      Caption         =   "工龄:"
      Height          =   495
      Left            =   1320
      TabIndex        =   5
      Top             =   5400
      Width           =   1095
   End
   Begin VB.Label Label5 
      Caption         =   "参加工作时间:"
      Height          =   495
      Left            =   1320
      TabIndex        =   4
      Top             =   4680
      Width           =   1335
   End
   Begin VB.Label Label4 
      Caption         =   "年龄:"
      Height          =   495
      Left            =   1320
      TabIndex        =   3
      Top             =   3720
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "性别:"
      Height          =   375
      Left            =   1320
      TabIndex        =   2
      Top             =   2880
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "职员姓名:"
      Height          =   375
      Left            =   1320
      TabIndex        =   1
      Top             =   2040
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "职员代码:"
      Height          =   375
      Left            =   1320
      TabIndex        =   0
      Top             =   1200
      Width           =   975
   End
End
Attribute VB_Name = "mctb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Conn As ADODB.Connection
Private Rst As New ADODB.Recordset

Private Sub Command1_Click()
    Command4.Enabled = True
    Text1.Enabled = True
    Text2.Enabled = True
    Combo1.Enabled = True
    Text4.Enabled = True
    Text5.Enabled = True
    
    Text6.Enabled = True
    Text7.Enabled = True
    Text8.Enabled = True
    Text9.Enabled = True
    Text10.Enabled = True
    Text11.Enabled = True
    Text12.Enabled = True
    
   Text1.Text = ""
   Text2.Text = ""
   Combo1.Text = ""
   Text4.Text = ""
   Text5.Text = ""
   
   Text6.Text = ""
   Text7.Text = ""
   Text8.Text = ""
   Text9.Text = ""
   Text10.Text = ""
   
   Text11.Text = ""
   Text12.Text = ""
   Label16.Caption = ""
    Label14.Caption = ""
      Text1.SetFocus
    Command1.Visible = False
    Command5.Visible = True
    
    Command2.Enabled = False
    Command3.Enabled = False
    Command8.Enabled = False
    Command9.Enabled = False
    Command6.Enabled = False
    Command7.Enabled = False
    
   
End Sub




Private Sub Command11_Click()
If MsgBox("要初始化吗?", vbExclamation + vbYesNo) = vbYes Then
        Do Until Rst.EOF
        Rst.Delete
        Rst.MoveNext
        Loop
    MsgBox "初始化成功!"

End If
Text1.Enabled = True
    Text2.Enabled = True
    Combo1.Enabled = True
    Text4.Enabled = True
    Text5.Enabled = True
    
    Text6.Enabled = True
    Text7.Enabled = True
    Text8.Enabled = True
    Text9.Enabled = True
    Text10.Enabled = True
    Text11.Enabled = True
    Text12.Enabled = True
    Text1.Text = ""
    Text2.Text = ""
    Combo1.Text = ""
    Text4.Text = ""
    Text5.Text = ""
    Text6.Text = ""
    Text7.Text = ""
    Text8.Text = ""
    Text9.Text = ""
    Text10.Text = ""
    Text11.Text = ""
    Text12.Text = ""
    
Label16.Caption = ""
    Label15.Caption = ""
End Sub

Private Sub Command2_Click()
    Command1.Enabled = False
    Command5.Enabled = False
    Command3.Enabled = False
    Command4.Enabled = True
    Command8.Enabled = False
    Command9.Enabled = False
    Command6.Enabled = False
    Command7.Enabled = False
    
   
    
    'Rst.CursorLocation = adUseClient
    If MsgBox("要删除吗?", vbExclamation + vbYesNo) = vbYes Then
        Rst.Delete
    MsgBox "删除成功!"
    Else

⌨️ 快捷键说明

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