Hi everybody, Im doing one project, in that i have to add all the values(Integers/Double) from one selected field of the database table.So I want the code to get the sum of that field values. I have tried with the following code
But the Compile error has occured as "Sub or Function not defined".
So kindly reply me.
Code:
rs2.Open "select * from Table1 where empid='" & Text1.Tex& "'", con
Dim k As Integer
k = Sum(rs2.Fields(2))
So kindly reply me.
Comment