Training
Module
Work with queries in Dynamics 365 Business Central - Training
Learn how to work with the Query object in Dynamics 365 Business Central to join, filter, and aggregate data.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to: Access 2013, Office 2013
Updates the data in a Recordset object by re-executing the query on which the object is based.
recordset.Requery Options
Name | Description |
---|---|
Options | Optional. A bitmask that contains ExecuteOptionEnum and CommandTypeEnum values affecting this operation. |
Note
If Options is set to adAsyncExecute, this operation will execute asynchronously and a RecordsetChangeComplete event will be issued when it concludes.
The ExecuteOpenEnum values of adExecuteNoRecords or adExecuteStream should not be used with Requery.
Use the Requery method to refresh the entire contents of a Recordset object from the data source by reissuing the original command and retrieving the data a second time. Calling this method is equivalent to calling the Close and Open methods in succession. If you are editing the current record or adding a new record, an error occurs.
While the Recordset object is open, the properties that define the nature of the cursor (CursorType, LockType, MaxRecords, and so forth) are read-only. Thus, the Requery method can only refresh the current cursor. To change any of the cursor properties and view the results, you must use the Close method so that the properties become read/write again. You can then change the property settings and call the Open method to reopen the cursor.
Training
Module
Work with queries in Dynamics 365 Business Central - Training
Learn how to work with the Query object in Dynamics 365 Business Central to join, filter, and aggregate data.
Documentation
Office developer client VBA reference documentation
Find method - ActiveX Data Objects (ADO)
Office developer client VBA reference documentation
Seek method - ActiveX Data Objects (ADO)
Office developer client VBA reference documentation