I'm using a sendobject macro to automatically send email to the user with the result from Environ("username". In the To section, I wrote Environ("username")&@company.com
But that doesn't work...What am I doing wrong?
thank you
is that really what the email addresses are at the company you're sending to?
Environ("Username") will get the Windows NT userID of the person logged on to the machine. So they'll be sending an email to themselves. IF the company is their own, that is.
Is this really your intent?
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Yes, that is my intent for them to email this report to themselves once they are done with the program.
And that's why I want to use Window NT ID with @company.com
Thank you
One thing to note is that I'm setting this up in a macro, and the To field somehow doesn't like just Environ("username")...Is there something else that I need to put in???
I've tried
&Environ("username") And I tried Environ('username')
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.