Chris,
How would I access the config file? The filename is
Inventory.exe.config and the info that I would need to access is:
<connectionStrings>
<add
name="Daily_Foods_Inventory.My.MySettings.Inventor y_management_databaseConnectionString"
connectionString="Provider=Microsoft.Jet.OLEDB.4.0 ;Data
Source="|DataDirectory|\Inventory management database.mdb""
providerName="System.Data.OleDb" />
</connectionStrings>
Tony K
"Chris" <ch*********@sbcgloal.netwrote in message
news:SM*******************@newssvr23.news.prodigy. net...
I'm assuming that you're using VB.NET for your application.
When you run the add data source wizard in VS2005, it will create an
application variable called "ConnectionString" in your applications's
config file ("MyInventoryApp.exe.config", for example). That can be
changed by any text editor.
Were you wanting the user to be able to change it via the user interface?
"Tony K" <no************@kingprogramming.comwrote in message
news:uu*************@TK2MSFTNGP06.phx.gbl...
>Hi all,
I have an inventory application I'm writing for the company I work for
and realized the path for the Access database might reside on a network
drive. I have used Microsoft's Add Data Source method of adding the db
to the app. How could I customize this so the path can be changed. I
found that the connection is a ReadOnly property and cannot be changed.
Thanks,
Tony K