Stephanie1977
New member
- Local time
- Today, 05:03
- Joined
- Aug 28, 2016
- Messages
- 7
Hi, I really need explanations here :banghead:
I'm trying to establish the relationships in my database but I am missing something, really basic I doubt, in the relationships rules since I can only create one to one Relationship but can't find the reason why. I've change properties of my tables rows and since then, it's a mess
TABLES I HAVE:
CHASSISOEM
IdChassis (pk, autonum)
ShortVIN (text, indexed, no dupe allowed - this is a serial vehicle identification #)
DEALER
IdDealer (pk, autonum)
DealerNickName (txt, indexed, no dupe allowed - I want to be able to refer to my dealers as short nickname ex: Whatever Bus Sales inc would become Whatever as nickname)
CUSTOMER
IdCustomer (pk, autonum)
CustNickName (txt, indexed, no dupe)
DealerNickName (txt, indexed, no dupe, null allowed)
OEMVehicleSale
IdOEMVehSale (pk, autonum)
ShortVin (text, indexed, no dupe allowed )
CustNickName (txt, indexed, no dupe)
DealerNickName (txt, indexed, no dupe, null allowed)
Preowned1 (2, 3)
IdPreowned1 (pk, autonum)
ShortVin (text, indexed, no dupe allowed )
CustNickName (txt, indexed, no dupe)
DealerNickName (txt, indexed, no dupe, null allowed)
RELATIONSHIPS TO BE CREATED:
OEM CHASSIS - ONE TO ONE - OEMVEHICLESALE
OEM CHASSIS - ONE TO MANY - PREOWNED
DEALER - ONE TO MANY - CUSTOMER
CUSTOMER - ONE TO MANY - OEMVEHICLESALE
DEALER - ONE TO MANY - OEMVEHICLESALE
DEALER - ONE TO MANY - PREOWNED
CUSTOMER - ONE TO MANY - PREOWNED
To resume, with thoses tables and Relationships established, it will tell me which vehicle was saled to which Customer (end-user) and if this Customer has a dealer.
I want to test this base before going too much further in my database creation to avoid needing to modify too many tables/forms already created.
I doubt the problem is that my primary keys are autonum and foreign keys txt ... but how can I put numeric properties to a field that needs to be txt in data entry (for my fk)?!?! This isn't logical to me so if someone could explain it would be so appreciated!!!
Thanks in advance !!
p.s. it would have been so much easier if I would have been allowed to post an image ... but first post so it wasn't possible !!! Sorry for the visual inconvenience
I'm trying to establish the relationships in my database but I am missing something, really basic I doubt, in the relationships rules since I can only create one to one Relationship but can't find the reason why. I've change properties of my tables rows and since then, it's a mess
TABLES I HAVE:
CHASSISOEM
IdChassis (pk, autonum)
ShortVIN (text, indexed, no dupe allowed - this is a serial vehicle identification #)
DEALER
IdDealer (pk, autonum)
DealerNickName (txt, indexed, no dupe allowed - I want to be able to refer to my dealers as short nickname ex: Whatever Bus Sales inc would become Whatever as nickname)
CUSTOMER
IdCustomer (pk, autonum)
CustNickName (txt, indexed, no dupe)
DealerNickName (txt, indexed, no dupe, null allowed)
OEMVehicleSale
IdOEMVehSale (pk, autonum)
ShortVin (text, indexed, no dupe allowed )
CustNickName (txt, indexed, no dupe)
DealerNickName (txt, indexed, no dupe, null allowed)
Preowned1 (2, 3)
IdPreowned1 (pk, autonum)
ShortVin (text, indexed, no dupe allowed )
CustNickName (txt, indexed, no dupe)
DealerNickName (txt, indexed, no dupe, null allowed)
RELATIONSHIPS TO BE CREATED:
OEM CHASSIS - ONE TO ONE - OEMVEHICLESALE
OEM CHASSIS - ONE TO MANY - PREOWNED
DEALER - ONE TO MANY - CUSTOMER
CUSTOMER - ONE TO MANY - OEMVEHICLESALE
DEALER - ONE TO MANY - OEMVEHICLESALE
DEALER - ONE TO MANY - PREOWNED
CUSTOMER - ONE TO MANY - PREOWNED
To resume, with thoses tables and Relationships established, it will tell me which vehicle was saled to which Customer (end-user) and if this Customer has a dealer.
I want to test this base before going too much further in my database creation to avoid needing to modify too many tables/forms already created.
I doubt the problem is that my primary keys are autonum and foreign keys txt ... but how can I put numeric properties to a field that needs to be txt in data entry (for my fk)?!?! This isn't logical to me so if someone could explain it would be so appreciated!!!
Thanks in advance !!
p.s. it would have been so much easier if I would have been allowed to post an image ... but first post so it wasn't possible !!! Sorry for the visual inconvenience