A
Applebaum
Hello newsgroupers,
I am modifying a database of Purchase Orders. It's fairly straightforward
right now, with a tblPurchaseOrders containing fldVendor. I'd like to
separate out the vendors into their own table, so that a) they're normalized
and b) the vendor can be added to a purchase order using a combo box.
A vendor can be either:
1. A company with no contact person (ACME)
2. A person with no company (Jane Doe), or
3. A person at a company (John Doe at ACME).
What table structure should I use for this?
If I use a single tblVendors then fldFirstName, fldLastName and
fldCompanyName can't all be required. And fldCompanyName can't be unique
with no duplicates.
If I separate vendors into a tblCompanies and tblPeople (presumably with
tblPeople having the foreign key fldCompanyID), how do I relate this back to
tblPurchaseOrders, with its foreign key of fldVendorID?
Many thanks in advance,
Matthew
I am modifying a database of Purchase Orders. It's fairly straightforward
right now, with a tblPurchaseOrders containing fldVendor. I'd like to
separate out the vendors into their own table, so that a) they're normalized
and b) the vendor can be added to a purchase order using a combo box.
A vendor can be either:
1. A company with no contact person (ACME)
2. A person with no company (Jane Doe), or
3. A person at a company (John Doe at ACME).
What table structure should I use for this?
If I use a single tblVendors then fldFirstName, fldLastName and
fldCompanyName can't all be required. And fldCompanyName can't be unique
with no duplicates.
If I separate vendors into a tblCompanies and tblPeople (presumably with
tblPeople having the foreign key fldCompanyID), how do I relate this back to
tblPurchaseOrders, with its foreign key of fldVendorID?
Many thanks in advance,
Matthew