sSQL = "Select sum(Salary) as Sal, sum(Expenses) as Exp from Employee"
set result = oConn.Execute(sSQL)
rs("Sal")
rs("Exp")
quote:
Another problem
Lets say that I am able to connect to a database DB and it has a table 'tb'
Now I want to get the 2nd last recordset in the table. Looping is a solution but its ugly. Is there a better way. Can someone tell me a direct sSQL statement for it. I can probably have a feild called count which can keep track of row number but its wasteful and involves complexities when I delete a row. Is there any other way. A SQL statemet will be appreciated as I have gone nuts trying to figure it out.