Learning as I go, and "Knowledge a bloody entrance doth make!"
Let me be a bit more specific about the fields and what I have tried so
far.
The parent field is "category of disease" with 16 types of disease which
are
defined in a combo box. There are two responses in the combo box which
have
to do with infection which call for additional information in the next
field
in the table "infection". The infection field also has a combo box
defining
7 types of infections. I want to control use of the "infection" combo box
so
data is only entered if one of the two infection values in chosen in the
"category of disease" field, otherwise I want to have the "infection"
field
remain null.
As I understand it, Access will not allow fields to be used as part of
validation rules in tables. That being so, I decided to control the data
input by creating a form which has "category of disease" in a parent form,
and "infection" in a subform of that field. My problem now is twofold: 1)
I'm not sure I'm heading in the correct direction at all!, and 2) with my
limited knowledge of Access I do not know how to formulate a statement for
a
validation rule which will control input in the "infection" field. One
option seems to be an Iff statement like,
"Iff([Forms]![frmInfection]![Category]=("Pleura - Infection" Or "Lung -
Infection"), "
but then I am not sure how to formulate a true and false statement to
allow
input from the "infection" combo box or to mandate a null input for a
false
response.
Let me know if you think is a reasonable approach or if I need something
entirely different including possibly a macro or more invovled structure.
Tx
MacDermott said:
Maybe I'm missing something, but it doesn't sound messy at all to me.
I'd say go ahead and do the form/subform structure, and post back if you
run
into specific difficulties.
I am working on a clinical database requiring national harvest and
structure
dictated by national entity. They require fields which have a
parent-child
relationship to be part of the same table. Is it possible to set up a
form/subform for the parent-child fields if the fields are in the same
table?
Tx
Rocky