I am using ASP with VBScript. The code below does not work at all. What is the correct way to use an aggregate function in order to set the results of it to a variable? Please....anyone? I'm begging. I've tried everything. Thank you.
Code:
strtotal = "Select cast(sum(npoints) as decimal) from team"
Set rsTotal = Server.CreateObject("ADODB.Recordset")
rsTotal.open strtotal, db