|
-
Apr 28th, 2005, 03:45 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Retrieve Windows User
Hi there
just wondering if its possible in vba for access to retrieve the username of the person currently logged into windows.
Is this beyond VBA
Cheers
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
-
Apr 28th, 2005, 04:04 AM
#2
Re: Retrieve Windows User
If it is on the environ$ you can get it. Read up on this in the help file, as it is handy. However do not use an index number as it has been known for IT folk to move the position of the user name/id.
Example:
Code:
Debug.print environ$(1)
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|