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..
just copying a .mdb file to backup folder.
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