I have an Access database (FE/BE) with a user interface created in VBA. Via the UI, dynamic queries can be run in the data. These queries "dump" the resulting recordset to a temp table. This is turn is exported to an Excel worksheet for graphing (Pareto charts). Since these Pareto queries vary based on selections made in the UI combo boxes, I am looking for a way to create these bar graphs dynamically based on the data in the worksheet (which changes).
For example: I can run paretos based on event type, event category, work area, or time interval (between two dates). The queries provide the data to a generic worksheet since the calculations are the same. I would like to create on 'template' chart for all of these programmatically.
The reason for this is that depending on the query, the number of items on each axis changes, as does the titles. With this in mind, I have to be able to assertain the number of items in a column, and set the range accordingly.
Not an easy projrct. Any tips, pointers, snippets, etc would be greatly appreciated. I have read the articles from MSDN and several online sources, with little new insight gained.


For example: I can run paretos based on event type, event category, work area, or time interval (between two dates). The queries provide the data to a generic worksheet since the calculations are the same. I would like to create on 'template' chart for all of these programmatically.
The reason for this is that depending on the query, the number of items on each axis changes, as does the titles. With this in mind, I have to be able to assertain the number of items in a column, and set the range accordingly.
Not an easy projrct. Any tips, pointers, snippets, etc would be greatly appreciated. I have read the articles from MSDN and several online sources, with little new insight gained.