Informix Error -1124
-1124 This field requires an entered value.
The cursor is in a form field that has been designated REQUIRED. You must enter some value before the cursor can move on to another field. However, to enter a null value, type any printable character and then backspace. Alternatively, you can cancel the form entry with the Interrupt key (usually CTRL-C, but see the operating instructions that the program author supplied).
For 4GL programs, -1305 replaces this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1124 fires when the cursor tries to leave a form field marked REQUIRED without a value having
been entered — per the official guidance, -1305 is the equivalent error for 4GL programs
specifically.
- Attempting to move off a
REQUIREDfield with no value entered, per the official guidance — the direct, only cause.
Solutions / Resolution
- Enter a value before moving to another field, per the official guidance.
- To enter a null value on a
REQUIREDfield, type a character then backspace, per the official guidance's documented workaround. - Use the Interrupt key (typically
CTRL-C) to cancel form entry entirely, per the official guidance, if that's the actual intent.
Examples
The form specification's REQUIRED attribute
ATTRIBUTES
order_id = order_id,
REQUIRED;
Tabbing away from this field with nothing entered triggers -1124.
Diagnostic Checks
- Check whether the field is marked
REQUIREDin the form specification, and enter a value (or the type-then-backspace workaround for a null) before moving on.
Related Errors / Related Topics
- -1125 — "Type again for verification." A related form-entry error, about a
VERIFYfield's double-entry requirement rather than aREQUIREDfield's must-have-a-value rule. - -1305 — The 4GL-program equivalent of this same
REQUIRED-field condition.
A REQUIRED field needs a value (or the type-then-backspace workaround for null) before moving
on (see -1305 for the 4GL-program equivalent).