-3

Hi i really need code to back up an access database. Am using visual studio 2005. i have to submit my project next week..
please help me. I want to place the code in a button back up..

2
Contributors
2
Replies
5
Views
9 Years
Discussion Span
Last Post by Jx_Man
3

the easiest way is copying current access database to backup folder.
Use FileCopy to copying file.
this following code is an example :

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        FileCopy("D:\Authors.mdb", "D:\BackUpFolder\NewBackUpName.mdb")
End Sub

So file Authors.mdb in D:\ will copying into Folder BackUpFolder

Votes + Comments
good idea
Nice way :)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.