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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

file is lock by other user

Status
Not open for further replies.

tkyap

Programmer
Sep 26, 2001
7
0
0
MY
when i wanna save(update changes) a particular file in public directory/drive(netware), it not allow me to save cause been access by other user, how to check(i mean code in VB) that file is lock by which user.
 
Hi,

you can open the recordset in a way that you lock the record in advance, so you are sure that what you typed in will be changed. If the record you want to lock is already locked by another user then you get a trappable error.

you have to change the locktype to adLockPessimistic

Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top