Errormessage "A field requires a Value"

E

escamoteur

Hi,

I have a custom form region in Outlook 2007 defined. It worked fine as long as I only used Custom Fields bound to my controls. Now I
decided to use the "Subject" Field on the form. Since then. When I create a new item and choose "Save and Close" I get an error
message that "one field on the form requires a value" although I have entered a value into the Subject Control. I really have no
idea what the problem is.

All the best
Tom
 
S

Sue Mosher [MVP]

The symptoms suggest that one or more fields have simple validation (i.e.
require a validation) set on them, not necessarily the Subject field. Did
you perhaps add a field, set validation, then later remove that field?

It's best never to use simple validation, but instead to use a validation
formula and an explicit validation message to the user that gives the name
of the field under validation.
 
E

escamoteur

I enabled for the subject field that it requires content, but I disabled it again. Any idea what I could do?
 
S

Sue Mosher [MVP]

I'd check and make sure that validation setting is really and truly
disabled. You wouldn't be getting the warning if it weren't still active.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
E

escamoteur

I did this several times. I even deleted the control an added it again from Fieldchooser. Also it does not place the curso in any
specific control after the message.
 
S

Sue Mosher [MVP]

Deleting the control won't change the validation setting, which is stored as
part of the property. If you've checked and double-checked the Subject
property, maybe the problem is somewhere else, on a different property,
perhaps even one whose control you removed earlier. That would certainly fit
the symptoms.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
E

escamoteur

How can I check the valiation setting of a field besides the settings dialog of a control?
 
S

Sue Mosher [MVP]

I don't know of any other method. When simple validation is used, it doesn't
leave any indicator in the UserProperty.ValidationFormula property.
However, the UserProperties collection will contain any standard properties
that have had validation set on them, so iterating that collection and
getting a list of the properties might provide a clue.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top