Sue,
Appreciate your suggestion but I'm not clear about using the Item_Write
event handler or the Validation field. Tried using the formula you suggested,
[FieldName] <> "", in the Validation field but it didn't stop a user from
sending a form with empty required fields.
Or were you suggesting [FieldName] <> "" written into the code in the
Item_Write event handler? If so, for a form with 9 lines/8 fields per line
what are the conventions in writing a code string as far as parenthesis,
brackets, commas etc. to enable 4 fields (all text) on each line to be
required, if and only if, one field on a line has an entry.
"Sue Mosher [MVP-Outlook]" wrote:
> You have to use either a formula or code in the Item_Write event handler.
> Think about what you'll accept as "good" data and what other constraints
> (such as a combo box with a match required) are operating on those fields.
>
> FYI, IIf() is almost never used in validation formulas, which must evaluate
> to either True or False. If these fields are text fields, you can use this
> formula on each one:
>
> [FieldName] <> ""
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "RF Office user" <(E-Mail Removed)> wrote in message
> news
A193CD0-FD40-4311-9CE2-(E-Mail Removed)...
> > In a form to request that a distribution center not pick a
> > product/products,
> > I want the alpha-numeric Model # field and the Reason field on each of
> > nine
> > lines to be a required entry. I have tried Properties such as Validation
> > "A
> > value is required for this field" but that led to errors in using the
> > template. Also tried using some formulas but the Model # list and Reason
> > list
> > is quite extensive and can't be used in an expression such as IIf( expr ,
> > truepart , falsepart ). So how do I make fields required?
>
>
>