Firstly I must admit to being extremely weak in terms of Access ability.
I am looking to build a sales forcast tool (front end may yet be access or excel). The original data comes from 3 sources which are linked comprise the bulk of the data I need with one exception. I need to break down the cost element of each line entry (job number) in the final dataset "SalesForecast".
The query created from the 3 data sources currently comprises around 4000 records and this will increase by about 1500 per year. Each individual record in this expanding dataset however needs linking to cost data which is stored in a rather strange fashion.
Each "job" in the dataset has its own individual database which holds some data not available in the main dataset. It is stored in a \year\month structure:-
\\server\shared\etc\"year"\"Month"\"Job Number.Mdb
(e.g. \\server\shared\etc\2012\Apr\5678.mdb)
I have created a linked table to a spreadsheet where each cell has a path to the relevent database which links to each job number in the main dataset.
\\server\shared\etc\2008\Jun\1033.mdb
\\server\shared\etc\2008\Jun\1034.mdb
etc.
I need to import or link to a table called "CostItem" within each of the databases and sum the values for the field "ItemCost" where the values of the field "Description" = "Fitting" (There can be multiple entries in the field "ItemCost" and therefore this needs to be summed in order to generate a single value of "CostItem" per line in the main data.
My first problem is I do not have a method of coding or creating a query for the list of db file paths that would enable me to link to data from thousands of databases within a single query or table. Any tips/clues would be gratefully received .
Once this issue is resolved I should be able to sum the cost information I am after then link this to the main "Sales Forecast" table.
Many thanks in anticipation
Steve
I am looking to build a sales forcast tool (front end may yet be access or excel). The original data comes from 3 sources which are linked comprise the bulk of the data I need with one exception. I need to break down the cost element of each line entry (job number) in the final dataset "SalesForecast".
The query created from the 3 data sources currently comprises around 4000 records and this will increase by about 1500 per year. Each individual record in this expanding dataset however needs linking to cost data which is stored in a rather strange fashion.
Each "job" in the dataset has its own individual database which holds some data not available in the main dataset. It is stored in a \year\month structure:-
\\server\shared\etc\"year"\"Month"\"Job Number.Mdb
(e.g. \\server\shared\etc\2012\Apr\5678.mdb)
I have created a linked table to a spreadsheet where each cell has a path to the relevent database which links to each job number in the main dataset.
\\server\shared\etc\2008\Jun\1033.mdb
\\server\shared\etc\2008\Jun\1034.mdb
etc.
I need to import or link to a table called "CostItem" within each of the databases and sum the values for the field "ItemCost" where the values of the field "Description" = "Fitting" (There can be multiple entries in the field "ItemCost" and therefore this needs to be summed in order to generate a single value of "CostItem" per line in the main data.
My first problem is I do not have a method of coding or creating a query for the list of db file paths that would enable me to link to data from thousands of databases within a single query or table. Any tips/clues would be gratefully received .
Once this issue is resolved I should be able to sum the cost information I am after then link this to the main "Sales Forecast" table.
Many thanks in anticipation
Steve