Solved

Database shared on a LAN

Posted on 2002-03-12
3
125 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
Comment Utility
> 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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Controlling which port to download from 4 57
SSRS expression Issue finding a string 10 49
using Access 8 52
Using "ScreenUpdating" 6 45
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

762 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

13 Experts available now in Live!

Get 1:1 Help Now