GaryWilsonCPA
Technical User
I have the following connection string that works, however it is hardcoded to one location for my db.
The location of my database is below.
\DublinFundRaising\DublinFundRaising.mdb"";
Is there a way to change my programing to allows the database location to exist anywhere on the server, and allow a user to change location. Any sample code or links would be appreciated.
This is my working dataconnection string.
Me.OleDbConnection1.ConnectionString = "Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDBatabase L" & _
"ocking Mode=1;Jet OLEDBatabase Password=;Data Source=""\DublinFundRaising\Dub" & _
"linFundRaising.mdb"";Password=;Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk Tran" & _
"sactions=1;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet OLEDB:System database=;Jet OLE" & _
"DB:SFP=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:New Database Pa" & _
"ssword=;Jet OLEDB:Create System Database=False;Jet OLEDBon't Copy Locale on Co" & _
"mpact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLE" & _
"DB:Encrypt Database=False