I
Italian Pete
Hi,
I'm trying to link a "loans" table to an "equipment to be loaned" table
.. I'm doing this via an intermediary table called "loan line" so as to avoid
the many to many relationship which would exist between the direct join of
the "loans" and "equipment" tables.
All well and good.
However, the thing has grown and I now have various different equipment
tables each having different fields (e.g. there is a "laptops" table with
fields for RAM, HDD Size etc and a "Mobile Phone" table with fields like
"SIM Card", "No. Bands" etc) I want to link all of these different equipment
tables to the loan table via the lookup table.
However, Access gets upset when I try to do this with Referential Integrity.
I think it would like me to have the one generic "equipment" table but I
can't do this due to the different types of fields rrequired for each type of
equipment.
How can I get round this problem.? I thought of having another table with
two fields: "Equipment ID" and "TableSource" with bothe fields being the
primary key. This table would tell me which specific equipment table to look
in for the required piece of equipment but how would I then link that to the
loans table?
Am I thinking in the right direction?
Any help much appreciated.
I'm trying to link a "loans" table to an "equipment to be loaned" table
.. I'm doing this via an intermediary table called "loan line" so as to avoid
the many to many relationship which would exist between the direct join of
the "loans" and "equipment" tables.
All well and good.
However, the thing has grown and I now have various different equipment
tables each having different fields (e.g. there is a "laptops" table with
fields for RAM, HDD Size etc and a "Mobile Phone" table with fields like
"SIM Card", "No. Bands" etc) I want to link all of these different equipment
tables to the loan table via the lookup table.
However, Access gets upset when I try to do this with Referential Integrity.
I think it would like me to have the one generic "equipment" table but I
can't do this due to the different types of fields rrequired for each type of
equipment.
How can I get round this problem.? I thought of having another table with
two fields: "Equipment ID" and "TableSource" with bothe fields being the
primary key. This table would tell me which specific equipment table to look
in for the required piece of equipment but how would I then link that to the
loans table?
Am I thinking in the right direction?
Any help much appreciated.