473,320 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Multiple level Bill of Material Explosion - Help please

Hi Guys
I'm a novice access VBA programmer. I’m trying to write a nested
query
to explode the bill of material. But the BOM table has more than 20
levels. It’s really redundant and annoying to write all those nested
queries in access. my question is, how do I approach this problem to
solve it using VBA. I’ve seen so many vba codes online, but I don’t
seem to understand it well enough to apply it in my situation.
the fields in the BOM table are the Following (Sample).
an item can be a parent as well as a child

The point of the BOM explosion is to Show how many componenets are
required to be a salable Item

ParentItemNumber ChildItemNumber QuantityPer
-------------------------- ------------------------
-------------------

1 G1 1

1 G2 2
1 G3 1
9 1 1
thanks
Mike

Oct 30 '08 #1
1 6044
Hi Mike,

You need to show a sample of source data and Query Result data -- like

tbl1
fld1 fld2 fld3 fld4 ... fldn

tbl2
fld5 fld6 fld7 fld8 ... fldn

tbl3
fld9 fld10 fld11 fld12 ... fldn

...

and then show a sample of what the data would look like after running
through your query

Query Result

fld1 fld2 fld9 fld7 fld20 fld30 fld17

Then someone could advise you if your table data is a relational form
that would be suitable for querying - and how to write a query (or
queries) to perform your desired operation.
Rich

*** Sent via Developersdex http://www.developersdex.com ***
Oct 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ricky Lung | last post by:
struct Foo { union { int& i; float& j; }; Foo(int& val) : i((int&)val), j((float&)val) {} };
3
by: Diana Gard | last post by:
Perhaps this is a design flaw, please let me know. I'm using Access 2000. I have a form with a tab control and 5 subforms within those tabs. The forms match with the tables: Client main,...
2
by: Bill nguyen | last post by:
I've been using Datagrid for most of my app's data entry screens. Now I have the need for users to select multiple rows for printing. Is it possible with Datagrid items? Thanks Bill
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
3
by: pengbsam | last post by:
Hello: I need to write a program that search through multiple level BOM, get all the items. It seems like a easy enough project, but when I put my hands on it and couple of hundred lines of codes...
2
by: pengbsam | last post by:
Hello: I need to write a program that search through multiple level BOM, get all the items. It seems like a easy enough project, but when I put my hands on it and couple of hundred lines of codes...
2
by: =?Utf-8?B?S3Jpc2huYQ==?= | last post by:
Hi, I am devloping one web application using .net framework 2.0.One page has 7 dropdown list control.When i update the values first bind the values to the drop down llist then selected text...
0
by: xtopia | last post by:
Hi Guys I'm a novice access VBA programmer. I’m trying to write a nested query to explode the bill of material. But the BOM table has more than 20 levels. It’s really redundant and annoying to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.