JuniorData
MIS
I've been tasked with fixing re-designing an access tool for tracking purchases that are allocated among different locations. I have:
I'm having trouble fitting this into the customer-order-order detail model. What's odd is an office makes a purchase, but the cost can come from that offices budget only or spread out among two or more offices.
Currently there is a relationship drawn between budget.office and purchaseDetail and also one drawn between budget.office and distribution so that you can look up an office from both the purchase table and the distribution table. This seems odd to me.
How can I design the tables/relationships so that forms and reports will behave as expected? That is, a main form where you select the office, enter one or more PO in one subform and the distribution of that purchase in another (or sub form in a sub form?)
Thanks for any suggestions, I want to be sure I get off on the right foot here.
Code:
BUDGETS
office (PK)
region
budgetAmount (for the year)
PURCHASES
purchID (PK)
office (FK)
date
po_number
description
DIRTRIBUTION
distID (PK)
purchID (FK)
unitPrice
quantity
allocationShare (price X quantity)
office (FK)
I'm having trouble fitting this into the customer-order-order detail model. What's odd is an office makes a purchase, but the cost can come from that offices budget only or spread out among two or more offices.
Currently there is a relationship drawn between budget.office and purchaseDetail and also one drawn between budget.office and distribution so that you can look up an office from both the purchase table and the distribution table. This seems odd to me.
How can I design the tables/relationships so that forms and reports will behave as expected? That is, a main form where you select the office, enter one or more PO in one subform and the distribution of that purchase in another (or sub form in a sub form?)
Thanks for any suggestions, I want to be sure I get off on the right foot here.