Syntax
| recordsetobject.Resync [AffectRecords][, ResyncValues]
| ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Refreshes the data in the current Recordset object by re-synchronizing records with the underlying (original) database.
The Resync method is used to re-fetch the data from the underlying data source and to update (resynchronize) the values in the current Recordset. Since this is not a re-query, new records in the database will not be added to the Recordset.
If you call this method on a server-side Recordset, you will get an error. Likewise, you cannot use this method on client-side, read-only Recordset objects.
If the call to this method fails because of conflicts with the underlying date (such as a record having been deleted), warnings will be returned to the Errors Collection and a run-time error will be generated.
This method has two optional parameters.
AffectEnum Constants
ResyncEnum Constants
| ||||||||||||||||||||||||||||||
See Also
| |||||||||||||||||||||||||||||||
Example
| objRecordset.Resync adAffectAll
|