A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Unlocking Databases for copying



 
 
Thread Tools Display Modes
  #1  
Old March 17th, 2005, 05:35 PM
royboy
external usenet poster
 
Posts: n/a
Default Unlocking Databases for copying

I am trying to use the following code to backup (copy) my linked table mdb's
to a floppy disk.
---
Private Sub Command93_Click()

FileCopy "c:\member management\Legion Membership tables.mdb", "a:\Legion
Membership tables.mdb"
FileCopy "c:\member management\Legion Membership tables 2.mdb", "a:\Legion
Membership tables 2.mdb"

End Function
--

When I try it I get a "Permission Denied" message. I assume thisa is
because the tables are locked by the current MDB which is open.

How can I overcome this?

All help appreciated.

Ray

  #2  
Old March 17th, 2005, 08:58 PM
Graham Mandeno
external usenet poster
 
Posts: n/a
Default

Hi Ray

If you close all recordsets in your front-end database which refer to the
linked tables, including all forms that are bound to recordsets based on
those tables, then the file system lock will be dropped. My guess is that
your "Backup" button is on a bound form, or that you currently have another
form open which is bound.

--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

"royboy" wrote in message
...
I am trying to use the following code to backup (copy) my linked table
mdb's
to a floppy disk.
---
Private Sub Command93_Click()

FileCopy "c:\member management\Legion Membership tables.mdb", "a:\Legion
Membership tables.mdb"
FileCopy "c:\member management\Legion Membership tables 2.mdb", "a:\Legion
Membership tables 2.mdb"

End Function
--

When I try it I get a "Permission Denied" message. I assume thisa is
because the tables are locked by the current MDB which is open.

How can I overcome this?

All help appreciated.

Ray



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
One Form Linked to Multiple Databases Colin Using Forms 8 January 6th, 2005 07:05 PM
Sudden database corruption of multiple databases. Karen General Discussion 4 December 15th, 2004 07:35 AM
Merging Records from one table to another on different databases Mike Smith Running & Setting Up Queries 3 November 3rd, 2004 07:02 PM
Merging Records from one table to another on different databases Mike Smith General Discussion 5 November 3rd, 2004 07:02 PM


All times are GMT +1. The time now is 07:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.