Forum Discussion
CDuest
Jul 22, 2021Copper Contributor
Creating an Inventory System with Bills of Materials
Hi there,
I'm new to Access and I'm developing a database for a small business that includes an Inventory table, where all parts are listed. I am hoping to create bills of materials for assembled products (finished goods), which would include some parts from the Inventory table (parts included depend on the finished good). I want to have a front end form where the user simply selects which finished good has been ordered, with a "complete work order" function that will automatically remove the specified part quantities from the current stock in the main Inventory table. I am unsure on how I should approach this, through tables, update queries, etc.
Please let me know if anyone has developed a similar system, or any ideas on how I can move forward. All suggestions and expertise are welcome!
Thanks in advance.
- DeanBabicBrass Contributor
This link might be better:
http://access.mvps.org/access/modules/mdl0027.htm
Access 97 is a no go.
Here:https://github.com/mpkasp/django-bom
Took me 5 mins to spin up a Web app George! Still not convinced with Python?- George_HepworthSilver Contributor
If you created a full-blown BOM web app that does everything the OP needs and wants, and did it in 5 mins, you have my admiration.
- DeanBabicBrass Contributor
Spinning a Web app from github repo is just that.
- George_HepworthSilver Contributor
CDuest Ken Sheridan has a demo relational database application called BoM (in BoM.zip) on his OneDrive. It demonstrates the proper way to create a Bill of Materials relational database application.
- JBaCopper Contributor
This link doesnt seem to work anymore - is there another way to get hold of the sample BOM database?
- George_HepworthSilver Contributor
His link still works for me. Try this one: BoM.zip
- CDuestCopper ContributorThank you!
Do you have any suggestions for logic behind removing an entire BOM from the main tblInventory? I believe an update query would work best, however I only have experience removing one part at a time based on a PartNumber and Quantity entered by a user.- George_HepworthSilver Contributor
CDuest Being inexperienced with what you are asking about, I can't offer definitive suggestions.
However, in general, the technique is to start with delete queries that remove the records on the "Many" side a relationship, which is going to be the case with a BoM system. Then, when child records are deleted, you can run a delete query on the "One" side table(s) in turn.