string conStr = "Data Source="+System.Environment.CurrentDirectory + @"\db.mdb;Provider=Microsoft.Jet.OleDb.4.0;"; OleDbConnection con = new OleDbConnection(conStr);