D
Dale G
I can't set the primary key. The DB is for ordering employee uniforms.
I’m trying to set the first primary key to tblEmployees. EmpNo.
When I try to set a field as the primary I receive this message.
(The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship.
Change the data in the field or fields that contain duplicate data, remove
the index, or redefine the index to permit duplicate entries and try again).
The numbers are 5 digits and Unique. My tables are.
tblAnniversary. EmpNo, AnniversaryDate.
tblArticles. ArticleID, Article, SupplierID.
tblEmployees. EmpNo, LastName, FirstName.
tblSupplier. SupplierID, Supplier.
tblUniformTrans. OrderID, TransID, ArticleID, Size, Quantity, DateOrdered,
DateReceived, Status, SupplierID.
tblUniformOrders. OrderID, EmpNo.
I think that may be all I need?
I thought I would need to set EmpNo, from tblEmployees. ArticleID, from
tblArticles. SupplierID, from tblSupplier. OrderID, from tblUniformOrders.
Also I don’t know how to set the FK. Should there be a FK EmpNo in
tblAnniversary, and tblUniformOrders?
FK ArticleID in tblUnformTrans, FK OrderID in tblUniformTrans, FK
SupplierID, in tblUniformTrans?
Any info is appreciated,
I do have other tbls but I’m not sure if they are necessary. tblSize,
tblGender, tblShipping, tblDepartment, tblCompanyInfo, tblCategories.
Beetle did suggest a size and categories table so I’m still thinking about
those.
I’m trying to set the first primary key to tblEmployees. EmpNo.
When I try to set a field as the primary I receive this message.
(The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship.
Change the data in the field or fields that contain duplicate data, remove
the index, or redefine the index to permit duplicate entries and try again).
The numbers are 5 digits and Unique. My tables are.
tblAnniversary. EmpNo, AnniversaryDate.
tblArticles. ArticleID, Article, SupplierID.
tblEmployees. EmpNo, LastName, FirstName.
tblSupplier. SupplierID, Supplier.
tblUniformTrans. OrderID, TransID, ArticleID, Size, Quantity, DateOrdered,
DateReceived, Status, SupplierID.
tblUniformOrders. OrderID, EmpNo.
I think that may be all I need?
I thought I would need to set EmpNo, from tblEmployees. ArticleID, from
tblArticles. SupplierID, from tblSupplier. OrderID, from tblUniformOrders.
Also I don’t know how to set the FK. Should there be a FK EmpNo in
tblAnniversary, and tblUniformOrders?
FK ArticleID in tblUnformTrans, FK OrderID in tblUniformTrans, FK
SupplierID, in tblUniformTrans?
Any info is appreciated,
I do have other tbls but I’m not sure if they are necessary. tblSize,
tblGender, tblShipping, tblDepartment, tblCompanyInfo, tblCategories.
Beetle did suggest a size and categories table so I’m still thinking about
those.