Hi there,
I wonder why the function below returns 0 (it should return 4335)
* the conn to the db is ok (this function works with diff parameters, it has somthing to do with the SUM)
* I check the SQL code on the db - and the return result is not 0
Function test3()
Dim objDB, arrRecord, strRecord, strOutput
Dim oRS, nRec, oFld
Dim row
Set objDB = DBConnect()
Set oRS = objDB.Execute("SELECT sum (emp_AMOUNT) FROM production WHERE id=2513")
nRec = 0
row = 1
Do While Not oRS.EOF
For Each oFld In oRS.Fields
test3= oFld.Value
row = row + 1
Next
oRS.MoveNext
Loop
End Function