K
Katherine
Hi. What's wrong with my design?
tblOwnerType (can be Employee, Warehouse, Office, etc.)
OwnerTypeID (Autonumber, primary key)
OwnerType
tblOwner
OwnerID (Autonumber, primary key)
OwnerTypeID (foreign key from tblOwnerType)
OwnerLastName
OwnerFirstName
etc...
tblInventoryItem
InventoryItemID (Autonumber, primary key)
OwnerID (foreign key from tblOwner)
I've created a form from the above tables to enter an item
into inventory. If the OwnerType is Employee, I need the
employee's name. Otherwise, I need no further description
of the owner. There is a problem with this design in that
I'm unable to leave the Owner fields blank, for example
when choosing the OwnerType of Warehouse. The message I
get is "You can't add or change a record because a related
record is required in table 'tblOwner'."
Thanks for any help you can provide!
tblOwnerType (can be Employee, Warehouse, Office, etc.)
OwnerTypeID (Autonumber, primary key)
OwnerType
tblOwner
OwnerID (Autonumber, primary key)
OwnerTypeID (foreign key from tblOwnerType)
OwnerLastName
OwnerFirstName
etc...
tblInventoryItem
InventoryItemID (Autonumber, primary key)
OwnerID (foreign key from tblOwner)
I've created a form from the above tables to enter an item
into inventory. If the OwnerType is Employee, I need the
employee's name. Otherwise, I need no further description
of the owner. There is a problem with this design in that
I'm unable to leave the Owner fields blank, for example
when choosing the OwnerType of Warehouse. The message I
get is "You can't add or change a record because a related
record is required in table 'tblOwner'."
Thanks for any help you can provide!