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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |