G
Guest
Hi all,
Would appreciate your help and inputs on my database design. I am desinging
an inventory system. Each item is based on unique project and i need to
account for items received and issued.
Tables:
tblprojects
projectID - autonumber
pno-project no. - pk
pname-project name
(All project nos are unique)
tblitems
itemID-autonumber
itemno-Itemno-pk - text
prno-projet no -pk - FK for project table. - numeric
itemDesc-itemdesc
uom- unit of measure
(Here i have created a composite key for itemno and project no because in
combination they are unique.)
tbtransactions
TransactionID
PID-Project no - FK
Itemno- item no -FK
DOR-Date of Receipt
UnitsReceived - Qty recieved
DOI - Date of Issue
UnitsIssued - Units issued
loc - location
(the pid and itemno are foreign keys pointing to tblitems)
I have a combo box in my form bound to tblprjects when i click on project i
get the required itemno in combo box itemno. when i click on the item no I
should get the related feilds from tbltransaction but i am getting unrelated
records.
I dont think i have my relationship set right. Can anyone helpl me. I do not
know how to send the relationship map through the news groups
thanks in advance
Would appreciate your help and inputs on my database design. I am desinging
an inventory system. Each item is based on unique project and i need to
account for items received and issued.
Tables:
tblprojects
projectID - autonumber
pno-project no. - pk
pname-project name
(All project nos are unique)
tblitems
itemID-autonumber
itemno-Itemno-pk - text
prno-projet no -pk - FK for project table. - numeric
itemDesc-itemdesc
uom- unit of measure
(Here i have created a composite key for itemno and project no because in
combination they are unique.)
tbtransactions
TransactionID
PID-Project no - FK
Itemno- item no -FK
DOR-Date of Receipt
UnitsReceived - Qty recieved
DOI - Date of Issue
UnitsIssued - Units issued
loc - location
(the pid and itemno are foreign keys pointing to tblitems)
I have a combo box in my form bound to tblprjects when i click on project i
get the required itemno in combo box itemno. when i click on the item no I
should get the related feilds from tbltransaction but i am getting unrelated
records.
I dont think i have my relationship set right. Can anyone helpl me. I do not
know how to send the relationship map through the news groups
thanks in advance