ADO EndOfRecordset Event


❮ Voltooi rekordstel-objekverwysing

'n Gebeurtenis is 'n subroetine wat outomaties geroep kan word nadat 'n spesifieke operasie plaasgevind het.

Die EndOfRecordset-gebeurtenis word geaktiveer wanneer jy probeer om na 'n rekord na die laaste rekord in 'n Recordset te beweeg. Hierdie gebeurtenis kan voorkom as die rekordwyser aan die einde van die Rekordstel is en die MoveNext-metode genoem word.

Wenk: Jy kan hierdie gebeurtenis gebruik om meer rekords van 'n databasis af te haal en dit aan die einde van die Rekordstel te voeg, en dan die MoveNext-oproep herhaal.

Let wel: Voordat hierdie metode terugkeer, stel die statusparameter op adStatusUnwantedEvent om daaropvolgende kennisgewings te voorkom.

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

EventStatusEnum-waardes

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

❮ Voltooi rekordstel-objekverwysing