I wrote a small application in VB.NET (VS 2022), and it worked well with the connection string without white space. When I put it in the folder with spaces and that is where I have issues with it. How do I solve this issue with the white space?
I do not have issues with the following connection string
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Work\Project\mydb.mdb"
I do have issues with the following connection string
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Work\Project\mydb.mdb"
I tried with single quote around the directory path but it did not work
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source='C:\Program Files\Work\Project\mydb.mdb'"
This is where the database will be. How do I solve this issue with the white space?