NextField Method
Applies To
Selection object.
Description
Selects the next field. If a field is found, this method returns a Field object; if not, it returns Nothing.
Syntax
expression.NextField
expression An expression that returns a Selection object.
See Also
Field object, GoToNext method, Next method, Next property, Previous method, PreviousField method.
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"