?
Solved

MS Access row locking

Posted on 2001-09-09
4
Medium Priority
?
409 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 6 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:Eric AKA Netminder
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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

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.
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

752 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