><add name="vfpRTP2" connectionString="Provider=VFPOLEDB.1;Data Source=|DataDirectory|2040sharedfiles\2040rtp.dbc" providerName="System.Data.OleDb"/> >>Which works when I run the form but fails when I configure the datasource.
string WhereItsLooking = (string)AppDomain.CurrentDomain.GetData("DataDirectory");Also,by default, the value is stored without a trailing backslash - so you need to add that....