Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

ADO CancelBatch 方法


❮ Recordset 对象完整参考

CancelBatch 方法取消批处理更新。调用此方法时,Recordset 必须处于批处理更新模式。

由于您不知道调用此属性后当前记录将是什么,因此您必须移动到已知记录。例如,在调用此方法后,您可以调用 MoveFirst 或 MoveLast 方法。

如果此方法失败,提供程序将不会停止执行,但会向 Errors 集合发送警告。

语法

objRecordset.CancelBatch affectrec

参数 描述
affectrec 可选。一个 AffectEnum 值,指示此方法将影响哪些记录

AffectEnum 值

常量 描述
adAffectCurrent 1 仅影响当前记录
adAffectGroup 2 仅影响满足 Filter 设置的记录(Filter 必须设置为 FilterGroupEnum 值或书签数组)
adAffectAll 3 如果没有 Filter,则影响所有记录。如果 Filter 设置为字符串条件,则仅影响当前章节中的可见记录。如果 Filter 设置为 FilterGroupEnum 值或书签数组,则影响 Recordset 的所有行
adAffectAllChapters 4 影响所有子 Recordset 中的所有记录,包括当前应用的过滤器隐藏的记录

❮ Recordset 对象完整参考
×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.