Application Path?

S

Sean

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
 
B

Brendan Reynolds

CurrentProject.Path

Returns the path without the trailing "\" character, so remember to append
that, e.g. ...

strMyDsn = CurrentProject.Path & "\MyDsn.dsn"
 
S

Sean

Many thanks.

Brendan Reynolds said:
CurrentProject.Path

Returns the path without the trailing "\" character, so remember to append
that, e.g. ...

strMyDsn = CurrentProject.Path & "\MyDsn.dsn"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top