You could you store the connection string in a file and
read that to connect. The files would need to be
configured individually for the home and office machines.
Quote:
>-----Original Message-----
>Hi:
>I need to be able to configure the oleDBDataAdapter to
>find a database regardless of the version of the machine
>or version of Windows underwhich it is running. If I use
>the browse option, I get a explicit path which works
fine
>on my home machine(under Windows XP Home), that is, all
>queries work in the code but does not work on any other
>machine.) I have tried a relative database
configuration,
>eg, bin\database.mdb, but while it seems to work during
>the configuration process including previewing the
tables,
>I can't query it in the code.
>On my office machine (Win 2000), the relative address of
>database.mdb works fine but is not transferable to the
XP
>machine.
>Any ideas on solving these configuration problems?
>Thanks
>DogProf
>.