NextField Method

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


expression Required. An expression that returns a Selection object.


This example updates the next field in the selection.

If Not (Selection.NextField Is Nothing) Then
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