473,395 Members | 1,443 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to solve MaxLocksPerFile problem without changing registry settings?

Hi all!

My code is causing a violation against the MaxLocksPerFile in the
registry.
I checked Microsoft Knowledge Base
http://support.microsoft.com/default...b;EN-US;815281.
It suggests increasing MaxLocksPerFile setting in registry by using

DAO.DBEngine.SetOption dbmaxlocksperfile, 1500

or manually.

So far I discovered already that the problem is caused by the following
code

dim dbs as database
dim rst as recordset
set dbs = currentdb
set rst = dbs.openrecordset ("A NORMAL SELECT-QUERY")

do until rst.EOF
rst.edit
......
rst.UPDATE
rst.MoveNext
loop

rst.close
dbs.close
I don't mind to use SetOption method.
However, I don't understand what does the above mentioned code locks.
In other words, what code should I use in order not to lock anything?

=> apparently the records remain locked after the edit-statement. I
didn't have this problem when using Access 97. It seems that Access2002
has much more features for client-server structures but I'll have to
learn how to use them. Therefore I would like to know as what type and
what options I have to give to my recordset in order to achieve that
each record is un-locked directly after the rst.UPDATE statement. In
the help-files I didn't find an answer that solved my problem...

I posted this question one month ago, but I did not get an answer.

Any help appreciated.
Thanks.
Surotkin

Jan 25 '06 #1
0 2197

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Trevor Fairchild | last post by:
I'm working with an ado recordset in VB6 - connecting to a database and updating every record for a new index number based on a filter set ordered by the user. I get the "File Sharing Lock Count...
3
by: Rohit Santhanam | last post by:
As I am reading the .NET documentation, I get the feeling that Microsoft is trying to get rid of the registry. My understanding is that an application built using .NET does not use the registry...
2
by: Bob Olsson | last post by:
Hello all! I´m going to develop a windows smartclient and can´t find the information I need. Where do I store user-settings like paths, background colour and so on. I´ve read an article about...
1
by: Robert | last post by:
I am trying to figure out how to change TCP/IP settings through VC# (IP Address, DNS, WINS, Gateway, Computer Name, Host, etc), but cannot find anything anywhere. I'm sure that it's out there, but...
6
by: J. Shrimp, Jr. | last post by:
Following code exports tables as text files: For Each tdf In db.TableDefs StrTblName = tdf.Name Me.txtProgName = StrTblName Me.txtProgName.Requery tblAtt = tdf.Attributes moddate =...
7
by: Paul | last post by:
Hello everyone, I have searched around the web and cannot find any more information on this topic. I'm hoping that some intelligent programmer in this group can help me out. I have an Access 2K...
1
by: Zürcher See | last post by:
I'm trying to set a value in the registry in order to configure IE so that it uses a proxy I found out that there are two values: ...
5
by: Ronny Sigo | last post by:
Hi all, I am trying to search a table of emailaddresses records (tblMails - slightly more then 7000)for the occurance of words which are stored in another table (tblFilterwords- aprox 3000...
0
by: marek zegarek | last post by:
Hello! I need to write some code, that will change user agernt string in SYSTEM. Not for browsers. I know, that there is registry entry in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.