expression.RepaintObject(ObjectType, ObjectName)
expression Required. An expression that returns one of the objects in the Applies To list.
ObjectType Optional AcObjectType.
AcObjectType can be one of these AcObjectType constants. |
acDataAccessPage |
acDefault default |
acDiagram |
acForm |
acFunction |
acMacro |
acModule |
acQuery |
acReport |
acServerView |
acStoredProcedure |
acTable |
ObjectName Optional Variant. A string expression that's the valid name of an object of the type selected by the objecttype argument.
Remarks
For more information on how the action and its arguments work, see the action topic.
Using the RepaintObject method with no arguments (the default constant, acDefault, is assumed for the objecttype argument) repaints the active window.
The RepaintObject method of the DoCmd object was added to provide backwards compatibility for running the RepaintObject method in Visual Basic code in Microsoft Access 95. If you want to repaint a form, it's recommended that you use the existing Repaint method of the Form object instead.
Example
The following example repaints the table Customers:
DoCmd.RepaintObject acTable, "Customers"