, you must
make the control's field required. Depending on how
you want to display error alerts and the flexibility of your form template, you
can make the field required by
displaying either a standard error message or a custom error message.
Note If your form template prevents you from selecting the Cannot be blank check box in a control's Properties dialog box, you will need to display a custom error message.
Display a standard error message
when
a control is left blank
- In design mode, double-click the control whose field you want to make required.
- In the Properties dialog box, select the Cannot be blank check box.
Display a custom error message when
a control is left blank
- In design mode, select the control whose field you want to make required, and then click Data Validation on the Format menu.
- In the Data Validation dialog box, click Add.
- Make sure that the first box under If this condition is true contains the control's field.
- In the second box, click is blank.
- In the Error alert type box, click the type of error alert you want to display to users.
- In the ScreenTip box, type the text you want to display when a user rests the insertion point on the control or right-clicks the control.
- In the Message box, type the text you want to display in the dialog box either immediately (if you chose a dialog box alert) or when the user requests more details (if you chose an inline alert).