Basically I want to use SQL to Times the Watts and the quantity together and multiply it by the time and finally find the sum of all those results together.
For example
I have 5 x 50 watt heaters on between 0100 and 0500 Hours
and 6 x12 watt lightbulbs on between 1200 and 1300 Hours
5x50x(0100-0500) + 6x12x(1200-1300)
200 + 720
=920 watts per hour total
I know that i have to use SQL Mathematical functions, i just don't know how to incourperate it into my program through Code.
Also.........
Can you keep in mind that i have VB 2008 and not 2005 and i don't have visual studio, Most other forums ive visited resolve 2005 methods.
Heres a preview of my application

New Topic/Question
Reply




MultiQuote






|