Phương thức yêu cầu ADO
❮ Tham chiếu đối tượng tập bản ghi hoàn chỉnh
Phương thức Yêu cầu cập nhật dữ liệu trong Tập bản ghi bằng cách thực hiện lại truy vấn đã tạo Tập bản ghi ban đầu.
Mẹo: Sử dụng phương pháp này để làm mới toàn bộ nội dung của Tập bản ghi.
Lưu ý: Với phương pháp này, bạn gọi các phương thức Đóng và Mở trong một.
Cú pháp
objRecordset.Requery options
Parameter | Description |
---|---|
options | Optional. Specifies how to execute this command. Can be an ExecuteOptionEnum value |
Giá trị ExecuteOptionEnum
Constant | Value | Description |
---|---|---|
adOptionUnspecified | -1 | Unspecified command |
adAsyncExecute | 16 | The command should execute asynchronously. Cannot be combined with the CommandTypeEnum value adCmdTableDirect |
adAsyncFetch | 32 | The remaining rows after the initial quantity specified in the CacheSize property should be retrieved asynchronously |
adAsyncFetchNonBlocking | 64 | The main thread never blocks while retrieving. If the requested row has not been retrieved, the current row automatically moves to the end of the file. If you open a Recordset from a Stream containing a persistently stored Recordset, adAsyncFetchNonBlocking will not have an effect; the operation will be synchronous and blocking. adAsynchFetchNonBlocking has no effect when the adCmdTableDirect option is used to open the Recordset |
adExecuteRecord | 512 | The CommandText is a command or stored procedure that returns a single row which should be returned as a Record object |
❮ Tham chiếu đối tượng tập bản ghi hoàn chỉnh