If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Application Path?
Is there code to determine the path of the database?
I compile to MDE which calls for ODBC connections, but I want to switch this to a 'file dsn' so that each instance of the MDE can have it's own conenctions to databases. Sean |
#2
|
|||
|
|||
Application Path?
CurrentProject.Path
Returns the path without the trailing "\" character, so remember to append that, e.g. ... strMyDsn = CurrentProject.Path & "\MyDsn.dsn" -- Brendan Reynolds Access MVP "Sean" wrote in message ... Is there code to determine the path of the database? I compile to MDE which calls for ODBC connections, but I want to switch this to a 'file dsn' so that each instance of the MDE can have it's own conenctions to databases. Sean |
#3
|
|||
|
|||
Application Path?
Many thanks.
"Brendan Reynolds" wrote in message ... CurrentProject.Path Returns the path without the trailing "\" character, so remember to append that, e.g. ... strMyDsn = CurrentProject.Path & "\MyDsn.dsn" -- Brendan Reynolds Access MVP "Sean" wrote in message ... Is there code to determine the path of the database? I compile to MDE which calls for ODBC connections, but I want to switch this to a 'file dsn' so that each instance of the MDE can have it's own conenctions to databases. Sean |
Thread Tools | |
Display Modes | |
|
|