-

   rss_sql_ru_access_programming

 - e-mail

 

 -

 LiveInternet.ru:
: 16.03.2006
:
:
: 4

:


, 07 2015 . 09:28 +
, .
, ? , ?

Option Compare Database

Public Declare Function CopyFileAPI Lib "kernel32.dll" Alias "CopyFileA" (ByVal  As String, ByVal  As String, ByVal  As Long) As Long

Function CreateBackup()
Dim strSourse As String
Dim strTarget As String
strSourse = CurrentProject.FullName
strTarget = CurrentProject.Path & "\" & Format(Now(), "mmddyyhhmmss") & "_" & CurrentProject.Name

If CopyFileAPI(CurrentProject.FullName, strTarget, 1) = 1 Then
    MsgBox ("      " & strTarget), vbInformation
Else
    MsgBox ("   !"), vbCritical
End If

End Function

http://www.sql.ru/forum/1178819/kod-dlya-rezervnogo-kopirovaniya-bd


: [1] []
 

:
: 

: ( )

:

  URL