Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
69 lines (35 loc) · 1.98 KB

attachment-requery-method-access.md

File metadata and controls

69 lines (35 loc) · 1.98 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
Attachment.Requery Method (Access)
vbaac10.chm13908
vbaac10.chm13908
access
Access.Attachment.Requery
6af04ea8-02cb-9eda-439d-6c69cd772891
06/08/2017

Attachment.Requery Method (Access)

The Requery method updates the data underlying a specified control that's on the active form by requerying the source of data for the control.

Syntax

expression. Requery

expression A variable that represents an Attachment object.

Remarks

You can use this method to ensure that a form or control displays the most recent data.

The Requery method does one of the following:

  • Reruns the query on which the form or control is based.

  • Displays any new or changed records, or removes deleted records from the table on which the form or control is based.

  • Updates records displayed based on any changes to the Filter property of the form.

Controls based on a query or table include:

  • List boxes and combo boxes.

  • Subform controls.

  • OLE objects, such as charts.

  • Controls for which the ControlSource property setting includes domain aggregate functions or SQL aggregate functions.

If you specify any other type of control for the object specified by expression, the record source for the form is requeried.

If the object specified by expression isn't bound to a field in a table or query, the Requery method forces a recalculation of the control.

If you omit the object specified by expression, the Requery method requeries the underlying data source for the form or control that has the focus. If the control that has the focus has a record source or row source, it will be requeried; otherwise, the control's data will simply be refreshed.

If a subform control has the focus, this method requeries the record source only for the subform, not the parent form.

Note

See also

Concepts

Attachment Object