Hi,
I need some advice wrt record locking in MS Access - first a few bullet points on my setup
- multi user environement
- 10+ users
- no edits only bulk inserts and deletes (and selects)
- data volumes high -> 1-2mio records inserted in total (every day) between 10+ users
- inserts / deletes / selects all happening in a 2hour window (ie not spread throughout the day)
essentially the process is running a process to extract data from a 3rd party system, inserting data into access (bulk insert into), running process that generates reports, if reports not correct repeat process after deleting data from previous runs
now my problem is that when inserting / deleting the users encounter record locks (message along the lines of 'Unable to perform operation. Databse locked by user Admin'.
i've built in a retyr option which allows user to press a Retry button which eventually works but obviously not ideal.
my questions are
a. If i only do inserts and deletes in a multi user environement do i need to have Record Locking switched on in MS Access or do you only need record locks when you have users editing records ??
b. the Record locking options in Tools >> Options >> Advanced - are they database specific or machine / user specific e.g. if i change the setting do i need to do it on each users machine or just on the reelvant database (mdb file)
c. What does the Tools - Options >> Advanced option 'Open database using record level locking' do - do i need this ?? I read on another post that switching this off will reduce the bloating of the mdb file which is also probelmatic for me
d. because of the volumns of data i am forced to create a new mdb file for each day - this is done on the fly (VBA) - if the record locking settings (or solution to my problem) is db specifc then it would be helpful to know how to set this using VBA as i would need to do it after creating my db (using VBA)
any help / comments would be much appreciated.
I need some advice wrt record locking in MS Access - first a few bullet points on my setup
- multi user environement
- 10+ users
- no edits only bulk inserts and deletes (and selects)
- data volumes high -> 1-2mio records inserted in total (every day) between 10+ users
- inserts / deletes / selects all happening in a 2hour window (ie not spread throughout the day)
essentially the process is running a process to extract data from a 3rd party system, inserting data into access (bulk insert into), running process that generates reports, if reports not correct repeat process after deleting data from previous runs
now my problem is that when inserting / deleting the users encounter record locks (message along the lines of 'Unable to perform operation. Databse locked by user Admin'.
i've built in a retyr option which allows user to press a Retry button which eventually works but obviously not ideal.
my questions are
a. If i only do inserts and deletes in a multi user environement do i need to have Record Locking switched on in MS Access or do you only need record locks when you have users editing records ??
b. the Record locking options in Tools >> Options >> Advanced - are they database specific or machine / user specific e.g. if i change the setting do i need to do it on each users machine or just on the reelvant database (mdb file)
c. What does the Tools - Options >> Advanced option 'Open database using record level locking' do - do i need this ?? I read on another post that switching this off will reduce the bloating of the mdb file which is also probelmatic for me
d. because of the volumns of data i am forced to create a new mdb file for each day - this is done on the fly (VBA) - if the record locking settings (or solution to my problem) is db specifc then it would be helpful to know how to set this using VBA as i would need to do it after creating my db (using VBA)
any help / comments would be much appreciated.