Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ACC2000: When to Use Requery, Repaint, or Records Refresh


View products that this article applies to.

This article was previously published under Q209634
Novice: Requires knowledge of the user interface on single-user computers.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

↑ Back to the top


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.

↑ Back to the top


More information

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.

↑ Back to the top


Keywords: KB209634, kbinfo

↑ Back to the top

Article Info
Article ID : 209634
Revision : 2
Created on : 6/29/2004
Published on : 6/29/2004
Exists online : False
Views : 271