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

Dreaded corruption strikes again

18
The nightmare that is corruption. Every programmers greatest fear. And I am not immune to it either unfortunately. This is the first corruption I've had to deal with so I was hoping some people with a bit more experience could give me a hand with this one.

In Access 2003 I have a front end and a back end. The front end works fine until it calls upon a certain table. And for some reason (corruption) calling this table in certain forms causes the whole database to crash.

The front end is fine, no problems there. I've traced the issue down to a single record in one of my backend tables. Every time I try to look at this record (even if it simply appears on screen) the database will crash and I can't do anything to stop it or prevent it.

I've tried to compile, compress, repair, decompile and none of it does anything. Actually when I try to 'compress and repair' my backend, the thing crashes too.

It's becoming frustrating. Is there anything that you guys can think of to help solve this problem? any suggestions or similiar experiences you can share that might help?

Thanks in advance
Mar 26 '08 #1
8 1223
mshmyob
904 Expert 512MB
Yep. Seen it, been there, done it. When it happens to me I always have to open the table manually (not with your APP - use Access itself or any tool that can read an Access databse file). Scroll through the table(s) until you see the corrupted record(s) (it will usually have a bunch of ASCII characters in the fields) when you find them delete them.

It has always worked for me. Good luck.

I have never found the Access compress/repair to be of much use.

cheers,

The nightmare that is corruption. Every programmers greatest fear. And I am not immune to it either unfortunately. This is the first corruption I've had to deal with so I was hoping some people with a bit more experience could give me a hand with this one.

In Access 2003 I have a front end and a back end. The front end works fine until it calls upon a certain table. And for some reason (corruption) calling this table in certain forms causes the whole database to crash.

The front end is fine, no problems there. I've traced the issue down to a single record in one of my backend tables. Every time I try to look at this record (even if it simply appears on screen) the database will crash and I can't do anything to stop it or prevent it.

I've tried to compile, compress, repair, decompile and none of it does anything. Actually when I try to 'compress and repair' my backend, the thing crashes too.

It's becoming frustrating. Is there anything that you guys can think of to help solve this problem? any suggestions or similiar experiences you can share that might help?

Thanks in advance
Mar 26 '08 #2
CoopEng
18
I try opening and viewing the records just from the backend. So i open the table and scroll down the records. I found some with ASCII characters and deleted them. But there's one spot where as soon as the record appears on screen (or where it would be... it doesn't display the record just a large white bloch) when it appears, access crashes. That might make deleting it a little but trickier.

Any back-up plans, or other ways to delete the record. If it helps I know the record number. Is there a query I can run to delete a specific enrty? Does that work for corrupted records though?


Yep. Seen it, been there, done it. When it happens to me I always have to open the table manually (not with your APP - use Access itself or any tool that can read an Access databse file). Scroll through the table(s) until you see the corrupted record(s) (it will usually have a bunch of ASCII characters in the fields) when you find them delete them.

It has always worked for me. Good luck.

I have never found the Access compress/repair to be of much use.

cheers,
Mar 26 '08 #3
mshmyob
904 Expert 512MB
Again this has happened to me. Let me try and remember how I fixed it and I will get back to you.

I believe I may still have a corrupted file to work with (lol).

cheers,

I try opening and viewing the records just from the backend. So i open the table and scroll down the records. I found some with ASCII characters and deleted them. But there's one spot where as soon as the record appears on screen (or where it would be... it doesn't display the record just a large white bloch) when it appears, access crashes. That might make deleting it a little but trickier.

Any back-up plans, or other ways to delete the record. If it helps I know the record number. Is there a query I can run to delete a specific enrty? Does that work for corrupted records though?
Mar 26 '08 #4
CoopEng
18
Haha. alright thanks

When the file got too corrupted you just left it there. nice.. haha.

Again this has happened to me. Let me try and remember how I fixed it and I will get back to you.

I believe I may still have a corrupted file to work with (lol).

cheers,
Mar 26 '08 #5
mshmyob
904 Expert 512MB
No I fixed it I just kept it as a backup until the client said everything was OK and I never got around to deleting it.

Haha. alright thanks

When the file got too corrupted you just left it there. nice.. haha.
Mar 26 '08 #6
CoopEng
18
Here' s what I'm doing (with little success mind you).

So I've narrowed the corruption down to those few records. I copied all of the records that were not corrupt and put them into a new table. When I run the forms from this table everything works fine. The problem is that the ID field for the table has to be an autonumber. However I can't just change the field to an autonumber after i've pasted the new records (i get an error message saying I can't). If I make the field an autonumber before I pastel, then the ID's of the pasted records are lost and become 1,2,3,4 again. Not good.. another kicker is that the ID's of the pasted records aren't sequential. They do go in increasing order but there are large gaps in between some records. For instance the ID's could be; 28124,28125, 123678, 123679. That just complicates things further.

Is there a way to get around this.... Or have you made any progress from your older corruption issue that you think might help.?
Mar 27 '08 #7
CoopEng
18
Hooray. I got it. And by sheer randomness too. I had tried to run a delete query before (one that I had copied from another db and modified for this one) and that didn't do anything.

For some fluke reason I decided to rewrite the delete query from scratch and, of course, it deleted the record just fine.

I did nothing different between the 1st delete query and the 2nd but for some reason the 2nd one took. How access just randomly decides when to work and when not to work I have no idea. Crazy thing.

Thanks for your help though. I appreciate your time and consideration

Best Regards
Mar 27 '08 #8
mshmyob
904 Expert 512MB
Congrats.

You discovered one of the 'undocumented features' of Access, and they don't even charge extra for it.

cheers,

Hooray. I got it. And by sheer randomness too. I had tried to run a delete query before (one that I had copied from another db and modified for this one) and that didn't do anything.

For some fluke reason I decided to rewrite the delete query from scratch and, of course, it deleted the record just fine.

I did nothing different between the 1st delete query and the 2nd but for some reason the 2nd one took. How access just randomly decides when to work and when not to work I have no idea. Crazy thing.

Thanks for your help though. I appreciate your time and consideration

Best Regards
Mar 27 '08 #9

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

Similar topics

10
by: Arno R | last post by:
Hi all Yesterday I found a strange corruption-issue that I can't solve yet or actually point my finger at. I converted an A97 app to A2k. I have done this often enough so I didn't expect trouble...
7
by: Doug Vogel | last post by:
Hi All - I have a client for whom I developed an Access 2000 database. The database is split into 2 files - front-end (forms, queries, reports), and back-end (tables). An .mde file has been...
2
by: lsloan | last post by:
Hi! I have a reoccuring problem with one of my databases where forms will occasionally become corrupted. Since I have backup copies of my production databases, it is easy to recover from using...
1
by: Matthew | last post by:
Hello Access gurus, I'm helping out a friend who's a small business owner. The software he uses to run his shop uses an Access backend. We recently had some huge headaches w/DB corruption. We...
2
by: Chuck Van Den Corput | last post by:
I have deployed an Access 2002 app in the standard way: individual A2002 front-ends, one shared A2002 back-end. A corruption occurred in a particular table in the back-end. I saw a row whose...
8
by: ranjeet.gupta | last post by:
Dear All Is the Root Cause of the Memory corruption is the Memory leak, ?? suppose If in the code there is Memory leak, Do this may lead to the Memory Corruption while executing the program ? ...
3
by: comp.lang.php | last post by:
I have a counter that evokes the "Three Strikes You're Out" rule.. if you make more than N mistakes it auto-resets to avoid flooding $_SESSION with attempt after attempt, etc. However, the...
23
by: Dave G | last post by:
Since upgrading one of my clients from A97/W2000 to A2003/XP they have suffered no end of data corruption problems, mainly involving one of the main tables. The corruption can result in one...
5
by: robert.waters | last post by:
Hello, I have been experiencing crashes and code corruption in my project (vbe6.dll; a decompile fixes the corruption); for the life of me I cannot figure out why, and I can't pin down the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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:
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...

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.