what am i doing with forms that corrupts an access 2k database?
It’s like one form goes haywire and infects those around it?
Is there any way to recover from this absurd behavior?
And why does it happen in the first place!!!!???? ARGH
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » #%$!#% corruption (A2K 9.0.4402 SR-1)
I’ve seen form corruption in Acc 2K, where the form just wouldn’t open in form view, and when you tried to open it in design view, an error message ( I can’t remember what it was) just popped up and wouldn’t let me get at it. Had to start the form from stratch.
Sorry not much help, but I do have sympathy for you
Dunno, thinking on my feet now
How about in the ‘corrupt’ database, create this code
Public Function DisplayCorruptForms ()
Dim frm as Form
Dim db as Database
On Error Resume Next
set db = CurrentDB
For each frm in db.Forms
docmd.openform frm.name
If err.number 0 Then
debug.print frm.name
err.number = 0
Else
DoCmd.Close acForm, frm.name
End If
Next frm
End Function
Run this function and it will display those forms names that can’t be opened in the immediate window.
Peter:
I’ve gone through exactly, word for word, the same problem as you have. As Jayden suggested one of the few options that you have is to start out with a blank database and import. However, you could also try, if you haven’t already, do a compile from debug mode to see if all of your code is clean. The other way I was able to localize my problem, was to bring in the forms 10 at a time, open one of them in program mode, create an Exit System command button, and then see if the system crashes. It always did on mine until the situation was remedied. If it doesn,t crash, then save that copy of your database under a new name and then bring in the next 10 and keep repeating until you eventually narrow it down to the culprit. Painful beyond belief, but unfortunately, about the only thing that you can do. And then send a bill for your time wasted to Bill Gates.
Unfortunately database corruption has been with Access (and others too) since day 1. The suggestions for finding the culprit are about your only recourse at this point. Let me suggest you look for the root cause as well:
Wendel:
I appreciate your input.
The problems occurred on my Home system with only 3 networked stations, so it wasn’t a big deal.
Name Autocorrect was turned on. Not sure what the impact would be one way or the other. It can be a handy little tool. Sort of a poor man’s Speed Ferret.
Database is split. As the problems were in the front end, I’m not too sure as to what the impact would be to make it an MDE. I wouldn’t be able to make it such until it was clean anyways.
I do split the the database between machines.
Short Comment to All: I’ve used http://bbs.elementkjournals.com/ for questions and answers, and this is my first couple of days in Woody’s Lounge. Wow!
Hi there,
In reference to what you said:
“Is you database split with data in one and the rest in another – if so you might consider making the front-end a MDE – they go corrupt less often, and also make it READ ONLY at the OS level – then it can’t go corrupt”
How does this stop the back-end from going corrupt. I am going to try this solution, but it kind of bugs me I can’t figure out why this will work.
Thanks,
Rob
Unfortunately, it won’t stop the back-end from going corrupt, but back-ends go corrupt much less frequently than front-ends, mostly because people have a form or report or whatever open in the front-end when their PC crashes. Back-ends seem to go corrupt mostly when you are in the process of updating a memo field and something breaks.
The advantage of an MDE is that it is always compiled, so the engine isn’t trying to compile and save code while the database is being used. And when you make the front-end READ-ONLY, the engine can’t make any changes to the database, so it doesn’t have a chance to corrupt. Of course you can’t make the table part (back-end) READ-ONLY, as you wouldn’t be able to edit data! Hope that makes some sense.
That’s the version that had my Access tied in knots. Visio 2002 is another app that installs it as well. It appears that the problem doesn’t always occur, since I know of people who are running both versions, but when it does, it drives you crazy.
I’m going to keep nagging Microsoft about this until we get a better answer than just “upgrade to 2002”.
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications