 <p>I might not be understanding this completely, but if all you want to do is to output a list of names with their respective email addresses, you could try simplifying to this:</p> <pre><code>name = rs("name") email = rs("email") do while rs.eof &lt;&gt; true response.write(name &amp; " " &amp; email &amp; "&lt;br /&gt;") rs.movenext loop </code></pre> <p>…at least for testing purposes. Alternatively, you could concatenate the name and email in the SQL statement into one column:</p> <pre><code>SELECT name + '|' + email as nameemail FROM emails WHERE email IN ('" &amp; emails &amp; "') </code></pre> <p>...will give you "name|email" that you can easily string manipulate.</p>