Hi guys,
My problem is that Im getting the error from the attachment when running my code. The error probably happens because the code query didn't manage to update the field/s within the given timeout which is 60 seconds, but thats not the real issue. When I execute the exact same query through the access query design it updates the fields withing a second and no errors. So what I mean is, if I would set the timeout to 10min it wouldn't help because the query still wouldn't manage to update what I want, something else seems to be faulty. Any ideas?
Thanks (have to get used to the new forum design but it looks nice
)
EDIT: Some more info. When I try to use the same code to update about 20-40 records it works, but it fails when the number of records is bigger, like 300+
EDIT 2: For some reason its working now after putting back my old database and applying all the changes I made again. All changes were adding indexes to few tables to speed up queries. However, now after some more testing it stops working again :/
My problem is that Im getting the error from the attachment when running my code. The error probably happens because the code query didn't manage to update the field/s within the given timeout which is 60 seconds, but thats not the real issue. When I execute the exact same query through the access query design it updates the fields withing a second and no errors. So what I mean is, if I would set the timeout to 10min it wouldn't help because the query still wouldn't manage to update what I want, something else seems to be faulty. Any ideas?
Thanks (have to get used to the new forum design but it looks nice

EDIT: Some more info. When I try to use the same code to update about 20-40 records it works, but it fails when the number of records is bigger, like 300+
EDIT 2: For some reason its working now after putting back my old database and applying all the changes I made again. All changes were adding indexes to few tables to speed up queries. However, now after some more testing it stops working again :/
Attachments
Last edited: