Hi All,
I am trying to select muliple rows and sum the field "GBP" as a TOTAL Value.
The code below is what I have so far. Is this right? i am unable to output the total value of the GBP field..
Any assistance will be most appreciated.
Regards
<------- CODE ------------->
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("cos.mdb")
Set rsAddExpense = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT *,SUM(GBP) as TOTAL FROM TBLEXPENSES;"
Response.Write (Total)
I am trying to select muliple rows and sum the field "GBP" as a TOTAL Value.
The code below is what I have so far. Is this right? i am unable to output the total value of the GBP field..
Any assistance will be most appreciated.
Regards
<------- CODE ------------->
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("cos.mdb")
Set rsAddExpense = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT *,SUM(GBP) as TOTAL FROM TBLEXPENSES;"
Response.Write (Total)