c# loop through Access DB
<p>I have folowing code of c# in which I am making connection with access db and and using some conditions.I call a single row from db by using where clause in query.When I Logged into the page it gets data accurately.But after some time when i refresh the page it shows the folowing error</p>

<p>"There is No Row at position 0"
My code is is Bellow</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|OID.mdb;Persist Security Info=False;");
    //OleDbConnection con = new OleDbConnection("Data Source=sml; User ID=sml; Password=sml; provider=OraOLEDB.Oracle");

    OleDbCommand cmd = new OleDbCommand();
    cmd.CommandText = "Select * from EMAILS WHERE EMAIL= '" + GlobalData.Email + "'";
    //cmd.CommandText = "Select * from EMAILS";
    cmd.CommandType = CommandType.Text;
    cmd.Connection = con;
    OleDbDataAdapter da = new OleDbDataAdapter(cmd);
    DataSet ds = new DataSet();
    da.Fill(ds);

    String email = ds.Tables[0].Rows[0][1].ToString();

    if (email == GlobalData.Email)
    {
        Label2.Text = GlobalData.Email;
        Label1.Text = GlobalData.Name;
        Label3.Text = GlobalData.LastName;
        Label1.Visible = false;
        Label3.Visible = false;
        Label4.Text = Label1.Text + ' ' + Label3.Text;  
    }
}
</code></pre>

<p>I am querying data from DB and using where cluse with Global Variable to retrive a single row</p>

<p>Can Any one Please tell me that how can i Remove this issue or can i loop through the DB that evry time when user login it gets data using loop and then follow the condtion</p>
