Form Method

Displays a custom form. The Form method produces an error if a resource form is specified when the active view is a task view, and vice versa.

Syntax

expression**.Form(Name)**

*expression   *     Optional. An expression that returns an Application object.

Name    Optional String. The name of a custom form. The default is a task form when the active view is a task view, and a resource form when the active view is a resource view.

Example

The following example displays the Cost Tracking form.

Sub DisplayCostTrackingForm
    Form("Cost Tracking")
End Sub

Applies to | Application Object

See Also | CustomForms Method | InformationDialog Method