S
Sheryl
I'm doing something which should be simple, namely a loop
through a table and updating one field via .Edit, .Update.
When there's a huge number of records, I get the following
message "File sharing lock count exceeded. Increase
MaxLocksPerFile registry entry." Here's the code. How do
I fix it?
Set rs = CurrentDb.OpenRecordset(sQry, dbOpenDynaset,
dbConsistent, dbOptimistic)
If rs.EOF Then GoTo CC_NEXT_CAT
count = 0
rs.MoveFirst
CC_NEXT_PERCENTILE:
count = count + 1
rs.Edit
rs!percentile = 100 * (count / total)
rs.Update
rs.MoveNext
If Not rs.EOF Then GoTo CC_NEXT_PERCENTILE
through a table and updating one field via .Edit, .Update.
When there's a huge number of records, I get the following
message "File sharing lock count exceeded. Increase
MaxLocksPerFile registry entry." Here's the code. How do
I fix it?
Set rs = CurrentDb.OpenRecordset(sQry, dbOpenDynaset,
dbConsistent, dbOptimistic)
If rs.EOF Then GoTo CC_NEXT_CAT
count = 0
rs.MoveFirst
CC_NEXT_PERCENTILE:
count = count + 1
rs.Edit
rs!percentile = 100 * (count / total)
rs.Update
rs.MoveNext
If Not rs.EOF Then GoTo CC_NEXT_PERCENTILE