G
Guest
In my database I have 3 tables that show what stock I have or have ever had.
They are called [Teas], [Ceramics] and [Gifts]. Their primary keys are
[TeaCode], [ProductCode] and [GiftCode], resp. (At the moment each of the
above fields has a different format but if it would make life much easier
they can be redefined.) Now I want to add another table [Daily Sales] where I
need to enter fields [Date] and
They are called [Teas], [Ceramics] and [Gifts]. Their primary keys are
[TeaCode], [ProductCode] and [GiftCode], resp. (At the moment each of the
above fields has a different format but if it would make life much easier
they can be redefined.) Now I want to add another table [Daily Sales] where I
need to enter fields [Date] and
Code:
. This [Code] should accept an entry of
either of the 3 primary key fields mentioned above. Or I can have 3 fields
with names corresponding to the primary key fields. In either way I would
like the database to keep the referential inegrity between the [Daily Sales]
and the other 3 tables. Is there some way of doing this? (I am not really
familiar with Access code, so it would help if I could build the database in
design view.)