[mso] Re: Access 2003 SaveAs
- From: "Green" <1z@xxxxxxxxxxxxxx>
- To: <mso@xxxxxxxxxxxxx>
- Date: Sat, 7 Nov 2009 18:48:06 +0100
Okay... I've built a procedure that seems to work okay and copies the
current DB to a new file.
It depends on the fact that the FileSystemObject will copy a database even
if it's open.
What isn't mentioned anywhere I could find, is that it copies the last saved
state.
So as this is mostly to save VBA versions rather than anything else I hit
the save button in the IDE then run the procedure.
This should keep me going till I can get around to VBAing the pressing of
the save button.
Anyone wants the code can have it.
Lisa
> I have a feeling that you won't be able to do it from VBA.
> Notice that when you do it through the menus, it closes out
> the main database window before doing the backup. This is
> similar to tools such as the compact/repair and means that
> Access is actually closing the database before doing the
> activity. This would close out any VBA that was running, too.
>
> You could possibly do it with a VB program, running
> externally to Access.
>
> Alternatively, have a look at a Google search of the subject.
> There are many ways that people have fudged backups.
>
> Regards, Dave S
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the dropdown
menu at the top. This will allow you to unsubscribe your email address or
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to share files with the group, you must join our Yahoo sister group.
This group will not allow for posting of emails, but will allow you to join
and share problem files, templates, etc.:
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE
SHARING ONLY.
If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
Other related posts: