I had a similar problem to this one in another thread I started, however this one is slightly different so Im writing a new one.
Well, my UPDATE query fails in VBA with the error "ODBC - update on a linked table "table name" failed"
The query is pretty simple: "UPDATE tmpRacuniZaEksport INNER JOIN RacUpl ON tmpRacuniZaEksport.IdRacUpl = RacUpl.IdRacUpl SET RacUpl.Eksportovan = True;", dbSeeChanges (I tried also without dbSeeChanges)
tmpRacuniZaEksport is a temporary table filled with all the records which I want to update in the main table RacUpl. Both table use IdRacUpl as primary key, so only one primary key in each table.
I tried removing one by one index in the RacUpl table, all of them too but still the same. The query is supposed to update about 5200 records.
Interestingly tho is that it doesnt fail if the number of records to update is small, like 250 (I didnt try to find out the exact limit).
Executing the query through the Access query designer works without problems, while the code is not executing.
I also disabled the transaction in the code but it didnt help either.
Only workaround which I can think of for now is to update the table with more queries so I dont update all the 5200 records at once and try to avoid the error that way but doesnt seem to be convenient
Pretty much out of ideas here
Well, my UPDATE query fails in VBA with the error "ODBC - update on a linked table "table name" failed"
The query is pretty simple: "UPDATE tmpRacuniZaEksport INNER JOIN RacUpl ON tmpRacuniZaEksport.IdRacUpl = RacUpl.IdRacUpl SET RacUpl.Eksportovan = True;", dbSeeChanges (I tried also without dbSeeChanges)
tmpRacuniZaEksport is a temporary table filled with all the records which I want to update in the main table RacUpl. Both table use IdRacUpl as primary key, so only one primary key in each table.
I tried removing one by one index in the RacUpl table, all of them too but still the same. The query is supposed to update about 5200 records.
Interestingly tho is that it doesnt fail if the number of records to update is small, like 250 (I didnt try to find out the exact limit).
Executing the query through the Access query designer works without problems, while the code is not executing.
I also disabled the transaction in the code but it didnt help either.
Only workaround which I can think of for now is to update the table with more queries so I dont update all the 5200 records at once and try to avoid the error that way but doesnt seem to be convenient
Pretty much out of ideas here
