OK, here is a real stumper,
I am using php to connect to an access database using ADODB.
I am also using a simple sql query and sum function to get the total hours from a table. The sql looks like this:
$rs = $conn->Execute("SELECT Sum(BigTable.Hours) As SumOfHours FROM BigTable;");
I then assign a variable to the result like this:
$hours = $rs->Fields("SumOfHours");
but when i try to print $hours all I get is "Object".
I would assume that since BigTable.Hours is an integer data type it would simply display the sum of the hours in the table.
What object would the sum() function be returning and how can I convert it to the numerial value I am seeking?