Click here to Skip to main content
15,891,917 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Private Sub res_button_Click()


Dim sourcefile As String
sourcefile = "C:\Users\Peter\Desktop\new access templates\db backups - please do not remove\Registry Data Entry System_backup_2014_7_5.mde"
Dim destinationfile As String

destinationfile = CurrentProject.FullName
'Restore the database from a backup copy.

If Dir(destinationfile) <> "" Then
Kill destinationfile
End If
FileCopy sourcefile, destinationfile
MsgBox ("Database Restoration Successful")
'End If

End Sub
Posted
Updated 4-Aug-14 23:33pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900