Question apiGetUserName

merkava

Registered User.
Local time
Tomorrow, 00:11
Joined
Oct 16, 2006
Messages
25
Hello All,

I am running my Access DB on Versions 2000, 2002, and 2003. I am trying to get the windows username via apiGetUserName, which apparently requires Microsoft Access 11 Object Library.

Is there any way to make this iead work on the different versions?

Regard,
Aaron
 
Hi,

I have never heard of this function. Is there some material where I can see how to impliment this?

Public Function getWinUser() As String
getWinUser = Environ("UserName")
End Function

What referance needs to be used?

Cheers,
Aaron
 
Hello All,

I am running my Access DB on Versions 2000, 2002, and 2003. I am trying to get the windows username via apiGetUserName, which apparently requires Microsoft Access 11 Object Library.
It does not. Why would you say that?
 
And for the information of those who might see this. The Environ("username") is easily hacked. All one needs to do is to go into a command prompt and type:

Environ("username") = "Whatever"

and you now will not get the right user name. Granted - most people wouldn't know that, but if someone wanted to make it look like someone else did the data entry (or edits) they could do this very easily.
 

Users who are viewing this thread

Back
Top Bottom