kalau dbpessimistic akan mengunci seluruh tabel yang terhubung dengan recordset, sehingga selama recordset dalam kondisi open, maka access tabel yang bersangkutan dari proses user lain pasti terkunci, bahkan open tabel pun di blok.
gunakan dboptimistic, yang hanya berlaku saat penyimpanan saja. aksan kurdin --- In [email protected], Ivan Leonardo <i...@...> wrote: > > Kasus : > Saya membuat suatu tombol yg isinya akan mengupdate fiels nilai di tabel > tes (mdb), misal nilai = nilai+1 dengan memakai recordset. > nah tombol ini akan ada di beberapa user (multiuser) > > Kebutuhan : > Jika user A sedang mau update nilai, Recordset.edit maka selama user A > blm selesai update user lain tidak bisa update. > > Masalah : > 1. Sy coba isi option locking dbpessimistic di openrecordset tapi selalu > nvalid argument, apakah option ini hanya utk ODBC ? > 2. Sy coba dari error trap no.3218 cuma bisa loop 1X setelah itu error > > ada yg punya ide lain ? > > Thanks > > --------------------------------------------------------------------------- > This message contains confidential information and is intended only for the > individual named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately by e-mail if you have received this e-mail by mistake and delete > this e-mail from your system. E-mail transmission cannot be guaranteed to be > secure or error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The sender > therefore does not accept liability for any errors or omissions in the > contents of this message, which arise as a result of e-mail transmission. If > verification is required please request a hard-copy version. >

