G
Guest
I have two tables. I have a furniture table [Item number] and a fabric
table[FabricSpecs]. The furniture table has three fabric fields [Item
number.FabricSpec] [FabricSpec2] [FabricSpec3] (yes, the names are
confusingly similar). Each of the fabric fields in the [Item number] table
looks up it's data based on the [FabricSpecs] table. (For example, there may
be five different fabrics defined in a table. A chair might have three of
these fabrics on it. A couch might have two other fabrics. The chair and the
couch might have one of the fabrics in common)
Each fabric record has different information about the fabric. How much it
costs [FabricSpecs.FabricCost], where you can buy it, etc. The furniture
table has other information such as how much fabric is needed for the piece
[Item number.FabricAmount1], [FabricAmount2] and [FabricAmount3]. (for
example, a chair might need only 1 yard of fabric while a couch needs 20
yards).
I created a query that basically looks at all of the fields in both tables.
I need it to do a simple math equation for each fabric. I need it to
calculate the cost of the fabric (which might be $10 for fabric1, $50 for
fabric2 and $2 for fabric3) and multiply it by the amount of fabric used in
the peice of furniture.
The problem I'm running in to is that it always multiplies the [Item
number.FabricAmount1] by the first [FabricSpecs.FabricCost] selected in the
[Item number] record. (for example if I selected fabric1 which is $10 as the
first fabric for the chair and fabric2 which is $2 as the second fabric for
the chair, it always multiplies the [Item number.FabricAmount1] by $10.
right now I'm using the following
FabricCost1: [Item Number.FabricAmount1]*[FabricSpecs.FabricCost]
FabricCost2: [Item Number.FabricAmount2]*[FabricSpecs.FabricCost]
FabricCost3: [Item Number.FabricAmount3]*[FabricSpecs.FabricCost]
How can I get it to recognize that the cost of the second fabric selection
is the cost of fabric2 not fabric1???
Basically, how can I grab the cost of fabric2 from the fabric table, based
on a selection of fabric2 [Item number.FabricSpec2] from the second fabric
field from the furniture field?
Lila
table[FabricSpecs]. The furniture table has three fabric fields [Item
number.FabricSpec] [FabricSpec2] [FabricSpec3] (yes, the names are
confusingly similar). Each of the fabric fields in the [Item number] table
looks up it's data based on the [FabricSpecs] table. (For example, there may
be five different fabrics defined in a table. A chair might have three of
these fabrics on it. A couch might have two other fabrics. The chair and the
couch might have one of the fabrics in common)
Each fabric record has different information about the fabric. How much it
costs [FabricSpecs.FabricCost], where you can buy it, etc. The furniture
table has other information such as how much fabric is needed for the piece
[Item number.FabricAmount1], [FabricAmount2] and [FabricAmount3]. (for
example, a chair might need only 1 yard of fabric while a couch needs 20
yards).
I created a query that basically looks at all of the fields in both tables.
I need it to do a simple math equation for each fabric. I need it to
calculate the cost of the fabric (which might be $10 for fabric1, $50 for
fabric2 and $2 for fabric3) and multiply it by the amount of fabric used in
the peice of furniture.
The problem I'm running in to is that it always multiplies the [Item
number.FabricAmount1] by the first [FabricSpecs.FabricCost] selected in the
[Item number] record. (for example if I selected fabric1 which is $10 as the
first fabric for the chair and fabric2 which is $2 as the second fabric for
the chair, it always multiplies the [Item number.FabricAmount1] by $10.
right now I'm using the following
FabricCost1: [Item Number.FabricAmount1]*[FabricSpecs.FabricCost]
FabricCost2: [Item Number.FabricAmount2]*[FabricSpecs.FabricCost]
FabricCost3: [Item Number.FabricAmount3]*[FabricSpecs.FabricCost]
How can I get it to recognize that the cost of the second fabric selection
is the cost of fabric2 not fabric1???
Basically, how can I grab the cost of fabric2 from the fabric table, based
on a selection of fabric2 [Item number.FabricSpec2] from the second fabric
field from the furniture field?
Lila