BrianCurran
Registered User.
- Local time
- Today, 07:46
- Joined
- Jan 12, 2011
- Messages
- 12
Hi all,
I've tried looking for a suitable Data Model but I can't find one to fit what I'm aiming to achieve.
I have "Residential" and "Commercial" customers. The Residential customers are nice and easy as they usually have a single address for Billing, Company & Delivery purposes.
However, some of our Commercial customers have several addresses so I would like to record them in a 3-Level format.
"Group" (Usually the Billing address: E.g. Government)
"Company" (Contract address: E.g. County Council)
"Site" (Delivery address: E.g. Anytown Library)
What would be the best way to organise the tables? Ideally, I would like to have a form whereby I can look at an address and tick 1, 2 or all 3 boxes to associate that address to its type. Would the following work?
tblCustomers
CustomerID (PK)
CustomerTypeID (FK)
tblCustomerTypes
CustomerTypeID (PK)
tblAddresses
AddressID (PK)
AddressType (FK)
tblAddressTypes
AddressTypeID (PK)
Any help would be greatly appreciated, as I'm going to attempt rebuilding a 15 year old Access db but with the correct structure and naming conventions etc.
Thanks
Brian.
I've tried looking for a suitable Data Model but I can't find one to fit what I'm aiming to achieve.
I have "Residential" and "Commercial" customers. The Residential customers are nice and easy as they usually have a single address for Billing, Company & Delivery purposes.
However, some of our Commercial customers have several addresses so I would like to record them in a 3-Level format.
"Group" (Usually the Billing address: E.g. Government)
"Company" (Contract address: E.g. County Council)
"Site" (Delivery address: E.g. Anytown Library)
What would be the best way to organise the tables? Ideally, I would like to have a form whereby I can look at an address and tick 1, 2 or all 3 boxes to associate that address to its type. Would the following work?
tblCustomers
CustomerID (PK)
CustomerTypeID (FK)
tblCustomerTypes
CustomerTypeID (PK)
tblAddresses
AddressID (PK)
AddressType (FK)
tblAddressTypes
AddressTypeID (PK)
Any help would be greatly appreciated, as I'm going to attempt rebuilding a 15 year old Access db but with the correct structure and naming conventions etc.
Thanks
Brian.