MobiusDick
Hippy Materialist
- Local time
- Today, 13:26
- Joined
- Aug 23, 2007
- Messages
- 23
Hi Everyone,
I'm having a slight problem summing (almost) an entire recordset:
I have an application that when given a table of customers and their estimated annual electricity consumption will generate a matrix of coefficients that gives a typical consumption profile (i.e. how much electricity they are using in any half hourly period).
The matrix is a table "tblProfileForPeriod" with the fields as follows:
"Profile_Class;Settlement_Date;HH01;HH02.....;HH48"
A profile class will be constant for the date range selected, with 8 profile classes in all. The date range is constant for each profile class.
What I need to do is sum all HH01:HH48 for all the dates within each profile class; however, I have not been able to achieve anywhere near this result without using a ridiculous amount of nested queries and would like to do this using VBA.
Please help.
I'm having a slight problem summing (almost) an entire recordset:
I have an application that when given a table of customers and their estimated annual electricity consumption will generate a matrix of coefficients that gives a typical consumption profile (i.e. how much electricity they are using in any half hourly period).
The matrix is a table "tblProfileForPeriod" with the fields as follows:
"Profile_Class;Settlement_Date;HH01;HH02.....;HH48"
A profile class will be constant for the date range selected, with 8 profile classes in all. The date range is constant for each profile class.
What I need to do is sum all HH01:HH48 for all the dates within each profile class; however, I have not been able to achieve anywhere near this result without using a ridiculous amount of nested queries and would like to do this using VBA.
Please help.