can someone tell me ???. Why the following code is not working ???. let me know some idea.Code:private bool OpenConnection(ref OleDbConnection conn) { try { conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Imp\product_Table.mdb"); conn.Open(); if (conn.State!=conn.Open ) { MessageBox.Show("Connection is Not Open"); return false; } else { return true; } } catch (Exception ex) { MessageBox.Show(ex.Message); return false; } }




Reply With Quote