Ok thats true but is it really needed if you already have the resultset in the $rs var?

since that will hold the record could you do like I posted above? Oops it should be $rs and not $r.