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

Problem with Compact/Repair part 2

Ron
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 entirely different network), it damages the file
somehow. The user's machine that did the compact/repair can see the file
fine. But any networked user can't get in. I can double click on a good
database file from any user (over the network) and it loads fine (of course,
no queries/forms/reports etc cause those are all on the front end--this is
the back end). But if I run C/R on the same file, same directory,
everything...just renamed so I can revert to good data if something goes
wrong I get a message "Microsoft Access can't find the database file (double
backslash)maindrive\mainfolder\blahblah.mdb. Make sure you entered the
correct path and file name." (hello, I'm double clicking on the file out on
the networked drive...). Even have tried it after making a copy of the
database prior to C/R and, using that same file (not the copy), I run C/R
and again, that user has access. Nobody else does. Same error message.
Yet, before C/R, everything is fine..all users can open file fine.

I tried uninstalling Access, reinstalling, and no effect. Still, if I C/R
with Access 2000, it bombs when I try and open the database from any other
user. Tried using a file that I couldn't open after the C/R, doing a C/R on
another machine with Access 2003 and all users can use file. Put it back on
any Access2000 machine, do a C/R on that file, and bang...nobody but the
user who did the C/R can open the file.

File has ALWAYS been an Access2000 database.

Kicker:
Tried this same process on Northwind.mdb. Same result. After Compact/Repair,
no networked users can "find" the file...even tho they're double clicking on
it on the networked drive.

Anyone have a clue?
ron
Apr 13 '07 #1
9 3975
My guess is that some DLL or EXE used in the compact/repair process has been
corrupted on that machine. I certainly suggest not trying to compact/repair
any more DBs on the machine.

If it were mine, I wouldn't waste time trying to find the exact location of
the error, but would first uninstall and then reinstall Access, or Office
Pro. If you did not have all three Service Packs installed for Access 2000,
it was "at risk", in any case, and it is officially "out of service" under
Microsoft's service policies.

Larry Linson
Microsoft Access MVP
"Ron" <ro********************@verizon.netwrote in message
news:9pSTh.73$jR5.70@trnddc08...
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 entirely different network), it damages the
file somehow. The user's machine that did the compact/repair can see the
file fine. But any networked user can't get in. I can double click on a
good database file from any user (over the network) and it loads fine (of
course, no queries/forms/reports etc cause those are all on the front
end--this is the back end). But if I run C/R on the same file, same
directory, everything...just renamed so I can revert to good data if
something goes wrong I get a message "Microsoft Access can't find the
database file (double backslash)maindrive\mainfolder\blahblah.mdb. Make
sure you entered the correct path and file name." (hello, I'm double
clicking on the file out on the networked drive...). Even have tried it
after making a copy of the database prior to C/R and, using that same file
(not the copy), I run C/R and again, that user has access. Nobody else
does. Same error message. Yet, before C/R, everything is fine..all users
can open file fine.

I tried uninstalling Access, reinstalling, and no effect. Still, if I C/R
with Access 2000, it bombs when I try and open the database from any other
user. Tried using a file that I couldn't open after the C/R, doing a C/R
on another machine with Access 2003 and all users can use file. Put it
back on any Access2000 machine, do a C/R on that file, and bang...nobody
but the user who did the C/R can open the file.

File has ALWAYS been an Access2000 database.

Kicker:
Tried this same process on Northwind.mdb. Same result. After
Compact/Repair, no networked users can "find" the file...even tho they're
double clicking on it on the networked drive.

Anyone have a clue?
ron

Apr 14 '07 #2
Ron wrote:
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 entirely different network), it damages the file
somehow. The user's machine that did the compact/repair can see the file
fine. But any networked user can't get in. I can double click on a good
database file from any user (over the network) and it loads fine (of course,
no queries/forms/reports etc cause those are all on the front end--this is
the back end). But if I run C/R on the same file, same directory,
everything...just renamed so I can revert to good data if something goes
wrong I get a message "Microsoft Access can't find the database file (double
backslash)maindrive\mainfolder\blahblah.mdb. Make sure you entered the
correct path and file name." (hello, I'm double clicking on the file out on
the networked drive...). Even have tried it after making a copy of the
database prior to C/R and, using that same file (not the copy), I run C/R
and again, that user has access. Nobody else does. Same error message.
Yet, before C/R, everything is fine..all users can open file fine.

I tried uninstalling Access, reinstalling, and no effect. Still, if I C/R
with Access 2000, it bombs when I try and open the database from any other
user. Tried using a file that I couldn't open after the C/R, doing a C/R on
another machine with Access 2003 and all users can use file. Put it back on
any Access2000 machine, do a C/R on that file, and bang...nobody but the
user who did the C/R can open the file.

File has ALWAYS been an Access2000 database.

Kicker:
Tried this same process on Northwind.mdb. Same result. After Compact/Repair,
no networked users can "find" the file...even tho they're double clicking on
it on the networked drive.

Anyone have a clue?
A2000 creates a temp database outside the CurrentProject.Path folder and
then copies it back to that folder when it does a compact. Unfortunately
it then inherits the permission of that user's TEMP folder which is
the last user to use the app.

Try opening up the permissions on your defined TEMP directory - that worked
for me. See:

http://support.microsoft.com/default...b;en-us;295234
--
---------------
John Mishefske, Microsoft Access MVP
Apr 14 '07 #3
Ron
As I indicated, I have uninstalled, reinstalled Access. Now I'll have to
get the same service packs that I did have prior to this.

And, again as indicated, I also have tried other computers with like Access
versions of Access. All do the same thing.

However, that did make me think... maybe it's something new in an automatic
update for WinXP or something. Something other than Access.

Something must have changed along the way, somewhere. All these computers
I'm using to try different solutions/fixes that I've thought up have been
fine in the past with compact/repairing... so it must be something new
that's been introduced in the last couple months to these machines.
Introduced somehow.

Since I can't give up (I'd have to find another money stream), I'll keep
trying different things.

Thanks for your response.
ron

"Larry Linson" <bo*****@localhost.notwrote in message
news:90VTh.568$h8.194@trnddc06...
My guess is that some DLL or EXE used in the compact/repair process has
been corrupted on that machine. I certainly suggest not trying to
compact/repair any more DBs on the machine.

If it were mine, I wouldn't waste time trying to find the exact location
of the error, but would first uninstall and then reinstall Access, or
Office Pro. If you did not have all three Service Packs installed for
Access 2000, it was "at risk", in any case, and it is officially "out of
service" under Microsoft's service policies.

Larry Linson
Microsoft Access MVP
"Ron" <ro********************@verizon.netwrote in message
news:9pSTh.73$jR5.70@trnddc08...
>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 entirely different network), it damages the
file somehow. The user's machine that did the compact/repair can see the
file fine. But any networked user can't get in. I can double click on a
good database file from any user (over the network) and it loads fine (of
course, no queries/forms/reports etc cause those are all on the front
end--this is the back end). But if I run C/R on the same file, same
directory, everything...just renamed so I can revert to good data if
something goes wrong I get a message "Microsoft Access can't find the
database file (double backslash)maindrive\mainfolder\blahblah.mdb. Make
sure you entered the correct path and file name." (hello, I'm double
clicking on the file out on the networked drive...). Even have tried it
after making a copy of the database prior to C/R and, using that same
file (not the copy), I run C/R and again, that user has access. Nobody
else does. Same error message. Yet, before C/R, everything is fine..all
users can open file fine.

I tried uninstalling Access, reinstalling, and no effect. Still, if I
C/R with Access 2000, it bombs when I try and open the database from any
other user. Tried using a file that I couldn't open after the C/R, doing
a C/R on another machine with Access 2003 and all users can use file.
Put it back on any Access2000 machine, do a C/R on that file, and
bang...nobody but the user who did the C/R can open the file.

File has ALWAYS been an Access2000 database.

Kicker:
Tried this same process on Northwind.mdb. Same result. After
Compact/Repair, no networked users can "find" the file...even tho they're
double clicking on it on the networked drive.

Anyone have a clue?
ron


Apr 14 '07 #4
Ron wrote:
As I indicated, I have uninstalled, reinstalled Access. Now I'll have to
get the same service packs that I did have prior to this.

And, again as indicated, I also have tried other computers with like Access
versions of Access. All do the same thing.

However, that did make me think... maybe it's something new in an automatic
update for WinXP or something. Something other than Access.

Something must have changed along the way, somewhere. All these computers
I'm using to try different solutions/fixes that I've thought up have been
fine in the past with compact/repairing... so it must be something new
that's been introduced in the last couple months to these machines.
Introduced somehow.

Since I can't give up (I'd have to find another money stream), I'll keep
trying different things.
Ron - did you see my previous post? You should check this out and see if you can eliminate
it as the source of your problem.

-------------------

A2000 creates a temp database outside the CurrentProject.Path folder and
then copies it back to that folder when it does a compact. Unfortunately
it then inherits the permission of that user's TEMP folder which is
the last user to use the app.

Try opening up the permissions on your defined TEMP directory - that worked
for me. See:

http://support.microsoft.com/default...b;en-us;295234

--
---------------
John Mishefske, Microsoft Access MVP
Apr 14 '07 #5
Remember, if someone gives you a file on a floppy disk, and you then insert
the floppy disk, and drag the file to your desktop.

Now, drag that file to a network folder..and guess what? No one on the
network can use the file? this can be a text file, a excel file..even a word
file...

Why?

Because windows xp allows you to assign file permissions to a INDIVIDUAL
FILE!!!

When you place the file on your desktop, it inherits your file permissions
that are assigned to your workstation...
When you then copy the file to the network drive..it continues to have the
file permissions that YOUR computer assigned to the file....

A compact and repair actually makes a copy of the file..and thus this opens
up a point in time in which file permissions can be changed......

This is not really a ms-access issue as much a simple file copy when using
windows xp can dramatically change the file permissions assigned to a
file....

See John's post for furhter notes of this issue...
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
Apr 14 '07 #6
Ron
YES!

This did the trick.

Now, can anyone explain why this all of a sudden has started happening?
I've been working on the same computer, same files, same network, etc for
over a year...and NEVER had this happen before.

But sure enough, now, every file I compact/repair I then have to go in and
change the security settings for. And, EVERY time I compact/repair any of
the mdb's I have to reset this security area.

When/how did this all change? I didn't knowingly change any security
setting to have this start happening.

Is there a way to reset a "user" I'm on when compacting/repairing so the
"temp" file used will allow others to use the file? Otherwise, I'll never
be able to allow my users to compact/repair their own database (without also
teaching them this malarkey) which isn't the most efficient way to go, IMHO.

This probably needs to be brought up on another newsgroup?

Thanks John and Larry for staying with me and helping on this issue--I
really appreciate your time and knowledge!

ron

"John Mishefske" <jm**********@SPAMyahoo.comwrote in message
news:46***********************@roadrunner.com...
Ron wrote:
>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 entirely different network), it damages the
file somehow. The user's machine that did the compact/repair can see the
file fine. But any networked user can't get in. I can double click on a
good database file from any user (over the network) and it loads fine (of
course, no queries/forms/reports etc cause those are all on the front
end--this is the back end). But if I run C/R on the same file, same
directory, everything...just renamed so I can revert to good data if
something goes wrong I get a message "Microsoft Access can't find the
database file (double backslash)maindrive\mainfolder\blahblah.mdb. Make
sure you entered the correct path and file name." (hello, I'm double
clicking on the file out on the networked drive...). Even have tried it
after making a copy of the database prior to C/R and, using that same
file (not the copy), I run C/R and again, that user has access. Nobody
else does. Same error message. Yet, before C/R, everything is fine..all
users can open file fine.

I tried uninstalling Access, reinstalling, and no effect. Still, if I
C/R with Access 2000, it bombs when I try and open the database from any
other user. Tried using a file that I couldn't open after the C/R, doing
a C/R on another machine with Access 2003 and all users can use file.
Put it back on any Access2000 machine, do a C/R on that file, and
bang...nobody but the user who did the C/R can open the file.

File has ALWAYS been an Access2000 database.

Kicker:
Tried this same process on Northwind.mdb. Same result. After
Compact/Repair, no networked users can "find" the file...even tho they're
double clicking on it on the networked drive.

Anyone have a clue?

A2000 creates a temp database outside the CurrentProject.Path folder and
then copies it back to that folder when it does a compact. Unfortunately
it then inherits the permission of that user's TEMP folder which is
the last user to use the app.

Try opening up the permissions on your defined TEMP directory - that
worked
for me. See:

http://support.microsoft.com/default...b;en-us;295234
--
---------------
John Mishefske, Microsoft Access MVP

Apr 14 '07 #7
Ron
Yeah, this turned out to be the problem I am encountering. I just don't
understand what changed--I've compact/repaired this file many times
previously, not only on this computer, but other files on other computers,
and never had this problem before. So, what changed?

And how do I get my old world back so this isn't a problem every time I
compact/repair? On any computer I'm on, I'm using the administrator account,
so I don't see why the security is limiting like this. Perhaps I'll zip
into the WinXP security NG's for some browsing.

Thanks for your response,
ron

"Albert D. Kallal" <Pl*******************@msn.comwrote in message
news:Lp4Uh.71513$DE1.58627@pd7urf2no...
Remember, if someone gives you a file on a floppy disk, and you then
insert the floppy disk, and drag the file to your desktop.

Now, drag that file to a network folder..and guess what? No one on the
network can use the file? this can be a text file, a excel file..even a
word file...

Why?

Because windows xp allows you to assign file permissions to a INDIVIDUAL
FILE!!!

When you place the file on your desktop, it inherits your file permissions
that are assigned to your workstation...
When you then copy the file to the network drive..it continues to have the
file permissions that YOUR computer assigned to the file....

A compact and repair actually makes a copy of the file..and thus this
opens up a point in time in which file permissions can be changed......

This is not really a ms-access issue as much a simple file copy when using
windows xp can dramatically change the file permissions assigned to a
file....

See John's post for furhter notes of this issue...
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com


Apr 14 '07 #8
Ron wrote:
Yeah, this turned out to be the problem I am encountering. I just don't
understand what changed--I've compact/repaired this file many times
previously, not only on this computer, but other files on other computers,
and never had this problem before. So, what changed?

And how do I get my old world back so this isn't a problem every time I
compact/repair? On any computer I'm on, I'm using the administrator account,
so I don't see why the security is limiting like this. Perhaps I'll zip
into the WinXP security NG's for some browsing.
Did you start using Compact On Close option? Or change your compact routine?

Is it possible that the defined %TEMP% value was changed in your environment or on a
specific PC?

Or maybe someone changed permissions for users/groups? Or you just implemented NTFS? (Now
I'm reaching...)

I seem to recall this issue didn't bite me until we moved to XP but can't recall if that
is actually true.

As Albert pointed out this isn't really an issue with Access although different versions
use different locations for the compact/repair and that does cause some issues when moving
to a new version. I think the KB I referenced points out the different locations used in
each version.

I've posted this issue to the newsgroup many times over the years...

--
---------------
John Mishefske, Microsoft Access MVP
Apr 15 '07 #9
Ron
Hi John,

See my responses below...

"John Mishefske" <jm**********@SPAMyahoo.comwrote in message
news:46**********************@roadrunner.com...
Ron wrote:
>Yeah, this turned out to be the problem I am encountering. I just don't
understand what changed--I've compact/repaired this file many times
previously, not only on this computer, but other files on other
computers, and never had this problem before. So, what changed?

And how do I get my old world back so this isn't a problem every time I
compact/repair? On any computer I'm on, I'm using the administrator
account, so I don't see why the security is limiting like this. Perhaps
I'll zip into the WinXP security NG's for some browsing.

Did you start using Compact On Close option? Or change your compact
routine?
No, no Compact On Close--I've read that's not a wise idea so have never done
it. No changes to compact routine. My data files at my office are not
normally multi-used. I'll set up a new datafile for a company, put it on
their system AFTER compacting/repairing (lots of temp files to transfer old
program data to this new one, temp data files, queries, etc so NEED a
compact/repair after transfers and before delivery. All delivered databases
have worked fine under multiuser situations when they've been delivered.
However, tried to compact/repair a database on a client's system (that's
been working fine for 6 months) and ran into this problem. Brought the data
back here, and had the same problem. Looked at some other files, and ones
that were fine before, once compacted/repaired NOW I can't get into with
anyone but original user's system. That's when I kinda knew something had
changed between last client supplied data and now. It HAS to be an
automatic update to something...I haven't manually updated anything, nor
changed security settings (knowingly anyway).
Is it possible that the defined %TEMP% value was changed in your
environment or on a specific PC?
Wouldn't know how to change a %TEMP% value if one came up and bit me. I'd
like to know though, so I can change it back to what it was and avoid all
this malarkey. Right now, it seems I'll always have to copy the clien'ts
file to my system, compact/repair, then put "Everyone" back to "full
access", then send the file back. I'll apparently have to do that because
when I tried to do it on this one client's system when I right click on the
datafile at their site, I don't get a "Security" tab on the properties.
Only on mine (so far--haven't looked at any other client's systems yet).
I'm not exactly a "security" kinda dude--I let others install networks,
establish security, etc. Once it's all set up and working, I come in with
the program/datafiles needed to do their jobs. At least that's the way I've
handled it in the past--but this situation may require me to alter this way
of doing busines.

Or maybe someone changed permissions for users/groups? Or you just
implemented NTFS? (Now I'm reaching...)
Not that I'm aware (for client), and certainly not for my system. It's
gotta be some kinda automatic update that changed the "assumptions" security
requires. Do you know anything about changing them back? I know that's
kinda off-topic, but it still has to do with Access, eh?

Been using same system (with NTFS--WinXP Pro) for 2 years. No changes that
I'm aware of.
I seem to recall this issue didn't bite me until we moved to XP but can't
recall if that is actually true.

As Albert pointed out this isn't really an issue with Access although
different versions use different locations for the compact/repair and that
does cause some issues when moving to a new version. I think the KB I
referenced points out the different locations used in each version.

I've posted this issue to the newsgroup many times over the years...
Well, like I wrote before...thank you very much for answering my post. I
was ready to pull my hair out--and I can't really afford to lose any...
::grin::

ron
--
---------------
John Mishefske, Microsoft Access MVP

Apr 15 '07 #10

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...
6
by: GaryDave | last post by:
My school registration database has not been quite right after a recent compact and repair (done while I was away). Though most of the many forms and subforms are working normally, one form in...
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...
2
by: Ron | last post by:
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...
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.