TCARPENTER
Programmer
I think maybe I need a reality check but anyway:
I have a database with 70 some tables in it and now need to do costing involving roughly 5 to 6 tables. I have created to new tables:
tblCosts
[tt]Recnum PK
Location_Recnum FK - Location/Placement of item
Item_Recnum FK - Items to place
Trade_Recnum FK - Trades needed (carpenters, painters etc)
TradeHrs Estimated hours
TradePeople Number of tradespeople
ItemCost Cost per item
ItemQty Number of items[/tt]
and
tblTrades
[tt]Recnum Index
Name PK- Trade name (carpenter, painter etc)
HrlyRate Hourly rate[/tt]
My tblCosts table is a join table and this may be where I've gone wrong. The Item_Recnum pulls its information from 5 different tables, which I have linked to this field. After I entered some data, Access barked at me telling me I needed to enter a non-null value in one of the other linked tables. I'm assuming I goofed linking the 5 tables to this one field? Each of the 5 tables I'm pulling information from (via a union query), has a join table associated with it for locations, should I have related the join tables to my cost table, or should I have added an additional field to my 5 other join tables pointing to my costing table?
Any help would be greatly appreciated!
Thanks
Todd
I have a database with 70 some tables in it and now need to do costing involving roughly 5 to 6 tables. I have created to new tables:
tblCosts
[tt]Recnum PK
Location_Recnum FK - Location/Placement of item
Item_Recnum FK - Items to place
Trade_Recnum FK - Trades needed (carpenters, painters etc)
TradeHrs Estimated hours
TradePeople Number of tradespeople
ItemCost Cost per item
ItemQty Number of items[/tt]
and
tblTrades
[tt]Recnum Index
Name PK- Trade name (carpenter, painter etc)
HrlyRate Hourly rate[/tt]
My tblCosts table is a join table and this may be where I've gone wrong. The Item_Recnum pulls its information from 5 different tables, which I have linked to this field. After I entered some data, Access barked at me telling me I needed to enter a non-null value in one of the other linked tables. I'm assuming I goofed linking the 5 tables to this one field? Each of the 5 tables I'm pulling information from (via a union query), has a join table associated with it for locations, should I have related the join tables to my cost table, or should I have added an additional field to my 5 other join tables pointing to my costing table?
Any help would be greatly appreciated!
Thanks
Todd