![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, everyone, I am wondering, is there a function that returns the path for a database? I know that excel has a thisworkbook.path but I did't find anything similar for Access. Reason I am asking is that I want to export a query into an Excel file, whic will be stored in a separate folder (subfolder of my application). Now, I can put the path inside my code, but what if I want to move the whole database into another folder? It would be much easier to use a variable for the path instead of hardcoding it. Please help! Thanks a lot, L |
#3
| |||
| |||
|
|
CurrentProject.Path -- Ken Snell MS ACCESS MVP "Laurontario" <laur (AT) ontario (DOT) ca> wrote in message news:YaGdnUama4jN4PXcRVn-pg (AT) rogers (DOT) com... Hello, everyone, I am wondering, is there a function that returns the path for a database? I know that excel has a thisworkbook.path but I did't find anything similar for Access. Reason I am asking is that I want to export a query into an Excel file, whic will be stored in a separate folder (subfolder of my application). Now, I can put the path inside my code, but what if I want to move the whole database into another folder? It would be much easier to use a variable for the path instead of hardcoding it. Please help! Thanks a lot, L |
#4
| |||
| |||
|
|
Thanks Ken, It seems that this function is available only in Access 2000 and up. Any idea what I can use in access 97? Thanks again, L "Ken Snell" <kthsneisllis9 (AT) ncoomcastt (DOT) renaetl> wrote in message news:S6udnTGIve2d4fTcRVn-gg (AT) comcast (DOT) com... CurrentProject.Path -- Ken Snell MS ACCESS MVP "Laurontario" <laur (AT) ontario (DOT) ca> wrote in message news:YaGdnUama4jN4PXcRVn-pg (AT) rogers (DOT) com... Hello, everyone, I am wondering, is there a function that returns the path for a database? I know that excel has a thisworkbook.path but I did't find anything similar for Access. Reason I am asking is that I want to export a query into an Excel file, whic will be stored in a separate folder (subfolder of my application). Now, I can put the path inside my code, but what if I want to move the whole database into another folder? It would be much easier to use a variable for the path instead of hardcoding it. Please help! Thanks a lot, L |
![]() |
| Thread Tools | |
| Display Modes | |
| |