W WinDancer Registered User. Local time Today, 01:41 Joined Oct 29, 2004 Messages 290 Dec 17, 2009 #1 Trying to capture the user name in an append query- using RB: Environ("UserName") in a query row errs out Help, Please? Thanks, Dave
Trying to capture the user name in an append query- using RB: Environ("UserName") in a query row errs out Help, Please? Thanks, Dave
boblarson Smeghead Local time Today, 01:41 Joined Jan 12, 2001 Messages 32,053 Dec 17, 2009 #2 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.
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.
W WinDancer Registered User. Local time Today, 01:41 Joined Oct 29, 2004 Messages 290 Dec 17, 2009 #3 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
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