Solved

MS Access row locking

Posted on 2001-09-09
4
366 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 142

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 142

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
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…

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now