Hi,
Try This
In that Text file Just put Online DB Name Not Path
Ex:
Provider=Microsoft.Jet.OLEDB.4.0;Data Source= #FilePath# \DB_New.mdb
in code
Read Connstring from txt File and replace
string constring = "";
string path = Application.ExecutablePath;
string resultPath = path.Substring(0, path.LastIndexOf("\\"));
constring.replace("#FilePath#",resultpath);
Note : It will workout if Your DB Location reside in the same folder of publish EXE File
Thanks
Siva Rm K