PC Review


Reply
Thread Tools Rate Thread

How can I backup my database using an Event procedure?

 
 
=?Utf-8?B?Q3VyaW91cw==?=
Guest
Posts: n/a
 
      24th Mar 2006
I'm trying to backup my database by clicking a command button. I think a
DoMenuItem command might work, but I don't know the specific code (ie.
"DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70").

Any suggestions?
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      24th Mar 2006
Hi,
try this one:
http://www.mvps.org/access/api/api0026.htm

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

"Curious" <(E-Mail Removed)> wrote in message
news:068D827A-8CD6-4FA2-974D-(E-Mail Removed)...
> I'm trying to backup my database by clicking a command button. I think a
> DoMenuItem command might work, but I don't know the specific code (ie.
> "DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70").
>
> Any suggestions?


 
Reply With Quote
 
Marshall Barton
Guest
Posts: n/a
 
      24th Mar 2006
Curious wrote:

>I'm trying to backup my database by clicking a command button. I think a
>DoMenuItem command might work, but I don't know the specific code (ie.
>"DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70").



You can not reliably copy an open database file because you
can not guarantee that it is in a quiescent state. Since
the database that contains the code you are asking for is
running, the file must obviously be open.

Don't forget that a backup should be verified before it is
put on the shelf. Without at least a quick check that the
backup file is comple, you won't know if it can be restore
until you are desperate for it to work.

Putting all that together implies pretty strongly that a
backup is an offline operation, not something that can be
done by a simple button click in your application.

--
Marsh
MVP [MS Access]
 
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
Set an Event Procedure to User Procedure Cory Microsoft Access Form Coding 3 24th Nov 2008 04:53 PM
Run a Event Procedure and Macro in the Before Update Event Frank Microsoft Access Form Coding 5 12th Jan 2008 12:50 AM
Call subform event procedure from main form event procedure ? =?Utf-8?B?cGxj?= Microsoft Access Form Coding 2 26th Oct 2006 10:15 PM
Procedure declaration does not match description of event or procedure Paul Camilleri Microsoft Access Form Coding 3 19th May 2004 05:18 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Microsoft Excel Programming 0 24th Sep 2003 03:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:00 PM.