Hello,
Here is the background on my question:
I am trying to make a chart report where I want to show the sum of total events (the user inputs the criteria for the event they want the sum of) that have occured over time in the form of a line graph. I want the x axis to be years and the y axis to be the sum.
The problem is that I have about 6 or 7 tables where this information is located and the report must be a consolidation of all the events that are in these tables. To obtain the sum, I have code which goes through each record of each table, and checks to see if there is a match. Everytime there is a match, a counter value goes up (that counter variable is the sum) and the date of the event is inputted into an array.
I have tried making a query with all the tables, but it led to a lot of confusion so I went with the vba route. A problem is that say one table has 40 records and another table has 4 records, the table that has 4 records will repeat itself 10 times in the query results. I gave up after that point.
My questions:
Is there a way for me to make a chart report from variable values that are in vba as opposed to fields in a table?
If not, how do I take variable values, such as the array of dates, and input them into a table? I don't know any SQL.
If anybody knows a better way I should be going about this, please share!
Thanks in advance.
Here is the background on my question:
I am trying to make a chart report where I want to show the sum of total events (the user inputs the criteria for the event they want the sum of) that have occured over time in the form of a line graph. I want the x axis to be years and the y axis to be the sum.
The problem is that I have about 6 or 7 tables where this information is located and the report must be a consolidation of all the events that are in these tables. To obtain the sum, I have code which goes through each record of each table, and checks to see if there is a match. Everytime there is a match, a counter value goes up (that counter variable is the sum) and the date of the event is inputted into an array.
I have tried making a query with all the tables, but it led to a lot of confusion so I went with the vba route. A problem is that say one table has 40 records and another table has 4 records, the table that has 4 records will repeat itself 10 times in the query results. I gave up after that point.
My questions:
Is there a way for me to make a chart report from variable values that are in vba as opposed to fields in a table?
If not, how do I take variable values, such as the array of dates, and input them into a table? I don't know any SQL.
If anybody knows a better way I should be going about this, please share!
Thanks in advance.