Table and or Relationships problem

J

JA

Hello

I am trying to design a database to keep track of parts that are inspected;
whether they pass inspection or fail. So far I created the following tables
and an input form based on tblInsReport and two sub-forms - tblSerialNumber
and tblReject. However there is something wrong with this design because
when I set a query, the results are incorrect. if I set a query to display
the sum of quantity rejected (FailQty) and quantity passed (AcceptQty), the
result is the multiplication of the fields.



I would appreciate any help



Table Designs



tblInsReport

ReportNumber - Autonumber (PK)

WorkOrder

PartNumber

PartName

Sequence



tblReject

ItemNumber - Autonumber (PK)

ReportNumber (FK)

RejectSerialNumber

FailQty



tblSerialNo

ItemNumber - AutoNumber (PK)

ReportNumber (FK)

AcceptSerialNumber

AcceptQty



Relationships

One to many tblInsReport - tblReject based on ReportNumber

One to many tblInsReport - tblSerialNumber based on ReportNumber



Javier
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top