UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Current User (Network Name)    
 
   
danch
post Jul 29 2002, 05:37 AM
Post#1


VIP Emeritus
Posts: 1,415
Joined: 23-March 01
From: Sandymoor,Cheshire,UK


This might come in use, if you are trying to get the network username and NOT the access username.
Dim GetUserN
Dim ObjNetwork
Set ObjNetwork = CreateObject("WScript.Network")
GetUserN = ObjNetwork.Username

Oalways add a
GetUserN = StrConv(GetUserN, vbLowerCase)
just to keep the string all lowercase as sometimes the username will have capitals.
HTH
Daniel
Go to the top of the page
 


Custom Search
RSSSearch   Top   Lo-Fi    18th December 2017 - 11:44 AM