To improve the performance of our reports, we are starting to calculate some of our totals with SQL rather than use Crystals' variables or Summary functions. So we create a query to sum all the amounts in a field and then have the rpt file fetch the result. This works fine with a DAO connection. But in ODBC the amount doesn't get transferred. It appears that ODBC is reading the last record in the query, which is the new (empty) record. I even created a table and inserted the query results into the table, rendering a one record table. But the result is the same. The field is in the report footer. Does anyone know how to tell Crystal to look at the first record in the table? I tried "Previous" and "OnFirstRecord" and "if (table.autonum = 1)", all to no avail. Thanks in advance.