PC Review


Reply
Thread Tools Rate Thread

Back Up Database Menu Item

 
 
=?Utf-8?B?SmVmZg==?=
Guest
Posts: n/a
 
      19th Feb 2005
Hello,

I am using Access 2003 & under File, there is "Back Up Database..."

Is their a way through VBA code to do this rather than having the select
this ?
So for example it can be done on the click of a button on a form ?

Like,

Private Sub cmdButton1_Click()
'what code goes here to back up Databse
End Sub

Any help would be greatly appreciated.

Thank you,
Jeff
 
Reply With Quote
 
 
 
 
Barry-Jon
Guest
Posts: n/a
 
      19th Feb 2005
The backup database effectively creates a compacted and renamed version
of the current database. I don't believe it is possible, within the
code of an open database, to compact an open database. You could
create a seperate database that could create backups for you though -
would you like the code for that?

 
Reply With Quote
 
=?Utf-8?B?SmVmZg==?=
Guest
Posts: n/a
 
      19th Feb 2005
Thank your for your response. Its ok about the other code. I can do that.
I was wondering becuase that option is already there instead of having to
code something extra.

Thank you,
Jeff

"Barry-Jon" wrote:

> The backup database effectively creates a compacted and renamed version
> of the current database. I don't believe it is possible, within the
> code of an open database, to compact an open database. You could
> create a seperate database that could create backups for you though -
> would you like the code for that?
>
>

 
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
Menu item from database in ASP.Net jayender.vs@gmail.com Microsoft ASP .NET 3 2nd Apr 2006 09:19 AM
How do I add Insert menu item (I deleted) back to message window =?Utf-8?B?cmljaGFyZA==?= Microsoft Outlook Discussion 1 30th Dec 2005 12:49 AM
Any way to call the Fill/Back Color shortcut menu item, or get it's value kiln Microsoft Access Form Coding 0 4th Nov 2005 01:45 AM
I lost the tools menu item in word and I can't get it back. =?Utf-8?B?cGV0ZXJn?= Microsoft Word Document Management 2 13th Jan 2005 08:52 PM
Missing menu item--how do I get it back? G Bunker Microsoft Outlook 1 13th Jun 2004 06:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:38 AM.