Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I open a database using connection string for text file.
like,
VB
con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|;Extended properties='text;HRD=yes;FMT=Delimited'")

and read a table(ms access). It occur exception handling error arises.

But table can open in .txt and .csv file formats

My problem is to directly access tables in my database with above connection string format

My front end is vb.net and backend is ms access.

Thank U........
Posted
Comments
Kschuler 9-Feb-12 9:46am    
What is the exception/error message that you get when you try it?

You can use http://connectionstrings.com/[^] to find the correct connection string for your situation.

For Access 2007[^] or Access[^].
 
Share this answer
 
Comments
ckulasekaran 9-Feb-12 6:03am    
My database is client server based

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900