I saved a select query containing 3500+ book_ids. None of them are duplicated. In another query, I call a function with each book_id from the saved query that calculates a data difference and then writes to a table using a recordset.
The function processes and writes 29 recordsets to the table and then stops processing with the run-time error 3022. Meanwhile, the calling query processes all of the 3500+ book_ids properly. While watching the Locals Window, after the 29th recordset has been written, the first book_id is used instead of the 30th. I don't get why the function is doing this.
The attachments contain my function and calling query.
Any assistance will be greatly appreciated.
Steve H
The function processes and writes 29 recordsets to the table and then stops processing with the run-time error 3022. Meanwhile, the calling query processes all of the 3500+ book_ids properly. While watching the Locals Window, after the 29th recordset has been written, the first book_id is used instead of the 30th. I don't get why the function is doing this.
The attachments contain my function and calling query.
Any assistance will be greatly appreciated.
Steve H