Stops the execution of the code causing a run-time error, and creates an error message for a field.

Record.FIELDERROR(Field, [Text])



Type: Record

The record that contains the field.


Type: Field

The field for which you want to create an error message.


Type: Text or code

Use this optional parameter to include the text of the error message. If you do not use this parameter, default text will be used as shown in the following examples. You can use backslashes (\) to break lines.

Expand imageRemarks

Expand imageProgramming Guidelines

Expand imageExample

Expand imageSee Also