Solved

MS Access row locking

Posted on 2001-09-09
4
396 Views
Last Modified: 2012-08-13
Hi all,
   I'm using MS Access as my database, I want to make the MS Access to be shared in a small LAN (2-3 workstation). Is it possible to do a row locking using MS Access. So other people is not allowed to do update (except query) when other people is doing updating. Or is there any other way to control my database. I'm developing my application using Visual Basic.


Thanks in advanced

Ezree
0
Comment
Question by:ezree
  • 2
4 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 6469759
True row locking is not possible in Access...
but you might look into the Pessimistic locking for records...

CHeers
0
 

Author Comment

by:ezree
ID: 6469907
angellll,
    What d ya mean by Pessimistic locking for records...

Thnks in advanced

Ezree
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2 total points
ID: 6469982
As you have VB, you use ADO or DAO to read the records. Now they have properties that enable you to define the locking method. Thus you could lock the rows, as long as you keep the recordset open, so anybody else could update them.
You have different lock modes, ie:
Lock Pessimistic (the strongest one), avoiding modification of data from any other connection.
Lock Optimistic, locking the records only as soon as you start the modification of the record(s).
Read Only, not locking the records at all...

Cheers
0
 
LVL 15

Expert Comment

by:ericpete
ID: 6471953
Since June...

Questions Asked 12
Last 10 Grades Given A B  
Question Grading Record 2 Answers Graded / 2 Answers Received
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question