Microsoft KB Archive/291411

= OL2002: ErrMsg: A Field on This Form Requires a Value =

Article ID: 291411

Article Last Modified on 2/26/2004

-

APPLIES TO


 * Microsoft Outlook 2002 Standard Edition

-



This article was previously published under Q291411





SYMPTOMS
When you send, save, or post an item that uses a custom form, you may receive the message:

A field on this form requires a value.

When you click OK, the control that requires input may or may not have the focus, or insertion point.



CAUSE
When the form was designed, one or more fields were set so that you must enter data into the fields before the item can be saved. If you are using the form, you must enter data into the appropriate field.

However, there may also be a problem with the design of the custom form. If you are the form developer, you may have set a field to require a value, but later decided not to use the field on the form. If you do not delete the field from the item, then the user will be prompted to enter data even though the field is not available on the form. This is because the validation applies to the field, not the control which is used to display the field. For additional information about the difference between fields and controls, click the article number below to view the article in the Microsoft Knowledge Base:

290655 Ol2002: Overview of Using Fields and Controls on Custom Forms



RESOLUTION
Use either of these two methods to resolve the problem.

Complete the Field that Requires Input
After you click OK, focus may move to the control that requires input. However, there may be more than one control on the form requiring input. Until all the controls that require input are completed, you will continue to get the error.

Delete the Field from the Form
NOTE: These steps assume you deleted a control from the form but did not delete the field that the control was bound to.
 * 1) Open the form. On the Tools menu, click Design This Form.
 * 2) Click the All Fields tab. Click to select the field that is no longer used, and then click Delete.
 * 3) Click Yes to confirm that you wish to delete the field.

There may be more than one field that requires input on your form. There is no direct way to determine the field that is generating the validation message. To find the field that is creating the message, you will need to use a process of elimination. You can type a test value next to one or more of the fields on the All Fields page of the form, and then test the form. If you have many fields to test, you may wish to set values in half of the fields, test the form, and then repeat the process until you can determine which fields are generating the message.



MORE INFORMATION
