Thankyou carrzKiss
I think i am missing something.
I have a table called TimeLog (in msAccess), and a Recordset called rsTime. The Columns are tMon, tTues, tWed, tThurs, tFri, tSat, tSun.
i Suppose the sql statement goes in the <HEAD> and the rs("OrderTotal") goes in the <BODY> where you want the total to show?
When i do this i get an Error:
Microsoft VBScript runtime error '800a01a8'
Object required: 'rsTotal'
/Timesheet/TimesheetEd.asp
I am pretty green at this, is there anything else i should be doing?
Main Topics
Browse All Topics





by: carrzkissPosted on 2009-10-28 at 10:30:34ID: 25685912
This will give you the sum of the value
(Change the OrderPrice to your Column Name
Change the Orders to your Table Name)
sql = "SELECT SUM(OrderPrice) AS OrderTotal FROM Orders"
rs.open sql, conn
rs("OrderTotal") <== This will give you the total.
Carrzkiss