Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record locking using ADO with Access Database

Status
Not open for further replies.
Oct 5, 1999
105
GB
How do you use record locking with ADO? It seems to lock the whole file, regardless of the record set I read. In Access itself you can specify row locking so obviously it can be done, but what do you need to do in VB.
 
When you open the recordset, you use an option, ie, from the Help file for ADO Recordset:<br>rst.Open Source, ActiveConnection, CursorType, LockType, Options
 
Thanks for your comments.<br><br>I have tried setting cursor location = adUseServer and cursortype = adOpenKeyset and locktype = adLockPessimistic but it still locks the whole Access table.<br><br>Is there something else I should try?
 
Try the <br><br>&nbsp;&nbsp;location = adUseClient <br><br> <p> <br><a href=mailto: > </a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top