Kryst51
05-04-2010, 02:02 PM
I am redesigning a database that I did about two years ago.
It is a database designed to handle nonconformance issues of all shapes and sizes for my company.
An NCR (Nonconformance Report) can have one reported error or many. I have devised a way to track these errors for reporting purposes. Each NCR has a desciption field to describe the error (1-Many so that an NCR can have more than one). This description is generalized in the following way:
tblErrors
pkErrorID - Autonumber
ErrorName - Text
fkErrorSubCategoryID - Number
tblErrorSubCategories
pkErrorSubCategoryID - Autonumber
ErrorSubCategory - text
fkErrorCategoryID - Number
Now I currently have these all as one to many relationships in my relationship screen.
tblErrorCategories
pkErrorCategoriesID - Autonumber
ErrorCategory - Text
These are all related in the relationship screen.
I have a fourth table which contains the following:
tblNCRIssues
pkNCRIssueID - Autonumber
fkErrorID - number
fkNCRHeaderID - number
Description - memo
Would it be wrong to remove the relationships between the Error tables but leave the fks with their references, then add an fk for each in "tblNCRIssues"?
Also, would the above mentioned approach require me to then have an fk from "tblErrorCategories" in "tblErrors"?
The reason I want to know is that I want to be able to use a continuous form to assign an NCRIssue with its appropriate error, and that is usually built from the category level down through more detail to the actual error. The way I have it set now, the combo boxes don't change with records, even if on single form, and when on continuous forms they all show the same (which I know is just how continuous forms work).
I have attached the db with just the relevant tables.
It is a database designed to handle nonconformance issues of all shapes and sizes for my company.
An NCR (Nonconformance Report) can have one reported error or many. I have devised a way to track these errors for reporting purposes. Each NCR has a desciption field to describe the error (1-Many so that an NCR can have more than one). This description is generalized in the following way:
tblErrors
pkErrorID - Autonumber
ErrorName - Text
fkErrorSubCategoryID - Number
tblErrorSubCategories
pkErrorSubCategoryID - Autonumber
ErrorSubCategory - text
fkErrorCategoryID - Number
Now I currently have these all as one to many relationships in my relationship screen.
tblErrorCategories
pkErrorCategoriesID - Autonumber
ErrorCategory - Text
These are all related in the relationship screen.
I have a fourth table which contains the following:
tblNCRIssues
pkNCRIssueID - Autonumber
fkErrorID - number
fkNCRHeaderID - number
Description - memo
Would it be wrong to remove the relationships between the Error tables but leave the fks with their references, then add an fk for each in "tblNCRIssues"?
Also, would the above mentioned approach require me to then have an fk from "tblErrorCategories" in "tblErrors"?
The reason I want to know is that I want to be able to use a continuous form to assign an NCRIssue with its appropriate error, and that is usually built from the category level down through more detail to the actual error. The way I have it set now, the combo boxes don't change with records, even if on single form, and when on continuous forms they all show the same (which I know is just how continuous forms work).
I have attached the db with just the relevant tables.