?? frmbackup.frm
字號:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{D959C709-8613-11D1-9840-002078110E7D}#1.0#0"; "as97Popup.ocx"
Object = "{C7AE747C-B9E4-11D7-B0E3-D8165009166E}#7.0#0"; "XPForm.ocx"
Begin VB.Form frmbackup
BorderStyle = 0 'None
Caption = "備份數據庫"
ClientHeight = 4440
ClientLeft = 0
ClientTop = 0
ClientWidth = 6510
Icon = "frmbackup.frx":0000
LinkTopic = "Form1"
ScaleHeight = 4440
ScaleWidth = 6510
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin MSComDlg.CommonDialog cdlog1
Left = 3480
Top = 2160
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin as97Popup.asPopup asPopup2
Height = 375
Left = 3480
Top = 3480
Width = 1335
_ExtentX = 2355
_ExtentY = 661
Caption = "退出"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BackColor = 12648447
ScaleWidth = 89
ScaleMode = 0
ScaleHeight = 25
End
Begin as97Popup.asPopup asPopup1
Height = 375
Left = 1800
Top = 3480
Width = 1215
_ExtentX = 2143
_ExtentY = 661
Caption = "確定"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BackColor = 12648447
ScaleWidth = 81
ScaleMode = 0
ScaleHeight = 25
End
Begin XP窗體控件.XPForm XPForm1
Height = 855
Left = 1920
Top = 960
Width = 2775
_ExtentX = 4895
_ExtentY = 1508
Caption = "備份數據庫"
Icon = "frmbackup.frx":0CCA
AlwaysOnTop = 0 'False
ShowFormSize = 0 'False
End
End
Attribute VB_Name = "frmbackup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub asPopup1_Click(Cancel As Boolean)
Dim i As String
On Error Resume Next
With cdlog1
.DialogTitle = "數據備份"
.InitDir = App.path
.filename = "backup.mdb"
.Filter = "(數據庫)*.mdb|*.mdb"
.CancelError = True
.ShowSave
i = .filename
End With
If Right$(App.path, 1) <> "\" Then spath = App.path & "\"
ssource = spath & "jk.mdb"
sdest = i
If Err.number <> cdlCancel Then
On Error GoTo sjbf_error
If Dir$(i) <> "" Then
s = MsgBox("文件已存在,確認替換它!", vbYesNo + vbQuestion)
If s = vbYes Then
FileCopy ssource, sdest
Else
asPopup1_Click (1)
End If
Else
FileCopy ssource, sdest
End If
End If
Exit Sub
sjbf_error:
If Err = 70 Then
MsgBox "數據庫正在使用,請關閉所有數據窗口,從新開始備份", vbExclamation
Else
frmmsg.msg.MsgChar = Err.Description
frmmsg.Show
End If
End Sub
Private Sub Form_Load()
XPForm1.Make
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -