Solved

#deleted rowsc access 2010 backend

Posted on 2016-11-04
4
33 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 13

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now