V
Valerie
I am almost finished building a database in which to
transfer my company's inventory. However, I'm having
trouble with one particular query. Here's the scenario:
I have input all my parts into a parts table. I have a
related table for my initial inventory (physical count),
another for my purchase orders, and another for my bills
of material. Now I am trying to use queries to establish
my current inventory by calculating my initial inventory
plus any purchase orders less any items used in bills of
material. My calculations all work fine. The problem is,
the only way a product will show up in my current
inventory query is if it has A) a quantity listed in the
initial inventory table, AND B) been ordered on a purchase
order since we took inventory AND C) been used on at least
one bill of material since we took inventory. I don't
necessarily want parts with a zero quantity to show up on
the current inventory (but if they did, that would be
fine), but I certainly want all items for which we have
quantities on hand to show up.
It appears to have something to do with my relationships
because when I fool with them, I get different results.
Sometimes an item will appear 4,5 even 15 times with
quantities that are relevant to a totally different
product; other times it won't show up at all. When I
deleted the one product I had in my "trial run" that met
all 3 criteria, all items disappeared from my current
inventory.
PLEASE HELP!
transfer my company's inventory. However, I'm having
trouble with one particular query. Here's the scenario:
I have input all my parts into a parts table. I have a
related table for my initial inventory (physical count),
another for my purchase orders, and another for my bills
of material. Now I am trying to use queries to establish
my current inventory by calculating my initial inventory
plus any purchase orders less any items used in bills of
material. My calculations all work fine. The problem is,
the only way a product will show up in my current
inventory query is if it has A) a quantity listed in the
initial inventory table, AND B) been ordered on a purchase
order since we took inventory AND C) been used on at least
one bill of material since we took inventory. I don't
necessarily want parts with a zero quantity to show up on
the current inventory (but if they did, that would be
fine), but I certainly want all items for which we have
quantities on hand to show up.
It appears to have something to do with my relationships
because when I fool with them, I get different results.
Sometimes an item will appear 4,5 even 15 times with
quantities that are relevant to a totally different
product; other times it won't show up at all. When I
deleted the one product I had in my "trial run" that met
all 3 criteria, all items disappeared from my current
inventory.
PLEASE HELP!