我是想实现连接安装目录下的Access文件叫data的一个数据库,可是我的字符串老是出错。
string StrPath=Directory.GetCurrentDirectory();
Strconn = "Provider="Microsoft.Jet.OLEDB.4.0;Data Source=StrPath + "\Data.MDB;";
string StrPath=Directory.GetCurrentDirectory();
Strconn = "Provider="Microsoft.Jet.OLEDB.4.0;Data Source=StrPath + "\Data.MDB;";
Strconn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=StrPath + "\Data.MDB;"";
http://dev.csdn.net/article/16/16437.shtm
http://www.connectionstrings.com/
http://community.csdn.net/Expert/TopicView3.asp?id=3705163