Hi, i have a problem while trying to build my program, i have this code in the Form 1 Load :
and shows me this error :"An unhandled exception of type 'System.Data.Ol eDb.OleDbExcept ion' occurred in system.data.dll "
the interesting thing is that it throws me the same error in college computers in one campus, and was building fine on other college campus and at home, but now is breaking at home as well.
Any suggestions?
Thank you
Code:
private void Form1_Load(object sender, System.EventArgs e)
{
objOleDbConnection.Open();
OleDbDataReader objReader = objSelectAccount.ExecuteReader(); <<< Breaks here
while (objReader.Read())
{
cmbAccountNumbers.Items.Add(objReader["Account Number"]);
}
objOleDbConnection.Close();
}
the interesting thing is that it throws me the same error in college computers in one campus, and was building fine on other college campus and at home, but now is breaking at home as well.
Any suggestions?
Thank you
Comment