473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Microsoft access cannot delete the original mdb file after compacting it.

18
Hi all,

The following problem is occuring for a particular user who doesn't have full permissions to the shared folder.

[IMG]Microsoft Office Access cann't delete the original mdb file after compacting it.The compacted one is named with some other name and stored in the folder.
The original database was not deleted because it is read only.[/IMG]

How to resolve this issue.Is there any solution other than giving full permissions to the user?
Sep 23 '08 #1
2 2822
Stewart Ross
2,545 Expert Mod 2GB
Hi. I guess you have Compact on Close set on; there are two reasons why you should turn it off. The first (and most important) is that Compact on Close can introduce errors in Access databases running across a network if something happens during the compact process, leading to database corruption.

The second is that because the compact process creates a new database and deletes the old one your users must have create and delete rights to the network directory concerned if you want them to have the right to compact the database.

In general there is no need to use Compact on Close with Access. Compacting the database file as it grows can be done by whoever administers the database as needed (depending on how quickly the database file grows in use) - say weekly or monthly at most. As always, a full backup should be taken first.

-Stewart
Sep 23 '08 #2
missinglinq
3,532 Expert 2GB
Everything Stewart says is right on the money, of course, especially that last line! A backup should always be made before compacting the database, because of the possibility of corruption! Compact on Close is possibly the most dangerous feature Microsoft has ever added to Access, because of this.

After reading this thread, another question comes to me. When you say that this mdb is in a shared folder, is this referring to a back end in a split database? If this is referring to an un-split database being shared by multiple users thru a shared folder, you are once again courting disaster. All multi-user Access databases should be split into front end/back end with a copy of the front end residing on each user's PC and the back end only, with the tables, being on a shared folder.

Welcome to Bytes!

Linq ;0)>
Sep 23 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: SeanR | last post by:
I have a function to copare two files. It will first copy the original file form a different server to a local temp path and then compare that version to a version that has been restored form tape....
1
by: Matt Hamilton | last post by:
I have a simple image gallery where I want to allow users to delete files. The problem I have is that after an image is displayed in the browser, I am not able to delete the file because "The...
4
by: news.microsoft.com | last post by:
I need some help here guys.... i have been simply trying to delete a file from the webserver using asp.net using the following code. System.IO.File.Delete(FullPath); however the error message...
1
by: Jay A. Moritz | last post by:
I have an ASP .NET 2003 application that uses an Access 2003 database. Trimming my application down to just one page that connects to the database and uses an OleDbDataReader to get info, then...
2
by: ary | last post by:
hi all I have a problem with working file when i upload a file in IIS I can'd Delete it. if I try to delete it in debug mode , it successfully worked. my error message "the process...
2
by: John Donnell | last post by:
We have recently added another PC to the network and have run into difficulty when trying to open access files from the server using the new box. We get the error message 'MS Access cannot open...
3
by: Goofy | last post by:
The add database ( MDF ) in Visual Studio 2005 seems to be in SQL Server 2005 format as far as I can tell. Does anyone know how I can import tables ( without having to start writing queries ) from...
2
by: SCPOS | last post by:
Cannot delete X: It is being used by another person or program. Close any programs that might be using the file and try again. Of course I have tried closing any programs I know of that may be...
2
by: hemapooja | last post by:
Hi, I am using vb.Net web application. I am getting the error of system.io. ioexception. The process can't access the file because it is being usrd by another process. when file is opened or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.