D
douglas.hough
Hi all
I have a list of parts with quantities in an Access table (imported
from Excel). In another table there is a list of parts with price break
information. I'm trying to grab the correct price for each part in the
first list from the entry for the part in the second list. Can anybody
give me some pointers as to how to do this in an Access query or
module? The two data sets look like the info below:
List One
Part Number Qty
11020203 45
12935719 890
12394828 12
List Two
Part Number, Qty1, Price1, Qty2, Price2, Qty3, Price3, Qty4,
Price4
11020203, 5, 2.3, 10, 2.1, 20, 1.90,
50, 1.75
12935719, 50, .098, 250, 0.089, 1000, 0.085,
5000, 0.079
etc etc.
The problem I'm having is that there are a maximum of 10 price columns
for each part, but some may have only 4 columns filled in, some 8. Also
the qty in sheet one is sometimes less than the minimum qty band in
sheet 2, but on another part could be higher than the maximum qty band.
Sorry for the rather lengthy question!
I have a list of parts with quantities in an Access table (imported
from Excel). In another table there is a list of parts with price break
information. I'm trying to grab the correct price for each part in the
first list from the entry for the part in the second list. Can anybody
give me some pointers as to how to do this in an Access query or
module? The two data sets look like the info below:
List One
Part Number Qty
11020203 45
12935719 890
12394828 12
List Two
Part Number, Qty1, Price1, Qty2, Price2, Qty3, Price3, Qty4,
Price4
11020203, 5, 2.3, 10, 2.1, 20, 1.90,
50, 1.75
12935719, 50, .098, 250, 0.089, 1000, 0.085,
5000, 0.079
etc etc.
The problem I'm having is that there are a maximum of 10 price columns
for each part, but some may have only 4 columns filled in, some 8. Also
the qty in sheet one is sometimes less than the minimum qty band in
sheet 2, but on another part could be higher than the maximum qty band.
Sorry for the rather lengthy question!