G
Guest
Using Access 2003 on Windows XP. I have a program called "Solidworks" that
exports a list of parts needed for a Job to an excel file. Some of the parts
have "subparts" that need to be ordered. For example, part B22 is made up of
parts B22-1, B22-2, etc. My problem is that the quantities for the subparts
only indicate how many are needed to make one of the main part, regardless of
how many of the main part you want. For example (and all of the fields below
are generated by Solidworks):
Item# Quantity Part# Description
1 2 A12 blah
2 3 B32 dfasdf
3 2 B22 fdd
3.1 1 B22-1 afdgf
3.2 1 B22-2 asdfdf
3.3 2 B22-3 fdadf
4 5 C43 afdhf
5 1 A24 afaaf
Where items 3.1, 3.2, 3.3 are all of the parts needed to make one of item 3
(I hope I am making sense so far). I already have the code and queries that
will import the spreadsheet and cut off the leading spaces for the part
numbers. What I need is to find a way to multiply the quantities of the
subparts to indicate how many I need to make as many of the main part as I
need. So the previous example should read:
Item# Quantity Part# Description
1 2 A12 blah
2 3 B32 dfasdf
3 2 B22 fdd
3.1 2 B22-1 afdgf
3.2 2 B22-2 asdfdf
3.3 4 B22-3 fdadf
4 5 C43 afdhf
5 1 A24 afaaf
Since, in order to make two of item 3, I will need twice as many of the sub
parts. To further complicate things, there can be sub-sub parts (3.1.1,
3.1.2) and sub-sub-sub parts (3.1.2.1, 3.1.2.2. etc) ad infinitum, so all of
the sub part quantities need to be multiplied by the quantities in all of the
parent parts. I really hope that makes sense. Thanks for your expertise,
Adam Milligan (per the 'etiquette' page I am going to change my juvenile
handle as soon as I figure out how.)
exports a list of parts needed for a Job to an excel file. Some of the parts
have "subparts" that need to be ordered. For example, part B22 is made up of
parts B22-1, B22-2, etc. My problem is that the quantities for the subparts
only indicate how many are needed to make one of the main part, regardless of
how many of the main part you want. For example (and all of the fields below
are generated by Solidworks):
Item# Quantity Part# Description
1 2 A12 blah
2 3 B32 dfasdf
3 2 B22 fdd
3.1 1 B22-1 afdgf
3.2 1 B22-2 asdfdf
3.3 2 B22-3 fdadf
4 5 C43 afdhf
5 1 A24 afaaf
Where items 3.1, 3.2, 3.3 are all of the parts needed to make one of item 3
(I hope I am making sense so far). I already have the code and queries that
will import the spreadsheet and cut off the leading spaces for the part
numbers. What I need is to find a way to multiply the quantities of the
subparts to indicate how many I need to make as many of the main part as I
need. So the previous example should read:
Item# Quantity Part# Description
1 2 A12 blah
2 3 B32 dfasdf
3 2 B22 fdd
3.1 2 B22-1 afdgf
3.2 2 B22-2 asdfdf
3.3 4 B22-3 fdadf
4 5 C43 afdhf
5 1 A24 afaaf
Since, in order to make two of item 3, I will need twice as many of the sub
parts. To further complicate things, there can be sub-sub parts (3.1.1,
3.1.2) and sub-sub-sub parts (3.1.2.1, 3.1.2.2. etc) ad infinitum, so all of
the sub part quantities need to be multiplied by the quantities in all of the
parent parts. I really hope that makes sense. Thanks for your expertise,
Adam Milligan (per the 'etiquette' page I am going to change my juvenile
handle as soon as I figure out how.)