if not db is nothing then
if db.state=adstateopen then
db.close
end if
end if
kira2 kaya diatas (belum dicoba, tapi mestinya bener)
=======================
http://www.fire888.com
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] Behalf Of Sumardi Mardi
Sent: Thursday, July 26, 2007 8:07 AM
To: [email protected]
Subject: [Programmer-VB] Status Koneksi ADODB
guys ..
gimana cara mengetahui apakah sebuah koneksi yg dibuat dengan ADODB itu
sedang terbuka / terpakai atau tidak.
soalnya perintah untuk compact / repair database itu ... semua connection
kan harus tertutup ...
sehingga perintah db.close (db adalah connection) ... akan error jika db
tersebut belum di set atau memang sudah tertutup ...
satu lagi .... perintah On Error Resume Next ... koq sering gak respon
.... ada yg bisa kasih pencerahan ??
trims
mardhie - papua
----------------------------------------------------------------------------
--
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.19/918 - Release Date: 7/25/2007
2:55 PM