Hello Access Forumers,
A friend who is starting a pipe fabrication company has asked to help him get started by creating an estimating tool for quoting on work (I have used access once, and therefore am the resident expert among my friends). The idea is that based on the material, pipe size, pipe thickness, type of work being performed, and quantity, a cost can be determined. I have reviewed the Northwinds example as well as other variants where the customer/product/order relationships have been quite well documented, and while some of this could be incorporated, I feel that the structure of this database is somewhat different. Searching the forums has not yielded any results for this case, but if this topic has been previously covered please let me know (and a point in the right direction would also be appreciated). I am hoping for a little advice from this user group with regards setting up the tables and the associated PK's, FK's etc before heading down the wrong path.
The issue that I am struggling to sort out is how to create "unique data", because the data is structured in more of a format where the intersection of the data yields the result. Some example data is provided below:
Pipe Diameter (in) Sch. 20 Sch. 40 Sch. 60 2" $10 $15 $20 3" $20 $30 $40 4" $30 $45 $60
In this table, the left column provides the pipe diameter, and the top row provides the wall thickness (or schedule). This could be sample pricing for a butt weld joint type for carbon steel. There would be similar pricing data for other material types (stainless steel etc.) and joint types. The question I have is how to link all this information together, and what is the best manner to do so. For example, if each record were to be unique and, in order to allow access to query by each field, would I need to create a table that looks as follows?
Pipe Diameter (in) Schedule Price ($) 2" 20 10 2" 40 15 2" 60 20 3" 20 20 3" 40 30 3" 60 40 4" 20 30 4" 40 45 4" 60 60
In this way, each record set is unique. However, because of common pipe diameters, would I also need to create some kind of product ID as the primary key? For example, there could be a naming convention of pipe diameter.schedule that would create a unique primary key for each record (for a 3" schedule 40 pipe this would be 3.40). If this is the case, this will require a significant amount of work based on the number of combinations available.
So, as you can see, I am a little unsure as to how to proceed and I cant help but feel there is a better/more efficient way to perform this task.
Hopefully this explanation is sufficient. Please let me know if it is not.
Thanks in advance!