elliot315
Mr. Question
- Local time
- Today, 06:37
- Joined
- Jun 3, 2007
- Messages
- 98
I just created a db to manage an office supply. I created 3 tables (tblSupplies, tblEmployees and tblTransaction)
it is not for selling supplies it is just a control system to know who get things from the office (warehouse) and to know when to order more supplies. I related them like this from tblSupplies I created a field ProductID-PK and related to tblTransaction to a ProductID field (Data Type - Number) and from tblEmployees, EmployeeID-PK to tblTransaction to EmployeeID field (Data Type - Number) then created a form that displays the info of the employee and a subform displaying the transactions for that employee. The problem is that when I try to enter a transaction, Access displays a message saying "You cannot add or change a record because a related record is required in table 'Employee'".
This are my tables:
tblEmployee
EmplyeeID
Name
LastName
Title
Email
Extension
Tel
Department
tblSupplies
ProductID
ProductName
Description
SerialNumber
QuantityOnHand
ReorderLevel
Discontinued
tblTransactions
TransactionID
ProductID
EmployeeID
Description
Date
Received
Dispatched
Any suggestion? Thanks
it is not for selling supplies it is just a control system to know who get things from the office (warehouse) and to know when to order more supplies. I related them like this from tblSupplies I created a field ProductID-PK and related to tblTransaction to a ProductID field (Data Type - Number) and from tblEmployees, EmployeeID-PK to tblTransaction to EmployeeID field (Data Type - Number) then created a form that displays the info of the employee and a subform displaying the transactions for that employee. The problem is that when I try to enter a transaction, Access displays a message saying "You cannot add or change a record because a related record is required in table 'Employee'".
This are my tables:
tblEmployee
EmplyeeID
Name
LastName
Title
Extension
Tel
Department
tblSupplies
ProductID
ProductName
Description
SerialNumber
QuantityOnHand
ReorderLevel
Discontinued
tblTransactions
TransactionID
ProductID
EmployeeID
Description
Date
Received
Dispatched
Any suggestion? Thanks