Acara ADO EndOfRecordset


Referensi Objek Recordset Lengkap

Event adalah subrutin yang dapat dipanggil secara otomatis setelah operasi tertentu terjadi.

Event EndOfRecordset dipicu saat Anda mencoba untuk pindah ke record setelah record terakhir di Recordset. Event ini dapat terjadi jika record pointer berada di akhir Recordset dan method MoveNext dipanggil.

Tips: Anda bisa menggunakan kejadian ini untuk mengambil lebih banyak rekaman dari database dan menambahkannya ke akhir Kumpulan Rekaman, lalu ulangi panggilan MoveNext.

Catatan: Sebelum metode ini kembali, setel parameter status ke adStatusUnwantedEvent untuk mencegah notifikasi berikutnya.

Sintaksis

EndOfRecordset(moredata,status,objrs)

Parameter Description
moredata

A boolean value that if true it allows to append more data to the end of the Recordset

status

An EventStatusEnum value that indicates the status of the execution of the event

objrs The name of the Recordset Object that triggered this event

Nilai EventStatusEnum

Constant Value Description
adStatusOK 1 The operation that caused the event was successful
adStatusErrorsOccurred 2 The operation that caused the event failed
adStatusCantDeny 3 The operation that caused the event cannot be cancelled
adStatusCancel 4 The operation that caused the event is cancelled
adStatusUnwantedEvent 5 Prevents subsequent notifications before the event method has finished executing

Referensi Objek Recordset Lengkap