You need to create a recordset using your query & then get the value from the field "count(trip_details.trip_id)"
It might be easier to change the query to select count(trip_details.trip_id) AS total ...etc and then you can use myRecordsetName("total").Value to get the value.
HTH,
Chris
|