473,566 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Selecting Database Path

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

Jul 24 '07 #1
3 1584
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 "ConnectionStri ng" in your applications's config
file ("MyInventoryAp p.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************ @kingprogrammin g.comwrote in message
news:uu******** *****@TK2MSFTNG P06.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

Jul 24 '07 #2
Yes, I was hoping to be able to program say a "Tools" form and allow the
user to select where the database resides then write that info to a config
file or store that path in the registry or something like that.

Tony K
"Chris" <ch*********@sb cgloal.netwrote in message
news:SM******** ***********@new ssvr23.news.pro digy.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 "ConnectionStri ng" in your applications's
config file ("MyInventoryAp p.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************ @kingprogrammin g.comwrote in message
news:uu******** *****@TK2MSFTNG P06.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

Jul 24 '07 #3
Chris,
How would I access the config file? The filename is
Inventory.exe.c onfig and the info that I would need to access is:

<connectionStri ngs>
<add
name="Daily_Foo ds_Inventory.My .MySettings.Inv entory_manageme nt_databaseConn ectionString"
connectionStrin g="Provider=Mic rosoft.Jet.OLED B.4.0;Data
Source=&quot;|D ataDirectory|\I nventory management database.mdb&qu ot;"
providerName="S ystem.Data.OleD b" />
</connectionStrin gs>

Tony K
"Chris" <ch*********@sb cgloal.netwrote in message
news:SM******** ***********@new ssvr23.news.pro digy.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 "ConnectionStri ng" in your applications's
config file ("MyInventoryAp p.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************ @kingprogrammin g.comwrote in message
news:uu******** *****@TK2MSFTNG P06.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

Jul 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2481
by: Ones Self | last post by:
Hi, I have a tree structure which is maintained through the use of a path enumerated column: CREATE TABLE items ( item_id NUMERIC NOT NULL, path VARCHAR2(64) NOT NULL );
1
2556
by: Ramesh | last post by:
hi, I am selecting fields from three table for manupulating data and i want to display total number of records selected. But i am always getting -1 value, eventhough 1000 of records are selected. Below is my code. here strSelectSQL value is strSelectSQL = "Select emp.Empno, emp.FirstName, emp.LastName, emp.DB,...
6
2048
by: aaj | last post by:
Hi all I use a data adapter to read numerous tables in to a dataset. The dataset holds tables which in turn holds full details of the records i.e. keys, extra colums etc.. In some cases I need to use parts of the tables in datagrids, and here is where my problem lies
3
15708
by: larry mckay | last post by:
anyone have the code to select and listview item or row (subitems) after a doubleclick event from a listview. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
6
1996
by: rdemyan via AccessMonster.com | last post by:
I don't understand why I can get the following to work: ------------------------------------------------------------------------------ -- SELECT A.*, B.* FROM TableA AS A, TableA AS B IN 'C:\......' WHERE A.USER_ID = B.USER_ID; ------------------------------------------------------------------------------ --
3
1775
by: Mchine34 | last post by:
I have created an xslt that sorts the following xml on node: Path XSLT: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <xsl:apply-templates/>
0
214
by: Tony K | last post by:
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...
1
1263
by: sunny74 | last post by:
I am writing a ASP.NET 2.0 web based application in which I want the user to create & select a Folder using Windows Explorer.After the user creates and selects the folder, on pressing OK I should be able to get the PATH of the folder for storing in a database. The problem is that there is nothing like FolderBrowserDialog in WinForms which...
5
1749
by: hollyquinn | last post by:
Hi I am working with a web application where I am selecting values from a SQL Server 2005 database and then loading the values into different controls on my page. Most of the values load with no problem, except for those columns where the value of the selected row in the column could be a null. I get the following error message: The value for...
0
7584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8108
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7644
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1201
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.