Syntax
| recordsetobject.Requery [Options]
| ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Used to update (refresh) the data in a Recordset object.This is essentially equivalent to a Close followed by an Open.
The Requery method is called to update all of the records in an open Recordset by re-executing the query to the database that originally created the Recordset.
If you need to change any of the property settings, you will have to call Close on the Recordset and then make the desired changes. This is because the properties are read-only when the Recordset is open and are read/write when the Recordset is closed.
If you are in the process of adding a new record or editing the current record, an error will be generated if you call this method.
If your database can be accessed by other users, it is quite possible that the new Recordset generated by the Requery will differ, perhaps significantly, from the previous Recordset.
There is one optional parameter.
ExecuteOptionEnum Constants
Note:
| ||||||||||||||||||||||
See Also
| |||||||||||||||||||||||
Example
| objRecordset.Requery
|