NextField Method

Selects the next field. If a field is found, this method returns a Field object; if not, it returns Nothing.

expression**.NextField**

expression Required. An expression that returns a Selection object.

Example

This example updates the next field in the selection.

If Not (Selection.NextField Is Nothing) Then
    Selection.Fields.Update
End If

This example selects the next field in the selection, and if a field is found, displays a message in the status bar.

Set myField = Selection.NextField
If Not (myField Is Nothing) Then StatusBar = "Field found"

Applies to | Selection Object

See Also | Field Object | GoToNext Method | Next Method | Previous Method | PreviousField Method