>> I read Jeff's question differently - there's a yes/no box on the form,
>> and *IF* the user selects "yes" in that box then (and only then) they
[quoted text clipped - 12 lines]
> allude to a single real-life domain (i.e. single, married, divorced,
> widowed).
What about if the question are "Are you widowed?", in which case the
question would be "How did your spouse die?"

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
John Nurick - 30 Aug 2005 07:31 GMT
>>> I read Jeff's question differently - there's a yes/no box on the form,
>>> and *IF* the user selects "yes" in that box then (and only then) they
[quoted text clipped - 15 lines]
>What about if the question are "Are you widowed?", in which case the
>question would be "How did your spouse die?"
Same difference: that's equivalent to the single question
If you are widowed, how did your spouse die? (If you
are not widowed please leave this field empty.)
Which I think brings us to the real point. As far as data storage goes,
the boolean field accompanying the text field is redundant.* But in the
UI it could well be much more effective to split the question and use
the state of the checkbox
Are you widowed?
to control whether the user is required to respond to
How did your spouse die.
*Assuming we can use a zero-length string to indicate not widowed,
leaving NULL for widowed status unknown, and something like "Not Known"
to indicate that the manner of the spouse's death is unknown. If that's
not good enough, maybe the boolean field is needed.
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
Tim Ferguson - 30 Aug 2005 16:42 GMT
> What about if the question are "Are you widowed?", in which case the
> question would be "How did your spouse die?"
... then the domain becomes
Single
Married
Divorced
Widowed by drowning
Widowed by electrocution
Widowed by poisoning
Widowed by etc, etc, etc.
It's still a closed set, i.e. mutually-exclusive and (in context)
exhaustive. Eventually, of course, the whole thing becomes a (set of)
entities in its own right, if the semantics of the original business
situation requires it.
Just a thought...
Tim F
I see your point - thanks for clarifying.
Susan
>> I read Jeff's question differently - there's a yes/no box on the form,
>> and *IF* the user selects "yes" in that box then (and only then) they
[quoted text clipped - 21 lines]
>
> Tim F