UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Restoring data from backup    
 
   
gear
post Apr 3 2008, 12:38 AM
Post #1

UtterAccess Addict
Posts: 133



I searched the forum but could not find help on this.

My backup module keeps a copy of the mdb file (backend) in Backup folder adding date and time of backup. So far no corruption has taken place but if it happens, what I would like to do is to identify the last uncorrupted backup and restore the data from it. I can do this manually, first delete the corrupted data, select the table from the backup and run the append query. Can this be done with code where a window shows the backup files to choose and then appends the data?
Go to the top of the page
 
+
theDBguy
post Apr 3 2008, 12:51 AM
Post #2

Access Wiki and Forums Moderator
Posts: 48,113
From: SoCal, USA



You can use an API call to open the File Browser dialog window to choose the file to restore from, but I am unclear on the method you're using to determine which file has uncorrupted data. Do you open the backup files manually to check its contents?
Go to the top of the page
 
+
gear
post Apr 3 2008, 01:23 AM
Post #3

UtterAccess Addict
Posts: 133



Thanks for your quick response
My backups are named 'Backup-MyMDBName-CurrentDate-CurrentTime' so that it is easy to identify the backup file that funtioned well by date and time.
Go to the top of the page
 
+
theDBguy
post Apr 3 2008, 02:07 AM
Post #4

Access Wiki and Forums Moderator
Posts: 48,113
From: SoCal, USA



Very well, here's a link to that API code I was telling you about. HTH
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 04:26 PM