create your connection string in web.config.
<connectionStrings>
<add name = "connectionName" connectionString = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = c:\test.mdb";providerName = "System.Data.OleDb" />
<connectionStrings/>
after you declare your connection in web.config add this to your page to get access to the connection.
ConfigurationManager
.ConnectionStrings["connectionName"].ConnectionString;
To connect to Access you need to use Microsoft.Jet.OLEDB.4.0
Try this it will work....
Remember to mark as an answer...