Solved

#deleted rowsc access 2010 backend

Posted on 2016-11-04
4
60 Views
Last Modified: 2016-11-07
A row of data in one of our table seems to have corrupted. f I delete it, it vanishes, then reappears when I reopen the table. I did a compact and repair which permanently removed the troublesome row - but its had other impacts on the database, i.e. wont let users add new rows via the FE, and seems to of stripped a primary key for some reason. I do have backups, some before that dodgy row was in the table, but reverting back is going to lose a lot of data. Is there any other technique rather than compact and repair to get rid of it?
0
Comment
Question by:pma111
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
ID: 41873837
<<Is there any other technique rather than compact and repair to get rid of it?>>

 Rebuilding the table manually by:

1. Creating a new blank table from the old (export/import structure only).
2. Using append query's to copy the data expect for the bad rows using where criteria.

 But depending on the table, it can be a struggle to do this (ie. autonumber key with that key in other tables, data in related tables, etc).

 A backup is usually the simplest and fastest, but then you do loose some data.

Jim.
0
 
LVL 15

Assisted Solution

by:John Tsioumpris
John Tsioumpris earned 250 total points
ID: 41873869
Just export the data to another table...compact & repair and then reinsert missing data
0
 
LVL 3

Author Comment

by:pma111
ID: 41873873
there is no missing data, just a table with a #deleted row.

Surely if I just move it to another table it will still cause the same issue, as it will repair and comapct the whole database. Or did you mean to transfer the table to another database, and R&C on that, then copy that data into the main database?
0
 
LVL 57
ID: 41873899
<<Or did you mean to transfer the table to another database, and R&C on that, then copy that data into the main database?>>

 Yes, or name the table differently "MyTableNew" while working with it, then when done, delete the original and rename the new to the original name.

Jim.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question