Username in query??

WinDancer

Registered User.
Local time
Today, 01:41
Joined
Oct 29, 2004
Messages
290
Trying to capture the user name in an append query-

using RB: Environ("UserName") in a query row errs out

Help, Please?

Thanks,
Dave
 
For that you'll probably need a wrapper function.

Create this in a standard module:

Code:
Function RetUser()
   RetUser = Environ("username")
End Function

and then call RetUser() instead.
 
Bob, as soon as you posted I realized tat I have a module already- just copied that into the current project and it worked fine.
Thanks,
Dave
 

Users who are viewing this thread

Back
Top Bottom