Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. I want to save in varabile location source of data binding, because when i install the application to another pc, the Access Database can't be found. so when i first start the application i wish to can search it in pc to be save location in text file, to can read the text file from app..
Sorry for my bed english!
Posted
Comments
wizardzz 28-Mar-12 14:39pm    
What seems to be your issue? Are you having trouble with a config file?
Member 8036261 28-Mar-12 14:49pm    
When you install on another computer I can put the file access database anywhere to can find from my application wherever are located..
... i want to modify location source string..from line of cod..
[no name] 28-Mar-12 15:50pm    
Why don't you just put the database in the same location as the executable?
Member 8036261 28-Mar-12 16:25pm    
how can i modify the connection string via line of code
watch here: http://desmond.imageshack.us/Himg36/scaled.php?server=36&filename=91583981.jpg&res=medium

1 solution

Hi,

If your access database is a user database[which user may know], then show a popup at the first time to select the location of db file and store the location in either a config file [local %ProgramData%, %AppData%] or in registery.

If the database is system database [which user don't want to know], then let it go with the installation.

thanks
derin
 
Share this answer
 
Comments
Member 8036261 29-Mar-12 2:20am    
i want to modify connection with db programatically !

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900