It's a very long time since I used Access, I'm more of a MS Project / Excel with VBA fish.
I am developing a VBA app under Access 97 and running into problems when importing data and creating large data tables. I receive the error: "File sharing lock count exceeded (Error 3052)."
If I remove my encapsulating BeginTrans... CommitTrans all works well, but painfully slowly. I had presumed that when commiting a transaction all locks would be removed . . this seems not to be happening, is it me? [In an attempt to overcome the error I include in my import loop a If recordcount > (some threshold) then CommitTrans, BeginTrans, recordcount = 0 hook . . . but this does not help regardless of how low I set (some threshold).]
I also increased my lock limit using DAO.DBEngine.Se tOption dbmaxlocksperfi le (to increasingly large limits), all to no avail.
The table I am creating/to which I am appending comprises 11 fields, 8 of which are indexed. By design it is not normalised and provides a parsed representation of a non-delimited text file. I am trying to append approximately 500,000 records. Any clues please? If in fact the dbmaxlocksperfi le setting was taking (seems to be write-only so i can't check?) is there a means of determining how many locks I need? Can this setting be increased on the fly?)
Many questions I know . . . I shall keep my fingers crossed.
TIA,
Mal
I am developing a VBA app under Access 97 and running into problems when importing data and creating large data tables. I receive the error: "File sharing lock count exceeded (Error 3052)."
If I remove my encapsulating BeginTrans... CommitTrans all works well, but painfully slowly. I had presumed that when commiting a transaction all locks would be removed . . this seems not to be happening, is it me? [In an attempt to overcome the error I include in my import loop a If recordcount > (some threshold) then CommitTrans, BeginTrans, recordcount = 0 hook . . . but this does not help regardless of how low I set (some threshold).]
I also increased my lock limit using DAO.DBEngine.Se tOption dbmaxlocksperfi le (to increasingly large limits), all to no avail.
The table I am creating/to which I am appending comprises 11 fields, 8 of which are indexed. By design it is not normalised and provides a parsed representation of a non-delimited text file. I am trying to append approximately 500,000 records. Any clues please? If in fact the dbmaxlocksperfi le setting was taking (seems to be write-only so i can't check?) is there a means of determining how many locks I need? Can this setting be increased on the fly?)
Many questions I know . . . I shall keep my fingers crossed.
TIA,
Mal
Comment