K
Kim Weiss
I am beginner with db's so this maybe very simple question or misunderstood
by me but let's try.
I am trying create db to record my customer jobs and car trips.
I have three tables
ClientTBL, -ClientID (pk) (no problem)
WorkTBL, (-WorkID), - ClientID (fk)(pk), - Startdate(pk)
TripTBL, -TripID (pk), -ClientStartdate (fk) (<-this is the WorkTBL
composite pk)
Idea is to bring ClientId as fk to WorkTBL as identify client. Then make
composite pk to WorkTBL combining ClientID and Startdate. And bring this
composite pk to TripTBL as fk. And why? This way I could make dropdown box to
TripTBL to choose work-client combination which trip is made for. Both
client and startdate is shown in one cell. Would be nice![Wink ;) ;)](/styles/default/custom/smilies/wink.gif)
I can make composite pk of ClientID and Startdate but I can't bring it to
TripTBL as fk. Is it because there is date and number, should it be number
and number? Is it even possible?
Am I missing something? Any ideas? I coundn't find single page concerning
this kind of case, and believe me I seached it for hours. (I'm using Access
2007 btw).
Thanks!
-Kim-
by me but let's try.
I am trying create db to record my customer jobs and car trips.
I have three tables
ClientTBL, -ClientID (pk) (no problem)
WorkTBL, (-WorkID), - ClientID (fk)(pk), - Startdate(pk)
TripTBL, -TripID (pk), -ClientStartdate (fk) (<-this is the WorkTBL
composite pk)
Idea is to bring ClientId as fk to WorkTBL as identify client. Then make
composite pk to WorkTBL combining ClientID and Startdate. And bring this
composite pk to TripTBL as fk. And why? This way I could make dropdown box to
TripTBL to choose work-client combination which trip is made for. Both
client and startdate is shown in one cell. Would be nice
![Wink ;) ;)](/styles/default/custom/smilies/wink.gif)
I can make composite pk of ClientID and Startdate but I can't bring it to
TripTBL as fk. Is it because there is date and number, should it be number
and number? Is it even possible?
Am I missing something? Any ideas? I coundn't find single page concerning
this kind of case, and believe me I seached it for hours. (I'm using Access
2007 btw).
Thanks!
-Kim-