Hello,
If you need to set this up programatically you could change the data
validation so it is reliant on another field in your data source, and not use
the "Cannot be blank" checkbox . For example, you create a True/False field
called "ValidateMe" and then add a data validation item to your field so that:
MyField "is not blank" AND ValidateMe "is equal to" "1"
You could then set the "ValidateMe" field to true or false depending on
whether you want your field to be blank or not. The setting of the
"ValidateMe" field could be done via code.
HTH
Gavin.
> We're currently working on a project using InfoPath 2007 Serverside Forms, we
> have the need to set the "Cannot be blank" property of a control at runtime
[quoted text clipped - 4 lines]
> Thanks
> Rick