ValidateControls Method

       

Ensures that the contents of the last control on the form are valid before exiting the form.

Syntax

object.ValidateControls

The object placeholder represents an object expression that evaluates to an object in the Applies To list. If object is omitted, the Form with the focus is assumed to be object.