G
Guest
My problem is a basic one of trying to understand how to construct drop-down
lists. I am very confused about what Access does with drop-down lists. Let
me state my understanding, and somebody please tell me if I am right or
correct me if I am wrong.
In Access Tables, the use of the Lookup Wizard causes problems because an ID
number is referenced instead of the actual data value, and at some point this
might cause a problem if queries are dependent upon the data in a Lookup
field (this is regardless of whether it is a Lookup Field or a Value List.)
On the other hand, Subforms within a Main Form can be used to enter data
from a drop down list but require an underlying Relationship between two
tables.
However, relationships need to be created with a junction table if the
tables exist in a many-to-many relationship.
An example may help. In a patient database, the gender is asked for. How
to create a drop down list in a subform with “Male†or “Female†as the
choices? There are two underlying tables, “tblDemographics†and “tblGenderâ€.
The two tables will obviously have a many-to-many relationship, and
according to what I have read, will need a junction table to establish this
relationship.
However, in my reading it seems that Forms and Subforms relate on a ‘one’
(the MainForm†to ‘many’ (the SubForm) relationship.
If everything I have stated is true, how can a Form/Subform be constructed
for the example given?
The same question holds for other similar drop down lists. Another example,
a drop down list for a clinical score consisting of 6 choices of clinical
condition. Again obviously a many-to-many relationship.
Also, please let me know if there is some easier way to perform this task
that I am overlooking.
Tx
lists. I am very confused about what Access does with drop-down lists. Let
me state my understanding, and somebody please tell me if I am right or
correct me if I am wrong.
In Access Tables, the use of the Lookup Wizard causes problems because an ID
number is referenced instead of the actual data value, and at some point this
might cause a problem if queries are dependent upon the data in a Lookup
field (this is regardless of whether it is a Lookup Field or a Value List.)
On the other hand, Subforms within a Main Form can be used to enter data
from a drop down list but require an underlying Relationship between two
tables.
However, relationships need to be created with a junction table if the
tables exist in a many-to-many relationship.
An example may help. In a patient database, the gender is asked for. How
to create a drop down list in a subform with “Male†or “Female†as the
choices? There are two underlying tables, “tblDemographics†and “tblGenderâ€.
The two tables will obviously have a many-to-many relationship, and
according to what I have read, will need a junction table to establish this
relationship.
However, in my reading it seems that Forms and Subforms relate on a ‘one’
(the MainForm†to ‘many’ (the SubForm) relationship.
If everything I have stated is true, how can a Form/Subform be constructed
for the example given?
The same question holds for other similar drop down lists. Another example,
a drop down list for a clinical score consisting of 6 choices of clinical
condition. Again obviously a many-to-many relationship.
Also, please let me know if there is some easier way to perform this task
that I am overlooking.
Tx