Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

returning current user from a web page?

Status
Not open for further replies.

Atomsk

MIS
Jun 3, 2003
60
US
Since I'm in a data access page and the method currentUser() is native to Access, I'm using the following:

MsgBox MSODSC.Connection.Properties("User ID").value

to return the currently logged-on user. But even though I've already set up a workgroup, the line above (which is bound to a button) only ever returns the user "Admin" regardless of who I'm logged in as, or what groups that user is a part of. Does anyone know why? Thanks.
 
When the search function on Tek-Tips become usable again, run a keyword search on

current users

in the subject headline. Your problem has been discussed many times on the forum.

Good luck!

"The potentialities of a language are so vast that we must wonder sometimes at ourselves: how do we manage to know so much?" Anthony Burgess, A Mouthful of Air
 
Seeing as how the search is down, could someone give me the gist of the problem/solution? I'm kind of in a hurry, thanks.
 
I took a line from one of your references and came up with this:

Dim username
Dim network
Set network = CreateObject("WScript.Network")
username = network.Username

...which returns the correct username. Thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top