borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Next Topic (Accessing Access 2000 with VB6) New Topic New Poll Post Reply
AndreaVB Forum : Database : adLockOptimistic
Poster Message
aminchar
Level: Trainee

Registered: 04-06-2008
Posts: 1

icon adLockOptimistic

In Microsoft Access using mdb file as data store when the form property: "Record Locks" is set to "Edited Record" the form uses pessimistic locking. If one user is editing a particular record the other user can view the previously saved record but cannot edit it. All the fields are simply locked. Also the record selected shows "editing in progress" icon.

In VB with ADODC control I cannot reproduce/duplicate the above behavior no matter what data source I am using even with cursor location set to server and locking set to adLockPessimistic. Both users are able to edit the text in their text boxes but only the first updater of record gets to update while the second receives error message that record has been changed! Is there any way I can duplicate the way MS Access does as above. It seems that editing a bound textbox does not trigger a locking of that record or another users textbox.

04-06-2008 at 02:37 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : adLockOptimistic
Next Topic (Accessing Access 2000 with VB6) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Il portale per lui e lei | Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2008 Andrea Tincaniborder