private void loaddata() { OleDbConnection cn = new OleDbConnection(); cn.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Access Stuff\ASME_Plate.accdb;Persist Security Info = False;"; string q = "SELECT DISTINCT [Spec_No] FROM ASME_Plate"; OleDbCommand cmd = new OleDbCommand(q, cn); lstSpec.Items.Clear(); try { cn.Open(); Error on this line OleDbDataReader dr = cmd.ExecuteReader(); MessageBox.Show("OK"); if (dr.HasRows) { while (dr.Read()) {
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)