GohDiamond
"Access- Imagineer that!"
- Local time
- Today, 14:19
- Joined
- Nov 1, 2006
- Messages
- 550
I'm using the "Output to" action in a macro (Access 2007). It presents me with argument fields to be entered.
Output File path is my focus here. Can I use a relative file path or does it have to be an absolute file path.
For example the database is in a folder on the desktop: \Desktop\DatabaseFolder\anydatabase.mdb
The destination of the output file is in a subfolder of the DatabaseFolder: \Desktop\DatabaseFolder\subfolder\anyexportfile.xls
Do I have to use a path starting with "C:\" ?
such as C:\Documents and Settings\my username\Desktop\DatabaseFolder\subfolder\anyexportfile.xls
or can I just use a relative path like this:
..\Desktop\DatabaseFolder\subfolder\anyexportfile.xls
Or is there another option. I want anyone that uses the database placed on their desktop to be able to output the resulting files to the subfolder in the DatabaseFolder without having to adjust the path code for their user name.
Thanks in advance.
Cheers!
Goh
- Object type
- Object Name
- Output Format
- Output File
- etc. etc...
Output File path is my focus here. Can I use a relative file path or does it have to be an absolute file path.
For example the database is in a folder on the desktop: \Desktop\DatabaseFolder\anydatabase.mdb
The destination of the output file is in a subfolder of the DatabaseFolder: \Desktop\DatabaseFolder\subfolder\anyexportfile.xls
Do I have to use a path starting with "C:\" ?
such as C:\Documents and Settings\my username\Desktop\DatabaseFolder\subfolder\anyexportfile.xls
or can I just use a relative path like this:
..\Desktop\DatabaseFolder\subfolder\anyexportfile.xls
Or is there another option. I want anyone that uses the database placed on their desktop to be able to output the resulting files to the subfolder in the DatabaseFolder without having to adjust the path code for their user name.
Thanks in advance.
Cheers!
Goh