borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (UniCode with SQL Server)Next Topic (Include form created in Access in Express Edition project) New Topic New Poll Post Reply
AndreaVB Forum : Database : how to make a back-up/recovery system for an access database.. Solved Topic
Poster Message
elric
Level: Scholar


Registered: 09-07-2006
Posts: 35

icon how to make a back-up/recovery system for an access database..

how could i back up my database if im using a Microsoft access database...? could that be applicable in ADODC>?? and how could i recover my database afterwards///?? please help me out...         

[Edited by elric on 01-08-2006 at 05:34 PM GMT]

____________________________
-same thing over and over again..-

31-07-2006 at 04:22 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: how: back up recovery of an access database

Hi,
Why not just copy the mdb file. Then if you have a problem you can rename the copy to the active mdb name and your users will be connected to the undamaged copy.


____________________________
multi-tasking - the ability to hang more than one app. at the same time.

31-07-2006 at 09:17 AM
View Profile Send Email to User Show All Posts | Quote Reply
elric
Level: Scholar


Registered: 09-07-2006
Posts: 35
icon Re: how: back up recovery of an access database

umm but could you tell me what to code,,,i need it to run in vb..im using an access database...

____________________________
-same thing over and over again..-

31-07-2006 at 09:38 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: how to make a back-up/recovery system for an access database..


FileCopy "C:\MyDataFolder\MyDatabase.mdb", "C:\MyBackupFolder\MyDatabase.mdb"

If you need to restore the database just reverse the process and put the copy in the main folder in place of the corrupted database.


[Edited by GeoffS on 02-08-2006 at 08:53 AM GMT]

____________________________
multi-tasking - the ability to hang more than one app. at the same time.

02-08-2006 at 08:51 AM
View Profile Send Email to User Show All Posts | Quote Reply
elric
Level: Scholar


Registered: 09-07-2006
Posts: 35
icon Re: how to make a back-up/recovery system for an access database..

don't i need to have a commonControl Dialog for this to work.. is this all the code.. just one line? heheh i know im asking too much.. but its a great help that someone answerd my call heheh.,,,      

____________________________
-same thing over and over again..-

03-08-2006 at 04:49 PM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: how to make a back-up/recovery system for an access database..

Hi elric,
If you know where the database is, and where you want it to go, then this is the only line of code you need.
You would need the Common Dialog Control if you want to select the database source and backup locations at run time.
Alternatively, you could use the control to get the locations when you first run your program, then store them in a text file (or even the Windows Registry) then at backup time retrieve the values, and run the line of code to copy.


____________________________
multi-tasking - the ability to hang more than one app. at the same time.

04-08-2006 at 02:57 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : how to make a back-up/recovery system for an access database.. Solved Topic
Previous Topic (UniCode with SQL Server)Next Topic (Include form created in Access in Express Edition project) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder