Norie,
The reason I think I need the path to msaccess.exe is because in order to use the command line arguments for opening access, I have only been successful when I call out the full path for opening access and my database.
For example: Create a database on your c:\Temp folder called Junk.mdb
Next, Click Start, Run and type in C:\Temp\Junk.mdb /cmd "Hello World"
When your database opens, go to Tools, Options, Advanced tab and look in the Command Line Arguments field. It should be blank.
Now, Click Start, Run and type in "C:\Program Files\Microsoft Office\Office11\msaccess.exe" C:\Temp\Junk.mdb /cmd "Hello World"
When your database opens, go to Tools, Options, Advanced tab and look in the Command Line Arguments field. It should contain "Hello World"
This is why I think I need the full path to msaccess.exe
As for going through all of the user's email and finding the attachment, I think this may not work because users could have more than one email pertaining to tools and the code will not know which email is the correct one.
Still looking for a solution. If I could hyperlink to my C:\Temp\Project1.exe 30095 file then I would be on my way.
Any other ideas / comments?
David