Solved

Database shared on a LAN

Posted on 2002-03-12
3
128 Views
Last Modified: 2010-05-02
I'm developing a app that will access a LAN database. 50 people will be using this database. How can I allow only one person at a time to update a particular record. Do I need to temporarily lock the record or what?
0
Comment
Question by:Gmoney
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 50 total points
ID: 6858901
> Do I need to temporarily lock the record
or what?

yes, if you're using ado here are your lock options:

adLockReadOnly Default. Read-only—you cannot alter the data.
adLockPessimistic Pessimistic locking, record by record—the provider does what is necessary to ensure successful editing of the records, usually by locking records at the data source immediately upon editing.
adLockOptimistic Optimistic locking, record by record—the provider uses optimistic locking, locking records only when you call the Update method.
adLockBatchOptimistic Optimistic batch updates—required for batch update mode as opposed to immediate update mode.
0
 

Author Comment

by:Gmoney
ID: 6859654
bobbit31, I'm using the Data control. What do I need to do to lock the current record that is being edited?
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 6860921
are you using the ADO data control? it's better than the normal data control and you can set the locktype.

under projects/components, select Microsoft ADO Data Control.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

840 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