Hi all. (For first i have to say, that my english is bad, so sorry ...
)
I have this special problem. In VBA i have function, that is inserting new records to the table.
sql = "INSERT INTO ...VALUES... " - its basic INSERT INTO, nothing more
CurrentDb.Execute sql
I fill the sql from txt lines. In txt i have 283000 same lines. All lines are (for testing) totaly the same. And in the loop i fill the sql and try to insert it into the DB by function currentdb.execute sql. Many lines work perfekts. But sometimes i get Error 3073-Operation must use an updateable query. But if i set the breakpoint in that makro and i try to pass line CurrentDb.Execute sql again, it works fine.
Where is the problem? Why inserting of 283k totaly samerecords works fine for 99,9%, but for some not? Why repeating the step, that crashed with the error message, works on second chance fine? ... I don't know, what to do whit this :-(
Thanks to all.

I have this special problem. In VBA i have function, that is inserting new records to the table.
sql = "INSERT INTO ...VALUES... " - its basic INSERT INTO, nothing more
CurrentDb.Execute sql
I fill the sql from txt lines. In txt i have 283000 same lines. All lines are (for testing) totaly the same. And in the loop i fill the sql and try to insert it into the DB by function currentdb.execute sql. Many lines work perfekts. But sometimes i get Error 3073-Operation must use an updateable query. But if i set the breakpoint in that makro and i try to pass line CurrentDb.Execute sql again, it works fine.
Where is the problem? Why inserting of 283k totaly samerecords works fine for 99,9%, but for some not? Why repeating the step, that crashed with the error message, works on second chance fine? ... I don't know, what to do whit this :-(
Thanks to all.