Question : Microsoft Access 2007 Connection String

I'm trying to connect to a Microsoft Access 2007 database from a Microsoft ASP.NET 3.5 Web Application.  The following connection string does not work.  Why?  How do I make this work?
Code Snippet:
1:
2:
3:

    
	

Answer : Microsoft Access 2007 Connection String

try this format

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\myAccess2007file.accdb;Persist Security Info=False;

you are missing \

see this link

http://www.connectionstrings.com/access-2007
1:
2:
3:
 
     
        
Random Solutions  
 
programming4us programming4us