OK – I know DAO is ‘Defunct’ but I’m working with an older app that was developed using this technology.
I’m reading a lot of records from an AS/400 system and writing them back to a database back end (MS Access – what were they thinking of?!). To control the records being written, the entire procedure is wrapped up in a DAO Transaction. The problem with transactions is that if you try and manipulate more records than 70000ish, you will encounter error 3052, ‘File Sharing Lock Count Exceeded’.
An easy way (but extremely bad practice, defeating the point of the transaction) to deal with the error is to commit the transaction, begin a new transaction and continue running the procedure from where the error occurred.
Obviously, I don’t want to go down this route. Does anyone know how to get round the problem without losing data integrity??
Thanks