If it worked in the table, then it will block the record in the form as
well. Can you be more precise about 'did not carry over to the form'? Do you
mean you did not get the message? Or that the value could be saved even if
it did not meet the rule? AFAIK, there is no way Access can save a bad value
in the table (even through the form) if it does not meet the rule.
Yes: you can add further rules. Be careful with the bracketing: as you are
mixing ANDs and ORs, you need to be clear here.
I'm wondering about whether it is really justified to have both pairs of
field though? Would it be possible to interpret a blank Target Print Date to
mean that Print is false, and so the dependent yes/no field is actually
redundant? As far as possible, we try to avoid both redundant fields and
dependent fields in a normalized database.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
"Task Database Nightmare" <
[email protected]>
wrote in message
Ok - that worked in the table but it did not carry over to the form I
already
created. Do I need to recreate the form? And ideally I would like to add
2
other instances of the same type of rule - just with other Yes/No Fields.
Can
I use the AND function and add the other 2 rules?
Allen Browne said:
In table design view, open the Properties sheet.
Beside the Validation Rule in the Properties sheet, enter:
([Print] = False) OR ([Target Print Date] Is Not Null)
Don't use the Validation Rule in the lower pane of table design: that one
applies to one field only, and you are comparing fields.
For an explanation, see:
http://allenbrowne.com/ValidationRule.html
Basicallly, the rule is satisfied if Print is not checked; otherwise it
is
only satisfied if Target Print Date has a value.
"Task Database Nightmare" <Task Database
(e-mail address removed)> wrote in message
I have a complexed table that will be used to create several queries,
forms
and tables. Have can I make a field required after someone chooses Yes
from
a Yes/No Field.
Example: If you choose Yes to Print, then I want the Target Print Date
to
be required.