I have an Access application formultiusers that writes a file to
C:\Temp\filename.rtf but now with Windows XP we are not allowed to save any
files to C:\Temp, only can be done to C:\Documents and Settings\USERID\My
Documents\FILENAME.RTF. How can pass that path in Access 2002?
Alex Dybenko - 29 Jul 2005 15:02 GMT
You can get Temp folder path as:
Environ("Temp")

Signature
Alex Dybenko (MVP)
http://Alex.Dybenko.com
http://www.PointLtd.com
>I have an Access application formultiusers that writes a file to
> C:\Temp\filename.rtf but now with Windows XP we are not allowed to save
> any
> files to C:\Temp, only can be done to C:\Documents and Settings\USERID\My
> Documents\FILENAME.RTF. How can pass that path in Access 2002?
Dirk Goldgar - 29 Jul 2005 15:19 GMT
> I have an Access application formultiusers that writes a file to
> C:\Temp\filename.rtf but now with Windows XP we are not allowed to
> save any files to C:\Temp, only can be done to C:\Documents and
> Settings\USERID\My Documents\FILENAME.RTF. How can pass that path in
> Access 2002?
See this link for code to retrieve special folder locations, such as the
path to the user's My Documents folder:
http://www.mvps.org/access/api/api0054.htm
API: Retrieving a Special Folder's location

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)