Hi All,
I set up a table to track defective parts on a shift-by-shift basis. The fields are: Entry Number (primary key auto number), Defect, Quantity, Inspector, Date, Shift, etc...
If someone inspects 1000 parts on day shift where 2 parts are found defective for rust and 1 is defective for lamination, I will enter the following data for "Defect" and "Quantity" into my database (Total of 3 new records):
[TABLE="width: 231"]
<TBODY>[TR]
[TD]Record #</SPAN>
[/TD]
[TD]Defect</SPAN>
[/TD]
[TD]Quantity</SPAN>
[/TD]
[/TR]
[TR]
[TD]1</SPAN>
[/TD]
[TD]Total Inspected</SPAN>
[/TD]
[TD]1000</SPAN>
[/TD]
[/TR]
[TR]
[TD]2</SPAN>
[/TD]
[TD]Rust</SPAN>
[/TD]
[TD]2</SPAN>
[/TD]
[/TR]
[TR]
[TD]3</SPAN>
[/TD]
[TD]Lamination</SPAN>
[/TD]
[TD]1</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
I'm having trouble pulling information on what % of the total inspected parts each defect is. For example: I need to know what % of the parts were defective for rust. I have a query set up that will tell me how many parts were inspected, and another query that will tell me how many parts were rejected for rust, but what do I do to get the percentage? Can a query be devided by another query? Should I reformat my table to make this easier?
Any help would be greatly appreciated.
I set up a table to track defective parts on a shift-by-shift basis. The fields are: Entry Number (primary key auto number), Defect, Quantity, Inspector, Date, Shift, etc...
If someone inspects 1000 parts on day shift where 2 parts are found defective for rust and 1 is defective for lamination, I will enter the following data for "Defect" and "Quantity" into my database (Total of 3 new records):
[TABLE="width: 231"]
<TBODY>[TR]
[TD]Record #</SPAN>
[/TD]
[TD]Defect</SPAN>
[/TD]
[TD]Quantity</SPAN>
[/TD]
[/TR]
[TR]
[TD]1</SPAN>
[/TD]
[TD]Total Inspected</SPAN>
[/TD]
[TD]1000</SPAN>
[/TD]
[/TR]
[TR]
[TD]2</SPAN>
[/TD]
[TD]Rust</SPAN>
[/TD]
[TD]2</SPAN>
[/TD]
[/TR]
[TR]
[TD]3</SPAN>
[/TD]
[TD]Lamination</SPAN>
[/TD]
[TD]1</SPAN>
[/TD]
[/TR]
</TBODY>[/TABLE]
I'm having trouble pulling information on what % of the total inspected parts each defect is. For example: I need to know what % of the parts were defective for rust. I have a query set up that will tell me how many parts were inspected, and another query that will tell me how many parts were rejected for rust, but what do I do to get the percentage? Can a query be devided by another query? Should I reformat my table to make this easier?
Any help would be greatly appreciated.