The RepaintObject method carries out the RepaintObject action in Visual Basic. For more information on how the action and its arguments work, see the action topic.
Syntax
DoCmd.RepaintObject [objecttype, objectname]
The RepaintObject method has the following arguments.
Argument | Description |
---|---|
objecttype | One of the following intrinsic constants: |
acDataAccessPage acDefault (default) acDiagramacForm acMacro acModule acQuery acReport acServerView acStoredProcedure acTable |
|
objectname | A string expression that's the valid name of an object of the type selected by the objecttype argument. |
Remarks
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.