Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to lock a record and say the user cannot change this
Message
From
23/09/2003 13:56:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/09/2003 13:42:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00831594
Message ID:
00831608
Views:
16
I seldom use record locking. Instead, I use optimistic buffering. Only when two users try to save the same record will there be a potential conflict (detected by VFP), otherwise not.

>Hi!
>
>I have a problem:
>* Many users of the same form = No problem.
>* Users using different records in the form = No problem
>* Users trying to change the same field of the same record = Problems.
>
>Especially in comboboxes which RowsourceType is a table
>
>Results: the last user is expulsed of the form with this message:
> "Cannot access the selected table"
>
>Set Exclusive is off
>
>What to manage this problem?
>
>I would like to lock the record used by the first user, and say the last user who wish to change the record: "Record is in use by another one..."... but don´t know how exactly lock just the record...and when (and where -event-)to send the message.
>
>Can Anyone help me?.
>
>Thanks in advance.
>Carlos Burgos
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform