Libre
been around a little
- Local time
- Yesterday, 20:57
- Joined
- May 3, 2007
- Messages
- 660
I have a lot of data in spreadhsheets that looks like this:
ProductLine 1:
PartNumber 1| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
PartNumber 2| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
PartNumber 3| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
etc.
ProductLine 2:
PartNumber 1| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
PartNumber 2| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
PartNumber 3| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
etc.
and so on for 7 different ProductLines.
I have to create a "master spreadsheet" of all of the above.
I'm setting up a table in Access to hold the data before I export it to Excel - which is the final goal.
I have procedures in Access to find the needed data for each part number in each product line - comparing the key index (PartNumber) to related tables in Access.
The final result should be a single spreadsheet of all this data. Using sorting and filtering in the spreadsheet, one can see, for example, only those PartNumbers supplied by a certain supplier. Another wrinkle is that each PartNumber can be supplied by more than one supplier. Another wrinkle is that there are 3 plants that I have to collect and report this data.
If I try to create a flat table for the 7 product lines, 2 suppliers for each part number, 2 supplier addresses, 2 supplier phone numbers, for 3 plants, I end up with a massive table of 43 columns in all. I know that these one-to-many relationships (example, many suppliers for each part number, many plants for each part number, etc) deserve related tables, rather than trying to "columnize" it all in one single table. But the final output I want is a single spreadsheet without any lookups or macros - just a flat spreadsheet from this data.
So I'm at a bit of an impasse here, trying to decide how to do this. Would you just design a flat Access able of 51 columns or try to do it with multiple related tables in Access? I just don't know how I would get the result I'm looking for, using the (in my opinion, correct) approach in Access, of related tables. Of course a downside of the one flat table, is that if they add a plant or want 3 suppliers instead of 2, then that multiplies out and the number of columns in the flat table grows exponentially.
Sorry for so much verbiage. Not easy to clearly describe a technical problem with a few words. If your eyes glazed over after the first paragraph I understand - but if you read this through and can shed any light on this I'd be appreciative.
One last thing - this is a project for the President of my company (gulp), who called upon me, as I have a reputation for being pretty good at this stuff.
ProductLine 1:
PartNumber 1| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
PartNumber 2| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
PartNumber 3| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
etc.
ProductLine 2:
PartNumber 1| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
PartNumber 2| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
PartNumber 3| Supplier | SupplierPhoneNo | PartWeight | PartMaterial | ...
etc.
and so on for 7 different ProductLines.
I have to create a "master spreadsheet" of all of the above.
I'm setting up a table in Access to hold the data before I export it to Excel - which is the final goal.
I have procedures in Access to find the needed data for each part number in each product line - comparing the key index (PartNumber) to related tables in Access.
The final result should be a single spreadsheet of all this data. Using sorting and filtering in the spreadsheet, one can see, for example, only those PartNumbers supplied by a certain supplier. Another wrinkle is that each PartNumber can be supplied by more than one supplier. Another wrinkle is that there are 3 plants that I have to collect and report this data.
If I try to create a flat table for the 7 product lines, 2 suppliers for each part number, 2 supplier addresses, 2 supplier phone numbers, for 3 plants, I end up with a massive table of 43 columns in all. I know that these one-to-many relationships (example, many suppliers for each part number, many plants for each part number, etc) deserve related tables, rather than trying to "columnize" it all in one single table. But the final output I want is a single spreadsheet without any lookups or macros - just a flat spreadsheet from this data.
So I'm at a bit of an impasse here, trying to decide how to do this. Would you just design a flat Access able of 51 columns or try to do it with multiple related tables in Access? I just don't know how I would get the result I'm looking for, using the (in my opinion, correct) approach in Access, of related tables. Of course a downside of the one flat table, is that if they add a plant or want 3 suppliers instead of 2, then that multiplies out and the number of columns in the flat table grows exponentially.
Sorry for so much verbiage. Not easy to clearly describe a technical problem with a few words. If your eyes glazed over after the first paragraph I understand - but if you read this through and can shed any light on this I'd be appreciative.
One last thing - this is a project for the President of my company (gulp), who called upon me, as I have a reputation for being pretty good at this stuff.
Last edited: