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..

Recommended Answers

All 2 Replies

just copying a .mdb file to backup folder.

commented: Right +1
commented: Nice +1

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

commented: Nice way :) +1
commented: good idea +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.