Microsoft KB Archive/96104

= ACC: When to Use Requery, Repaint, or Records Refresh =

Article ID: 96104

Article Last Modified on 1/18/2007

-

APPLIES TO


 * Microsoft Access 1.0 Standard Edition
 * Microsoft Access 1.1 Standard Edition
 * Microsoft Access 2.0 Standard Edition
 * Microsoft Access 95 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q96104



Novice: Requires knowledge of the user interface on single-user computers.



SUMMARY
Although the Requery, Repaint, and Records Refresh items are different, you can use each of them to ensure that what you see on the screen is updated.



Requery
The Requery macro action updates controls, such as list boxes and combo boxes. It works for the form on which those controls exist only if you don't include arguments.

Repaint
Repaint is not related to data; it merely redraws the object or control. If there is data that has been updated in the underlying dynaset but is not reflected on the form, you cannot use Repaint.

Records Refresh
Records Refresh requeries the form itself, as opposed to any control on the form.

Keywords: kbinfo kbusage KB96104

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.