473,385 Members | 1,597 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,385 software developers and data experts.

Problem with Compact/Repair

Ron
Hi All,

Using WinXP pro/Access 2000.

I have a database that's been used for about 5 months. Transferred lots of
data from a dos based program, then the users have been using it for that 5
months. About 180000 records in one of the main files (maybe 25000 new since
the dos conversion). Been having some speed issues crop up along the way
(much faster to do same reports when I first transferred the data than now,
with the new 25000 records). So, thought I'd run Compact/Repair.

Of course I did the compact/repair on a copy of the mdb. After the c/r,
while still on the same computer, the reports that had slowed down over this
time, speeded up again. Yippee! So, I saved the old file as a backup, and
made this recently c/r'd file the one to link to for all the users (4 others
plus the one where I did the c/r, so 5 total). Only problem is, nobody else
can get at the files. Everyone else's front end says the back end is
unavailable/locked by another user when they try to link into it. Even
trying to go in and just open the backend file can't be done (so,
eliminating the front end). The computer where I did the c/r is fine--has
access to all the data, no problems. Any other user is locked out. I put
the old, un compact/repair'd file back in, and all the users can link in
fine. But, it's slow again.

I've tried compacting/repairing on a different machine and I get exactly the
same results--that user can use it, but nobody else can. I've looked thru
all the files (pre and post c/r) and nothing *looks* odd with the
structures, relationships, etc, so...

Ever heard of this happening?

Does anyone know what the heck is going on and how I might approach making
things right so that compact/repair doesn't break everything?

TIA
ron
Apr 12 '07 #1
2 2761
I have to assue that all users are not in this database.

Furhter, I assuem you are running a split database..right?

To compact and repair, you simply have to ask all users to exit thedatabase,
and then open up the back end file..and then do a copact and repair. At this
point, users should be able to launch their front ends and continue to
work....

It sounds like some file is locked, and I owuld consider re-booting the
machine the back end is on...

After you compact, there should be no need for the front ends on each pc to
re-link unless you changed the file name...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
Apr 12 '07 #2
Ron
You assumed correct. No other users in database while this
compacting/repairing was done.

Yes, again...split database with 5 users having the front end, and the main
user (one of the 5)has both front and back but still split into 2 separate
databases (and folders) and linked to the front end.

Your 3rd paragraph is still the problem. The main user who has both front
end and back end (which, works out to also be the machine I do the compact
and repair on), can use the files after the compact/repair. The other users
get an error message when trying to use the files. Error is "The Microsoft
Jet database engine cannot open the file "blah blah.mdb. It is already
opened exclusively by another user, or you need permission to view it's
data."

Now, I should probably mention here that there are 3 separate databases the
users can go into at startup and these databases are shown on a list, and
it's only this recently compacted/repaired database they can't get into.
The other 2 are fine. And if I put the old file, the one before
compacting/repairing back where the other 2 are...so, no compact/repair
having been done...then all users can open all 3 files--no error like above.
It's only after I compact/repair this database that I get this problem, and
only with this file.

I tried your suggestion of shutting the computer off although I was pretty
sure it wouldn't make a difference since I had tried the same compact/repair
thing on a different computer in the network--I had already moved the
database in question to a different computer, ran the compact/repair and had
the same problem on that machine. But, I did try to shut all the machines
off, and start over again. Same problem.

I even took the datafile in question to another office network and everyone
on the network could access the database, as normal, UNTIL I
compacted/repaired it on one of the machines. From then on, no one else
could get access to the files except the machine where I did the
compact/repair.

Seems to be JUST this database. So, tried to compact/repair on the other 2
databases...they're fine. Everyone has access afterwards. It's just this
one database.

Again, anyone know why this would be happening..and how I can fix it?

Thanks
ron
"Albert D. Kallal" <Pl*******************@msn.comwrote in message
news:1orTh.65557$aG1.62566@pd7urf3no...
>I have to assue that all users are not in this database.

Furhter, I assuem you are running a split database..right?

To compact and repair, you simply have to ask all users to exit
thedatabase, and then open up the back end file..and then do a copact and
repair. At this point, users should be able to launch their front ends and
continue to work....

It sounds like some file is locked, and I owuld consider re-booting the
machine the back end is on...

After you compact, there should be no need for the front ends on each pc
to re-link unless you changed the file name...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com


Apr 13 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: KEVIN97810 | last post by:
Hello to all, Assume my mdb name is Cust.MDB. I want to compact & repair the same Cust.MDB when the user exit the program. Is there a way you can do it in code behind the EXIT button. I am...
3
by: Piotr | last post by:
Hi, I have huge problem, as Access when executing querry (calculating values qty * price) shows the message "Not enough memory to remove changes" or something like this. How can I check what is...
4
by: Ken Winters | last post by:
Whenever I run the Repair/Compact on my database, the security settings on the file change. A 3rd party application can only access the database over the network when the username "Everyone" is...
4
by: Wayne | last post by:
Does "Compact On Close" do a "Compact and Repair" or just a compact. Is a compact necessary (or at least a good idea) on a regular basis, say weekly, for a database that has several hundred records...
13
by: Bob Darlington | last post by:
I have a repair and backup database routine which runs when a user closes down my application. It works fine in my development machine, but breaks on a client's at the following line: If...
2
by: ApexData | last post by:
Hello I have finally completed an application and am preparing to install it on a network of 10 users. The application will be split FE/BE. The application has its own login, which controls...
3
by: G Gerard | last post by:
Hello The more I use an application ( an mdb) created using MSAccess I notice that the Byte size of the application keeps on increasing. Once in a while I do a Compact and Repair Database...
9
by: Ron | last post by:
New discovery. If I take a perfectly good database, and "compact/repair" on it with Access 2000 (seems to be at multiple sites--I've tried it with my system here, at another office on an...
4
by: zufie | last post by:
When I Repair/Compact my Access databse. I get icons/copies of a database named db1.mdb, db2.mdb, db3.mdb, etc... How else may I repair this database? Thanks!, Zuf
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.