Solved

MS Access row locking

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
powershell code to list items in dropdown 6 88
AWS RDS Backups? 3 51
physical_device_name field in SQL 3 30
Need help in debugging a UDF results 7 16
This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
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…

807 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