J
Joe Obertin
I am working on a fossil database in Access 97 and an stumped on how to build
a conditional relationship. I have 3 main tables (age, specimen, and fossil)
that are pretty straightforward. The problem I am encountering is that I
also have a group of tables for each of the animal phylums. These tables
have 100 to 700 records and each record has about 30 fields containing
phylum, subphylum, class, subclass, etc. Each fossil is related to one
phylum and therefore one table. In each fossil record, I have 2 fields set
up to do the link - a plylum field and a record number field. The phylum
value is the table name that contains the correct number and the record
number is the record number in the selected phylum that contains the correct
information. To get it to work properly in forms and reports, I thought
about using the CASE statement in VB to build the relationship as it read
each record, but I was unable to figure out how to make it work. Any advise
on how to make this work would be greatly appreciated or if I should set
things up differently. I am hoping to keep the phylums in separate tables,
but if the only way to make this work is to combine all phylums into one big
table, I can do that. Thanks much. joe
a conditional relationship. I have 3 main tables (age, specimen, and fossil)
that are pretty straightforward. The problem I am encountering is that I
also have a group of tables for each of the animal phylums. These tables
have 100 to 700 records and each record has about 30 fields containing
phylum, subphylum, class, subclass, etc. Each fossil is related to one
phylum and therefore one table. In each fossil record, I have 2 fields set
up to do the link - a plylum field and a record number field. The phylum
value is the table name that contains the correct number and the record
number is the record number in the selected phylum that contains the correct
information. To get it to work properly in forms and reports, I thought
about using the CASE statement in VB to build the relationship as it read
each record, but I was unable to figure out how to make it work. Any advise
on how to make this work would be greatly appreciated or if I should set
things up differently. I am hoping to keep the phylums in separate tables,
but if the only way to make this work is to combine all phylums into one big
table, I can do that. Thanks much. joe