Sir when adding resources And i select My access data base then Its show some error "Some file could contain malicious content"... Choose a database Model Dialog And DataBase Objects dialog not appeared
Can't help this from here. Search google to find solution.
private void Form1_Load(object sender, EventArgs e) { OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\ACS\Documents\RetailDataBase.accdb"); conn.Open(); OleDbCommand objCommand = new OleDbCommand("SELECT Products.[ProductName] FROM Products;", conn); //objCommand.CommandText = "Select ProdcutName from Products"; OleDbDataReader objReader; objReader = objCommand.ExecuteReader(); while (objReader.Read()) { //MessageBox.Show(objReader["ProductName"].ToString()); itemcomboBox.Items.Add(objReader["ProductName"].ToString()); } objReader.Close(); conn.Close(); }
Sir G,Because Of that error I Use This method So is it OK..
seems good
oledbexception was unhandled I facing This Problum
Hello Sir, when i try to add access database , I get error the configuration is not declared help me please,
Instead of adding to Resources, just change the connection string and give location. You don't need to add it Resources.
hello Sir can we those tuto in english?
I will create English version soon.
THANKS Sir.HOW CAN DO TO CONVERT THE VALUE IN LETTER.FOR EXAMPLE 45.280 TO FORTHY FIVE THOUSAND TWO HUNDRED EIGHTY
Sir when adding resources And i select My access data base then Its show some error "Some file could contain malicious content"... Choose a database Model Dialog And DataBase Objects dialog not appeared
ReplyDeleteCan't help this from here. Search google to find solution.
Deleteprivate void Form1_Load(object sender, EventArgs e)
ReplyDelete{
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\ACS\Documents\RetailDataBase.accdb");
conn.Open();
OleDbCommand objCommand = new OleDbCommand("SELECT Products.[ProductName] FROM Products;", conn);
//objCommand.CommandText = "Select ProdcutName from Products";
OleDbDataReader objReader;
objReader = objCommand.ExecuteReader();
while (objReader.Read())
{
//MessageBox.Show(objReader["ProductName"].ToString());
itemcomboBox.Items.Add(objReader["ProductName"].ToString());
}
objReader.Close();
conn.Close();
}
Sir G,Because Of that error I Use This method So is it OK..
ReplyDeleteseems good
Deleteoledbexception was unhandled I facing This Problum
ReplyDeleteHello Sir, when i try to add access database , I get error the configuration is not declared
ReplyDeletehelp me please,
Instead of adding to Resources, just change the connection string and give location. You don't need to add it Resources.
Deletehello Sir can we those tuto in english?
ReplyDeleteI will create English version soon.
DeleteTHANKS Sir.
DeleteHOW CAN DO TO CONVERT THE VALUE IN LETTER.
FOR EXAMPLE 45.280 TO FORTHY FIVE THOUSAND TWO HUNDRED EIGHTY