select recrods with qry string