473,398 Members | 2,188 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,398 software developers and data experts.

having reserved error (-1524) how to remove corrupt data from access

i am running a querry on my data base and it giver reserved error(-1524)

on searching on internet i found out that it is due to some corrupt data in the DB .
My DB is of more than 600000 enteries so i cannot check them one by one by scrolling

i there any other way that i can remove the corupt data or remove this reserved (-1524) error.

i even tried to use append querry but it again shows the same error
Nov 9 '16 #1
1 2674
jforbes
1,107 Expert 1GB
I've never run into this error, but if I do, this is what I would try:
  • Create a new database and import all as many objects as possible into. Most likely the corrupted data will prevent at least one table from importing.
  • Link to the tables that did not Import.
  • Rename the Linked tables and append _Old to the end so that the new tables and old tables can be differentiated.
  • Create a Make Table Query with the _Old Tables as the Basis, Choose a Star(*) as the selection set and use "1=2" for the Criteria, so that no records are actually selected, effectively creating a New Blank table. Here is an example:
Expand|Select|Wrap|Line Numbers
  1. SELECT Contacts_Old.* 
  2. INTO Contacts_New
  3. FROM Contacts_Old 
  4. WHERE 1=2
  • Open the _New table up in Design mode and verify the table structure, especially any Keys, like the Primary Key.
  • Then I would create a query to insert a range of records from the _Old table into the _New Table:
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO Contacts_New
  2. SELECT Contacts_Old.*
  3. FROM Contacts_Old
  4. WHERE Contacts_Old.ContactID>0 AND 
  5. Contacts_Old.ContactID<99
  • If the Query executes, then Increment the range in the Where clause to include the next 100 or 1,000 or so records and attempt to run the Query. Eventually the Query will error, or Access will shutdown. This will signify that corruption lies within the last selection set that was attempted.
  • Now start again inserting records from the _Old table into the _New table, but with a smaller range of records to narrow down the list of possible bad records.
  • When the range of possible bad records is small enough, open the _Old table in view mode and scroll down to the troublesome records and have a look.
Nov 10 '16 #2

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

Similar topics

8
by: Frnak McKenney | last post by:
Back when computer dinosaurs roamed the earth and the precursors to today's Internet were tiny flocks of TDMs living symbiotically with the silicon giants, tracking access to data processing...
2
by: George Grodentzik | last post by:
I am developing a new product and would like to know the best method to use to access data. My goal is to design the interface so it will utilizes the newer versions of the microsoft tools that will...
0
by: Stephen Haeney via .NET 247 | last post by:
I have developed a Custom Collection of objects that implementsthe ITypedList interface, which allows a DataGrid to bind to thecollection while giving me control over the TableStyles. Theobjects...
9
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
10
by: Edlueze | last post by:
I am developing some Data Access Pages (DAP) using Microsoft Access 2003 on Microsoft Windows XP. When I try to open these pages (located on my C: drive), the display of the data access page is...
1
by: Adam Getchell | last post by:
Hello all, I'm writing a Parameter class (following Fowler's "Introduce Parameter Object") that accepts a stored procedure and key-value pairs to be passed to a data access class that will parse...
4
by: Showjumper | last post by:
Do you all create dedicated data access layers for each project or do you create resuable ones that you can use over many projects. Also, in the data access layer, do you all create specific...
12
by: Hugh Welford | last post by:
hi Running an asp site on win/IIs/MSACCESS with a database reaching 45 meg. Responses seem a little slow. Could anyone provide a checklist of things to look at to optimise data access on this...
13
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those...
6
by: periwalridhi | last post by:
I am using GnuPG software for assymetric encryption in PostgreSQL. I have done encryption using ->INSERT INTO "test1"("test") -> VALUES (pgp_pub_encrypt('testing', dearmor('------>BEGIN PGP...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.