DoCmd.RepaintObject (Access)
The RepaintObject method carries out the RepaintObject action in Visual Basic.
You can use the RepaintObject method to complete any pending screen updates for a specified database object or for the active database object, if none is specified. Such updates include any pending recalculations for the object's controls. 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, we recommend that you use the existing Repaint method of the Form object instead.
RepaintObject (ObjectType, ObjectName)
DoCmd.RepaintObject acTable, "Customers"
Arguments
Optional arguments
The following arguments are optional
ObjectType (AcObjectType) - An AcObjectType constant that specifies the type of object to repaint.
Here you can find possible values for
ObjectName (String) - A string expression that's the valid name of an object of the type selected by the ObjectType argument.