Freigeben über


Recordset2.BatchCollisions-Eigenschaft (DAO)

Gilt für: Access 2013, Office 2013

Syntax

Ausdruck . BatchCollisions

Ausdruck Eine Variable, die ein Recordset2-Objekt darstellt.

Hinweise

Diese Eigenschaft enthält ein Array von Lesezeichen für Zeilen, die beim letzten Versuch einer Batchaktualisierung (Aufruf von Update ) einen Konflikt verursacht haben. Die BatchCollisionCount -Eigenschaft gibt die Anzahl der Elemente im Array an.

Wenn Sie die Bookmark -Eigenschaft des Recordset-Objekts festlegen, um Werte im BatchCollisions-Array mit einem Lesezeichen zu versehen, können Sie zu jedem Datensatz navigieren, der beim letzten Batchaktualisierungsvorgang nicht verarbeitet werden konnte.

After the collision records are corrected, you can call the batch mode Update method again. At this point DAO attempts another batch update, and the BatchCollisions property again reflects the set of records that failed the second attempt. Any records that succeeded in the previous attempt are not sent in the current attempt, as they now have a RecordStatus property of dbRecordUnmodified. This process can continue as long as collisions occur, or until you abandon the updates and close the result set.

Dieses Array wird bei jeder Ausführung einer Update-Methode im Batchmodus neu erstellt.