|
-
Nov 16th, 2009, 11:02 PM
#6
Thread Starter
Member
Re: Back-up and restore using DAO,Acces as Database,vb6 application
 Originally Posted by ryanbesitulo
Thanks for the reply..
I Changed the code on how to back-up...but i got an error, said that "Permission denied"
Here's my code:
Private Sub Back_Click()
Dim Conn as new ADODB.Connection
Dim Source As String
Dim Destination As String
Source = App.Path & "\Pensioner.mdb"
Destination = App.Path & "\Backup\" & Format(Date, "mmmm dd, yyyy") & " " & Format(Time, "h_mm_ss") & ".mdb"
FileCopy Source, Destination
MsgBox " Backup Successfully Saved!", vbInformation, ""
Conn.Open
End Sub
Thanks,
Yes.... I got it
Thanks both of you..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|