$RS = $Conn->Execute(... sql ...); if ($RS->EOF) # error if ($RS->Recordcount == 0) # error