hey guys,
I'm about halfway through my project now and need a little help with this annoying problem. I have written the code to edit a database, add new records etc... All of this works perfectly, however, it works perfectly is i use this connection string for the database
however I don't want to have to limit the install options to one directory so i'm trying to set the connection string like thiscon.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Project.mdb"
my problem is giving the full path to the database works but using "|DataDirectory|\Project.mdb" doesn't work. I dont get an error or anything but when i check the database the relevant records haven't been added or changed... anyone have any ideas?con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Project.mdb"


LinkBack URL
About LinkBacks
Reply With Quote

SCAN.care@HEXUS
