473,405 Members | 2,160 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,405 software developers and data experts.

Data Structure

I'm trying to set up a database that will do the following for me:

1) store part numbers, descriptions, and costs in one table (the easy
part)
2) store "kits" - kits are groups of parts from the above table (ie 1
of part A, 0 of part B, and 3 of part C) that are used for certain
construction jobs.
3) for some jobs, multiple kits will need to be used, so i need to
show the total cost of a job that uses eg 2 of kit A, 1 of kit B, and
3 of kit C.
4) i also need to generate a list of part # and quantity of that part
used for eg the job above.

Anybody have any ideas for how i should set up my data structure? I
thought i might use one table for the parts list (part #, description,
cost), a table for info about the kits, and a third table to connect
the first 2 together. I'm not sure how i would actually do this... i'm
having a lot of trouble getting my heard around this.

another thought i had was to make a table for the parts list, then a
new table for each kit, and have each link back to the master parts
list. if i did it this way, how would i do the calculations in #3 and
4 of my above list?

Thanks in advance! Any help at all would be greatly appreciated.
Nov 13 '05 #1
3 1786
TblParts
PartsID
PartNum
Desc
Cost

TblPartKit
PartKitID
PartsID
PartQuantity

TblJob
JobID
<Job Fields>

TblKitForJob
KitForJobID
JobID
PartKitID
PartKitQuantity

Your questions 3 and 4 require a query on the above tables. I suggest you
try to create the query for 4 and include the part cost. Then on your
form/report, use a calculated field to get the answer to question 3. The
calculated field is done by adding an unbound textbox to your form/report
and putting the following expression in the control source:
= Sum([Cost])

I am in business to provide customers with a resource for help with Access.
If you need outside help, please contact me at my email address below.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

"Daryl J. Edwards" <da***********@utoronto.ca> wrote in message
news:de**************************@posting.google.c om...
I'm trying to set up a database that will do the following for me:

1) store part numbers, descriptions, and costs in one table (the easy
part)
2) store "kits" - kits are groups of parts from the above table (ie 1
of part A, 0 of part B, and 3 of part C) that are used for certain
construction jobs.
3) for some jobs, multiple kits will need to be used, so i need to
show the total cost of a job that uses eg 2 of kit A, 1 of kit B, and
3 of kit C.
4) i also need to generate a list of part # and quantity of that part
used for eg the job above.

Anybody have any ideas for how i should set up my data structure? I
thought i might use one table for the parts list (part #, description,
cost), a table for info about the kits, and a third table to connect
the first 2 together. I'm not sure how i would actually do this... i'm
having a lot of trouble getting my heard around this.

another thought i had was to make a table for the parts list, then a
new table for each kit, and have each link back to the master parts
list. if i did it this way, how would i do the calculations in #3 and
4 of my above list?

Thanks in advance! Any help at all would be greatly appreciated.

Nov 13 '05 #2
Daryl,
Search online for software & databases that do multiple bills of materials.
Basically, it's many-to-many between items (parts) and jobs. As with a
classic bill of materials, the highest level is a finished good (job) then
there is a hierarchy of things made of things until you get down to
consumable components like screws, shrinkwrap, etc. So, there is an item
master table that describes all the things needed for a kit used in a job.
There is a bill of materials table that lists the components of a kit. Then
there is a kind of line-item table that lists the kits used in a job that is
functionally similar to the line item table you would make to do invoices.
So, similar to PC Datasheet's design:
ItemMaster
RowID
PartNo
PartName
PartDesc.
FinishedGoodUnitCost (for finished goods where the business chooses a price
other than the sum of the price of the components)
FinishedGood (true or false, true if this is a finished good. You would not
expect a finished good to be part of something else)
FinishedGoodUOM (finished good unit of measure if different from units of
measure of components), etc.

BillOfMaterials (Kit Components)
RowID
ChildPart (row id number from Item Master of child part)
ParentPart (row id number from Item Master of parent part)
and any additional columns needed to track information related to this
parent/child part pairing.

Job
RowID
JobName
Client
etc.

KitJob
BOM_RowID (Kit ID)
JobID
and anything else about the kit/job that the business needs.

"Daryl J. Edwards" <da***********@utoronto.ca> wrote in message
news:de**************************@posting.google.c om...
I'm trying to set up a database that will do the following for me:

1) store part numbers, descriptions, and costs in one table (the easy
part)
2) store "kits" - kits are groups of parts from the above table (ie 1
of part A, 0 of part B, and 3 of part C) that are used for certain
construction jobs.
3) for some jobs, multiple kits will need to be used, so i need to
show the total cost of a job that uses eg 2 of kit A, 1 of kit B, and
3 of kit C.
4) i also need to generate a list of part # and quantity of that part
used for eg the job above.

Anybody have any ideas for how i should set up my data structure? I
thought i might use one table for the parts list (part #, description,
cost), a table for info about the kits, and a third table to connect
the first 2 together. I'm not sure how i would actually do this... i'm
having a lot of trouble getting my heard around this.

another thought i had was to make a table for the parts list, then a
new table for each kit, and have each link back to the master parts
list. if i did it this way, how would i do the calculations in #3 and
4 of my above list?

Thanks in advance! Any help at all would be greatly appreciated.

Nov 13 '05 #3
da***********@utoronto.ca (Daryl J. Edwards) wrote in message news:<de**************************@posting.google. com>...
I'm trying to set up a database that will do the following for me:

1) store part numbers, descriptions, and costs in one table (the easy
part)
2) store "kits" - kits are groups of parts from the above table (ie 1
of part A, 0 of part B, and 3 of part C) that are used for certain
construction jobs.
3) for some jobs, multiple kits will need to be used, so i need to
show the total cost of a job that uses eg 2 of kit A, 1 of kit B, and
3 of kit C.
4) i also need to generate a list of part # and quantity of that part
used for eg the job above.

Job---(1,M)---Kit---(1,M)---KitContents----(M,1)---Part(partNo,Price,...)

from this you can just create a totals query. Job-KitContents(sum(PartNo))
Nov 13 '05 #4

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

Similar topics

1
by: dmb000006 | last post by:
Hello, I have a database style data structure, each record has several fields. I would like to create a nested data structure that would let me 'query' the data on the value of certain...
3
by: Mike Jones | last post by:
need help with data structures.Looking for ways to start, sample code, anything Program description: Design and implement a Visual C++ .NET program that inserts values into a data...
2
by: yee young han | last post by:
I need a fast data structure and algorithm like below condition. (1) this data structure contain only 10,000 data entry. (2) data structure's one entry is like below typedef struct _DataEntry_...
11
by: theshowmecanuck | last post by:
As a matter of academic interest only, is there a way to programmatically list the 'c' data types? I am not looking for detail, just if it is possible, and what function could be used to...
5
by: Alfonso Morra | last post by:
Hi, I am writing a messaging library which will allow me to send a generic message structure with custom "payloads". In many cases, a message must store a non-linear data structure (i.e....
3
by: Kiran B. | last post by:
Hi, I am new to .net. I have two Data Structure Type ... Sturcture A and Structure B. Structure A Public Fname as String Public LastName as String Public City as String Public Zip as String...
11
by: Macca | last post by:
Hi, I'm writing an application that will pass a large amount of data between classes/functions. In C++ it was more efficient to send a pointer to the object, e.g structure rather than passing...
3
by: aurora | last post by:
This is an entry I just added to ASPN. It is a somewhat novel technique I have employed quite successfully in my code. I repost it here for more explosure and discussions. ...
29
by: zoltan | last post by:
Hi, The scenario is like this : struct ns_rr { const u_char* rdata; }; The rdata field contains some fields such as :
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.