ADO EndOfRecordset- evenement
❮Volledige recordsetobjectreferentie
Een gebeurtenis is een subroutine die automatisch kan worden opgeroepen nadat een specifieke bewerking heeft plaatsgevonden.
De gebeurtenis EndOfRecordset wordt geactiveerd wanneer u probeert naar een record te gaan na het laatste record in een Recordset. Deze gebeurtenis kan optreden als de recordaanwijzer zich aan het einde van de Recordset bevindt en de MoveNext-methode wordt aangeroepen.
Tip: U kunt deze gebeurtenis gebruiken om meer records uit een database op te halen en deze toe te voegen aan het einde van de recordset, en vervolgens de MoveNext-aanroep herhalen.
Opmerking: voordat deze methode terugkeert, stelt u de statusparameter in op adStatusUnwantedEvent om volgende meldingen te voorkomen.
Syntaxis
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-waarden
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 |
❮Volledige recordsetobjectreferentie