|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Hey anyone.
I wrote a program using an access database, now I'm not sure how to get the total of a field, eg. value for a record of a field lets say hours worked, which is differnt for each employee, now I want to get the total hours of all employees in the database. If you can help Please Thank You Koos. |
|
#2
|
||||
|
||||
|
Code:
Conn.Execute "SELECT SUM(hours) As [TotalHours] From TableName WHERE employeeId = " & employeeId |
|
#3
|
|||
|
|||
|
Hi
Thanx, I'll try that. I really appreciate the help. Koos. |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Adding up database columns |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|