Just use the database name rather than a full path or you should be able to
use stuff like
...\directory or .\directory.
You could get the best of both worlds and use the app.config. or an xml
file, or the registry to store the absolute values, and allow the program to
check to see if a key exists and if not simply set the connection string up
to the current directory
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
"Laura K" <kl*******@ATcharter.net> wrote in message
news:uw**************@TK2MSFTNGP09.phx.gbl...
I know how to connect to a database using a full path. Something like
C:\path to application\bin\database.mdb
How do I create a relative path so that my application is portable?
Thanks
Laura K