I'm fairly experienced with Excel VBA, but I'm just beginning the adventure with Access VBA.
In Access 2007, I'm writing code for a form button to export SQL results into Excel 2007 using DoCmd.OutputTo. It all works as I test it on my machine.
When the project is completed, I intend to split the db. That then begs the question of how to specify the OutputFile string into the user's My Documents folder.
The front end will be on a server. The user will open the forms using a Windows 7 computer. I can specify a file name -- but what can I use to grab the path to that user's My Documents folder to build a string to save this output file?
Ed
In Access 2007, I'm writing code for a form button to export SQL results into Excel 2007 using DoCmd.OutputTo. It all works as I test it on my machine.
When the project is completed, I intend to split the db. That then begs the question of how to specify the OutputFile string into the user's My Documents folder.
The front end will be on a server. The user will open the forms using a Windows 7 computer. I can specify a file name -- but what can I use to grab the path to that user's My Documents folder to build a string to save this output file?
Ed