I work at a glass manufacturing plant. We cut, temper, etc. glass for customers. All our information is set up in an Access 2000 database.
We've just started being able to track the amount of scrap we throw away at each station (for calculating efficiency) and I've run into an interesting problem. . .
The different types of glass we have available each has a unique "Glass Number" assigned to it. What this means is that, untempered (annealed) glass will have a different number once it gets tempered (even if everything else about the glass is exactly the same: Annealed 1/4" clear glass has a different number than Tempered 1/4" clear glass.). To keep track of this, we have a cross reference table that shows which glass numbers are all linked to the Annealed type.
I'm trying to generate a report that shows all the glass we've thrown away for a given date range. The problem is that I want to "convert" all the glass numbers to their parent/annealed number. How can I get all this glass to show up (with the annealed number)?
There are 3 tables being referenced. . .
GlassLink:
This is our cross reference table. It lists every non-annealed glass number we can make and links it back to the annealed number.PartMaster:Code:ParentGlass / ChildGlass 001 / 003 002 / 004
This is our master list of parts. Among other things, it includes a list of the glass part numbers and descriptions.ScrapEntry:Code:PartNo / Desc 001 / 1/8" Clear - Annealed 002 / 1/4" Clear - Annealed 003 / 1/8" Clear - Tempered 004 / 1/4" Clear - Tempered
This is our list of glass that's been thrown away. The Form individuals use to enter glass into this list is designed to allow them to enter ANY glass number in our system. This means that the person entering the data doesn't have to stop and think "hrm, well this says it's glass number 003, but that's really 001."
How can I get the query to show everything as it's GlassLink.ParentGlass glass number? I've tried linking GlassLink.ParentGlass to ScrapEntry.GlassNo, but that seems to only list items that actually link to a parent glass number (and not any items that ARE the parent glass number, since those aren't linked to themselves).Code:GlassNo / Date / Qty / Height / Width / Operation 002 / 05/10 / 3 / 12.000 / 13.000 / Cutting 003 / 05/10 / 1 / 12.000 / 13.000 / Drilling 004 / 05/11 / 1 / 15.000 / 16.000 / Edging 003 / 05/11 / 1 / 11.000 / 13.000 / Tempering 003 / 05/12 / 2 / 10.000 / 8.000 / Tempering 001 / 05/12 / 1 / 12.500 / 13.250 / Cutting