R
rgrantz
I put a very similar post in the Reports newsgroup, but then it occurred to
me that a query setup may be necessary for what I'm trying to do, rather
than a calculated field. I wasn't sure. Sorry if this is against
netiquette.
I have the following tables:
OrderTable has
Order #
123
234
456
The ItemTable has:
Order # Item ID Fabricator MachineNumber
123 01 002 4
123 02 001 7
234 23 001 4
234 24 002 5
456 25 002 4
The QCTable has:
Item ID Defect Qty of Defect
01 crack in case 4
01 Discoloration 2
02 crack in case 2
23 Discoloration 1
24 crack in case 1
25 Discoloration 2
I have a report that totals the Quantity of each Defect type per Fabricator
per Machine (groups on Fabricator, then Machine, Then Defect Type,
regardless of Item ID):
- Fabricator 002
Machine Number 4
Cracks in Case: 4
Discolorations: 4
Machine Number 5
Cracks in Case: 1
Total Fabricator Defects for 002: 9 (this is in Fabricator Group Footer)
- Fabricator 001
Machine Number 7
Cracks in Case: 2
Machine Number 4
Discolorations: 1
Total Fabricator Defects for 001: 3 (in Fabricator Group Footer)
The query source for this report is a GroupBy on Fabricator and Machine, a
Count on Defect, and Sum on Defect Quantity.
What I would like to add is just one field in the Fabricator Group Footer
that also shows total of items produced (so I can do an average of Total
Defects divided by Total Items). I'm having a hard time wrapping my head
around getting the Count of items per Fabricator. I assume I need to do a
completely different query and use the DCount or Count function in a
calculated field, but I keep getting hazy in the head when trying to apply
it to a
Group and having that Fabricator's total go in that Fabricator's group
footer.
Thanks for any help on this. I fear that this is one of those questions the
answer to which makes me feel stupid, but I honestly DID try a bunch of
stuff and search the newsgroups first, I just couldn't find something that
matched my needs.
Thanks again
me that a query setup may be necessary for what I'm trying to do, rather
than a calculated field. I wasn't sure. Sorry if this is against
netiquette.
I have the following tables:
OrderTable has
Order #
123
234
456
The ItemTable has:
Order # Item ID Fabricator MachineNumber
123 01 002 4
123 02 001 7
234 23 001 4
234 24 002 5
456 25 002 4
The QCTable has:
Item ID Defect Qty of Defect
01 crack in case 4
01 Discoloration 2
02 crack in case 2
23 Discoloration 1
24 crack in case 1
25 Discoloration 2
I have a report that totals the Quantity of each Defect type per Fabricator
per Machine (groups on Fabricator, then Machine, Then Defect Type,
regardless of Item ID):
- Fabricator 002
Machine Number 4
Cracks in Case: 4
Discolorations: 4
Machine Number 5
Cracks in Case: 1
Total Fabricator Defects for 002: 9 (this is in Fabricator Group Footer)
- Fabricator 001
Machine Number 7
Cracks in Case: 2
Machine Number 4
Discolorations: 1
Total Fabricator Defects for 001: 3 (in Fabricator Group Footer)
The query source for this report is a GroupBy on Fabricator and Machine, a
Count on Defect, and Sum on Defect Quantity.
What I would like to add is just one field in the Fabricator Group Footer
that also shows total of items produced (so I can do an average of Total
Defects divided by Total Items). I'm having a hard time wrapping my head
around getting the Count of items per Fabricator. I assume I need to do a
completely different query and use the DCount or Count function in a
calculated field, but I keep getting hazy in the head when trying to apply
it to a
Group and having that Fabricator's total go in that Fabricator's group
footer.
Thanks for any help on this. I fear that this is one of those questions the
answer to which makes me feel stupid, but I honestly DID try a bunch of
stuff and search the newsgroups first, I just couldn't find something that
matched my needs.
Thanks again