R
Rich
I'm trying to open an Access database from a command button in Word
The username is part of the path to the file, so I want to use the Environ("username") variable so I can send the same document to a number of users and the button puts each one in their own directory
So far, I've tried a hyperlink using %username% for that part of the path--but no luck.
Next, I made a hyperlink that runs a batch file with %username% in it. This works, but keeps the command prompt window open until the user closes Access. I would use this method if I could hide the command prompt window
Then, I tried what I thought were several applicaple examples of how to open files from command buttons using VB code I found in the newsgroups, but couldn't get any of them to work
Thanks for your help
-Rich
The username is part of the path to the file, so I want to use the Environ("username") variable so I can send the same document to a number of users and the button puts each one in their own directory
So far, I've tried a hyperlink using %username% for that part of the path--but no luck.
Next, I made a hyperlink that runs a batch file with %username% in it. This works, but keeps the command prompt window open until the user closes Access. I would use this method if I could hide the command prompt window
Then, I tried what I thought were several applicaple examples of how to open files from command buttons using VB code I found in the newsgroups, but couldn't get any of them to work
Thanks for your help
-Rich