Access/VBA Library

GetTempFolder

Returns a String containing the full path to the Windows temp folder.

Syntax

GetTempFolder()
Return value

String : Path of the Windows temp folder.

Code
Function GetTempFolder() As String
    Dim fs As New FileSystemObject
    GetTempFolder = fs.GetSpecialFolder(2)
End Function

Systemtag:SystemFilesystemtag:Filesystem