PC Review


Reply
Thread Tools Rate Thread

best method for back-up

 
 
Charles
Guest
Posts: n/a
 
      10th Sep 2008
I have office reps who are out in the field with laptops. I've provided them
with a runtime database from Access to record their activities and then
e-mail in their data. As part of setting them up, I have instructed the
run-time to export two critical data tables as an excel spreadsheet to their
C drive as a back-up everytime they exit the program. This causes windows to
prompt the user as to whether they want to overwrite the existing files. I
want the overwrite to always occur. I was thinking I could either create a
batch file that deletes the back-up files and opens the run-time OR, I could
write VB code wihtin the run itself that deletes the files right before the
run-time re-creates them. Assuming these are as viable as any other possible
method, what would be the code either in DOS or VBA to perform this action?
I know the delete command in DOS but I'm not sure how to write the line that
would open the run-time. If I use the VBA method, I'm not sure how to
execute a DOS command within the run-time.
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      10th Sep 2008
On Wed, 10 Sep 2008 07:36:01 -0700, Charles
<(E-Mail Removed)> wrote:

>I have office reps who are out in the field with laptops. I've provided them
>with a runtime database from Access to record their activities and then
>e-mail in their data. As part of setting them up, I have instructed the
>run-time to export two critical data tables as an excel spreadsheet to their
>C drive as a back-up everytime they exit the program. This causes windows to
>prompt the user as to whether they want to overwrite the existing files. I
>want the overwrite to always occur. I was thinking I could either create a
>batch file that deletes the back-up files and opens the run-time OR, I could
>write VB code wihtin the run itself that deletes the files right before the
>run-time re-creates them. Assuming these are as viable as any other possible
>method, what would be the code either in DOS or VBA to perform this action?
>I know the delete command in DOS but I'm not sure how to write the line that
>would open the run-time. If I use the VBA method, I'm not sure how to
>execute a DOS command within the run-time.


The KILL statement in VBA will delete files. See the online help.
--

John W. Vinson [MVP]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page_Load method issues with Back Button =?Utf-8?B?U3JpZGhhcg==?= Microsoft ASP .NET 7 11th Jan 2006 08:56 PM
Using web back() method in word =?Utf-8?B?Q2hhbmRlcg==?= Microsoft Word Document Management 0 11th Nov 2005 09:13 AM
How do I get my old boot method back? Voice of freedom Windows XP General 19 26th Apr 2005 07:19 PM
Best Back-up Method =?Utf-8?B?d2JvYmxpdHQ=?= Windows XP General 9 15th Jul 2004 09:43 PM
Create a new object in a method and pass it back by ref Allan Lembo Microsoft C# .NET 3 2nd Mar 2004 04:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 AM.