frmDataHF.frm
资源名称:0123..rar [点击查看]
上传用户:naidiweb
上传日期:2013-08-15
资源大小:672k
文件大小:3k
源码类别:
软件设计/软件工程
开发平台:
WORD
- VERSION 5.00
- Begin VB.Form frmDataHF
- BorderStyle = 3 'Fixed Dialog
- Caption = "数据恢复"
- ClientHeight = 1860
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 4950
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MDIChild = -1 'True
- MinButton = 0 'False
- Picture = "frmDataHF.frx":0000
- ScaleHeight = 1860
- ScaleWidth = 4950
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton cmdExit
- Caption = "退出"
- Height = 435
- Left = 3105
- TabIndex = 1
- Top = 1170
- Width = 1335
- End
- Begin VB.CommandButton cmdHF
- Caption = "开始恢复"
- Height = 435
- Left = 360
- TabIndex = 0
- Top = 1170
- Width = 1335
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "车辆管理系统数据恢复"
- BeginProperty Font
- Name = "新宋体"
- Size = 15.75
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FF00FF&
- Height = 315
- Left = 870
- TabIndex = 2
- Top = 390
- Width = 3300
- End
- End
- Attribute VB_Name = "frmDataHF"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdExit_Click()
- MDIForm1.StatusBar1.Panels(1).Text = ""
- Set adoCon = New ADODB.Connection
- adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "clgl.mdb" & ";Persist Security Info=False"
- Unload Me
- End Sub
- Private Sub cmdHF_Click()
- On Error Resume Next
- FileCopy App.Path & "数据库备份clgl.mdb", App.Path & "clgl.mdb"
- MsgBox "恢复成功!", , "系统提示"
- End Sub
- Private Sub Form_Load()
- frmDataHF.Width = 5040
- frmDataHF.Height = 2235
- adoCon.Close
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- cmdExit_Click
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- Set adoCon = New ADODB.Connection
- adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "clgl.mdb" & ";Persist Security Info=False"
- End Sub