K
Kerry de Vent
I am building a VB 2008 application that interfaces with a MS Access
database. I wish to change the connection string so It looks in the user's
My Documents folder rather than the current directory.
The problem is that the My Documents directory will be in a different place
depending on the user's OS and setup. Is there a way to code the connection
string so that it goes to the my documents directory wherever it may be?
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=|DataDirectory|\studentSurvey.accdb"
thanks,
Kerry
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4441 (20090919) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
database. I wish to change the connection string so It looks in the user's
My Documents folder rather than the current directory.
The problem is that the My Documents directory will be in a different place
depending on the user's OS and setup. Is there a way to code the connection
string so that it goes to the my documents directory wherever it may be?
connectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=|DataDirectory|\studentSurvey.accdb"
thanks,
Kerry
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4441 (20090919) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com