Try the HasRows property:

if (!$rdr.hasRows) {"Do something"}



--
Kiron