You could also add the row in the SQL query. SELECT MAX (TimeStamp) TimeStamp, COUNT (*) RowCount FROM ... And check RowCount first. Second suggestion worked! The first suggesiton didn't work because ...
</pre> <BR><BR>I need a query that will return 16 values, one for each different RACKNO in the database.<BR><BR>It would select the rows that have the maximum timestamp value for each distinct ...