建立?连接吧?
把路径放 Web.config里
<appSettings>
    <!--数据库路径-->
    <add key="DataPath" value="\Data\MgfData.mdb"/>
  </appSettings>读字符串 
result = "Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source =" +
            HttpContext.Current.Server.MapPath("~" + System.Configuration.ConfigurationManager.AppSettings["DataPath"]);我这是 web的, winform自己改下就可以了