Hi,
in brief: running these simple lines of code
sometimes causes error 3086 - 'Could not delete from specified tables'. usually, works fine.
In detail:
In a data update task: some 50 XML files containing some 30K records for updating data: delete some, add some, replace most (=delete current, and insert new).
The process:
for each file, for each record in the file, according to Primary Key:
1. make an attempt to Delete the record/s:
2. if the adjustment type is not 'delete', insert the record into the data.
Error handler registers in tblErrors PK, file name, and Err.Number, if occurs.
At the end of the process I first had some 5K Error registrations, with the above error, other 20K~ records get deleted fine.
the process is about 12-15 minutes long.
I am working in Acc2010 on a 2003 .mdb file, in Win 7. My client will run it in Acc2003 on win7.
Any ideas why would this error occur occasionally?
Would removing indexes make a difference?
Thanks In advance!
in brief: running these simple lines of code
Code:
CurrentDb.Execute "DELETE FROM Components WHERE Code = " & p_Code
CurrentDb.Execute "DELETE FROM Packs WHERE Code = " & p_Code
In detail:
In a data update task: some 50 XML files containing some 30K records for updating data: delete some, add some, replace most (=delete current, and insert new).
The process:
for each file, for each record in the file, according to Primary Key:
1. make an attempt to Delete the record/s:
2. if the adjustment type is not 'delete', insert the record into the data.
Error handler registers in tblErrors PK, file name, and Err.Number, if occurs.
At the end of the process I first had some 5K Error registrations, with the above error, other 20K~ records get deleted fine.
the process is about 12-15 minutes long.
I am working in Acc2010 on a 2003 .mdb file, in Win 7. My client will run it in Acc2003 on win7.
Any ideas why would this error occur occasionally?
Would removing indexes make a difference?
Thanks In advance!