Seems you have the latest mdac SP and thus have problem with sandbox mode.
You may create your own function in a standard code module:
Public Function myEnviron(strVar)
myEnviron = Environ(strVar)
End Function
And now use myEnviron("UserName") in your query.
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
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.