MS Access - Summing the Price of Multiple Parts (Records) in Different Tables

ban1k

New Member
Joined
Apr 29, 2014
Messages
4
Greetings - I'm trying to get my head wrapped around this one; I may need just some general guidance, as I have light experience with Access.

I am creating a database that is meant to A) find all possible combinations of given parts/components, and then B) bundle together the price of each of those parts into one complete item with total price. So, to illustrate - I would combine the below 3 'Part' tables on the left into one 'complete item' table having just two columns/fields: 'Complete Item' & 'Complete Price'.

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]BasePart1
[/TD]
[TD]BasePart1_Price
[/TD]
[/TR]
[TR]
[TD]WTL
[/TD]
[TD]100
[/TD]
[/TR]
</tbody>[/TABLE]






[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Options1
[/TD]
[TD]Options1_Price
[/TD]
[/TR]
[TR]
[TD]-ABC
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]-123
[/TD]
[TD]25
[/TD]
[/TR]
</tbody>[/TABLE]








[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Options2
[/TD]
[TD]Options2_Price
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]-Z2
[/TD]
[TD]25
[/TD]
[/TR]
[TR]
[TD]-Z3
[/TD]
[TD]50
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]COMPLETE-ITEM (All Combinations)
[/TD]
[TD]COMPLETE-PRICE
[/TD]
[/TR]
[TR]
[TD]
[TABLE="width: 101"]
<tbody>[TR="class: grid"]
[TD]WTL-ABC
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]
[TABLE="width: 101"]
<tbody>[TR="class: grid"]
[TD]WTL-123
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]
[TABLE="width: 101"]
<tbody>[TR="class: grid"]
[TD]WTL-ABC-Z2
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]
[TABLE="width: 101"]
<tbody>[TR="class: grid"]
[TD]WTL-123-Z2
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]
[TABLE="width: 101"]
<tbody>[TR="class: grid"]
[TD]WTL-ABC-Z3
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]???
[/TD]
[/TR]
[TR]
[TD]
[TABLE="width: 101"]
<tbody>[TR="class: grid"]
[TD]WTL-123-Z3
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]???
[/TD]
[/TR]
</tbody>[/TABLE]


I used the following Query to create all possible combinations ('Complete Item') table/field:

Code:
SELECT BasePart1.BasePart1 & Options1.Options1 & Options2.Options2 AS Complete-Item INTO Complete-Item
FROM BasePart1, Options1, Options2;

I greatly appreciate any insight or direction on solving and tying in the Complete Price portion of this to match up with the given items.

Thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top