
CONNECTING TO ACCESS DB THRU ODBC WITHOUT DSN REMOTLY
You can use:
cn.open ("FileDSN=" & App.Path & "\my.dsn")
then ship a my.dsn with your app... the *.dsn file is just an INI file which
means you can edit it using GetPrivateProfileString, etc.
I do beleive however, you can specify a varstr as a connection without
having a User/Server DSN or DSN file; I think its something like
"UID=;PWD=;DATABASE=mydb.mdb;DRIVER={Microsoft Access Driver (*.mdb)};DSN="
but you will have to check.
Steve
Quote:
>I need to connect with ADO to an Access database on a remote server without
>setting up a DSN name.
>This can be done with SQL Server where the connect string is:
>"SERVER=MyServer;UID=;PWD=;DATABASE=myDatabase;DRIVER={SQL SERVER};DSN="
>What should it be to do the same to a Access MDB file on the Remote
machine?
>Hope someone can help.
>Gerrit