Richard Horne
Member
- Local time
- Today, 05:14
- Joined
- Oct 15, 2020
- Messages
- 55
Hey guys.
Our Access DB has a button that allows users to save a PDF of the report they're working on, to their desktop.
We are moving our Access Database online to be run from an Azure Virtual Machine, but this button now saves the report to the VM's desktop instead of the local desktop.
Is there a special folders equivalent for the local desktop? This needs to be dynamic because the VM could be accessed from any number of computers.
Our Access DB has a button that allows users to save a PDF of the report they're working on, to their desktop.
We are moving our Access Database online to be run from an Azure Virtual Machine, but this button now saves the report to the VM's desktop instead of the local desktop.
Code:
'Get the desktop location
strPath = CreateObject("WScript.Shell").SpecialFolders("Desktop")
Is there a special folders equivalent for the local desktop? This needs to be dynamic because the VM could be accessed from any number of computers.
Last edited: