 <p><code>dtLogin.Rows.Item(0).Item(1)</code> - the (0) after Rows.Item refers to the index in the collection of rows, so you're always looking at the first row. </p> <p>Instead of using <code>dtLogin.Rows.Item(0).Item(1)</code>, etc. in your loop, use <code>rowsLogin.Item(1)</code>.</p>