Access绝对地址

           string path = System.Windows.Forms.Application.StartupPath + "\\DB.mdb";
            string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + path + ";";
            OleDbConnection conn = new OleDbConnection(strConn);
            conn.Open();

你可能感兴趣的:(Access)