frmDataCopy.frm
资源名称:0123..rar [点击查看]
上传用户:naidiweb
上传日期:2013-08-15
资源大小:672k
文件大小:3k
源码类别:
软件设计/软件工程
开发平台:
WORD
- VERSION 5.00
- Begin VB.Form frmDataCopy
- AutoRedraw = -1 'True
- Caption = "数据备份"
- ClientHeight = 1770
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5505
- BeginProperty Font
- Name = "宋体"
- Size = 14.25
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- MDIChild = -1 'True
- ScaleHeight = 1770
- ScaleWidth = 5505
- Begin VB.CommandButton cmdCopy
- Caption = "开始备份"
- BeginProperty Font
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 360
- Left = 480
- TabIndex = 1
- Top = 1050
- Width = 1425
- End
- Begin VB.CommandButton cmdExit
- Caption = "退出"
- BeginProperty Font
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 360
- Left = 3210
- TabIndex = 0
- Top = 1050
- Width = 1425
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "车辆管理系统数据备份"
- BeginProperty Font
- Name = "新宋体"
- Size = 21.75
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FF00FF&
- Height = 435
- Left = 480
- TabIndex = 2
- Top = 195
- Width = 4500
- End
- End
- Attribute VB_Name = "frmDataCopy"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdCopy_Click()
- On Error Resume Next
- FileCopy App.Path & "clgl.mdb", App.Path & "数据库备份clgl.mdb"
- MsgBox "备份成功!", , "系统提示"
- End Sub
- 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 Form_Load()
- frmDataCopy.Width = 5640
- frmDataCopy.Height = 2190
- adoCon.Close
- 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