473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Obtain OS username

All,
I have spent some time looking for an answer on this and as of yet have
not found one. Is there any way in which the username used to log onto a
network can be retrieved using an Access 2000 DB? The platform is XP pro.
I'm assuming that it can be done because I have noticed that if try to open
an Excel document stored on the network server, a pop-up appears showing me
the username of the person that has it open.

TIA,

Mark
Nov 13 '05 #1
12 2489
just to add to my original question, I want to be able to record who has
logged in and out of the frontend and at what time. I have used MS workgroup
security to secure the DB and didn't really want to create my own security
to be able to log this.

Cheers again,

Mark
"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:U%************@newsfe4-gui.ntli.net...
All,
I have spent some time looking for an answer on this and as of yet have not found one. Is there any way in which the username used to log onto a
network can be retrieved using an Access 2000 DB? The platform is XP pro.
I'm assuming that it can be done because I have noticed that if try to open an Excel document stored on the network server, a pop-up appears showing me the username of the person that has it open.

TIA,

Mark

Nov 13 '05 #2
"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:J2*************@newsfe4-gui.ntli.net
just to add to my original question, I want to be able to record who
has logged in and out of the frontend and at what time. I have used
MS workgroup security to secure the DB and didn't really want to
create my own security to be able to log this.


CurrentUser()

--
regards,

Bradley
Nov 13 '05 #3
First question you asked
http://www.mvps.org/access/api/api0008.htm

Second Question
CurrentUser function
--
Terry Kreft
MVP Microsoft Access
"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:J2*************@newsfe4-gui.ntli.net...
just to add to my original question, I want to be able to record who has
logged in and out of the frontend and at what time. I have used MS workgroup security to secure the DB and didn't really want to create my own security
to be able to log this.

Cheers again,

Mark
"Mark Reed" <ma*********@ntlworld.com> wrote in message
news:U%************@newsfe4-gui.ntli.net...
All,
I have spent some time looking for an answer on this and as of yet

have
not found one. Is there any way in which the username used to log onto a
network can be retrieved using an Access 2000 DB? The platform is XP pro. I'm assuming that it can be done because I have noticed that if try to

open
an Excel document stored on the network server, a pop-up appears showing

me
the username of the person that has it open.

TIA,

Mark


Nov 13 '05 #4
"Mark Reed" <ma*********@ntlworld.com> wrote:
Is there any way in which the username used to log onto a
network can be retrieved using an Access 2000 DB?


I'm on A97 on an NT4 network and use the "Environ" function:

strUserName = Environ("USERNAME")

Regards,
Keith.
Nov 13 '05 #5
Keith,
Very nice. Lot's more there than username. Something fun to do this
weekend! Kewl.

"Keith Wilby" <ke*********@AwayWithYerCrap.com> wrote in message
news:Xn************************@10.15.188.42...
"Mark Reed" <ma*********@ntlworld.com> wrote:
Is there any way in which the username used to log onto a
network can be retrieved using an Access 2000 DB?


I'm on A97 on an NT4 network and use the "Environ" function:

strUserName = Environ("USERNAME")

Regards,
Keith.

Nov 13 '05 #6
"Alan Webb" <kn*****@hotmail.com> wrote:
Lot's more there than username.


Hell yeh!
Nov 13 '05 #7
Keith Wilby <ke*********@AwayWithYerCrap.com> wrote:
Is there any way in which the username used to log onto a
network can be retrieved using an Access 2000 DB?


I'm on A97 on an NT4 network and use the "Environ" function:

strUserName = Environ("USERNAME")


But environment variables can be changed by the user thus spoofing.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #8
"Alan Webb" <kn*****@hotmail.com> wrote:
Very nice. Lot's more there than username. Something fun to do this
weekend! Kewl.


Ayup, I now allow use of any of those variables in the Auto FE Updater.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #9
Tony Toews <tt****@telusplanet.net> wrote:
strUserName = Environ("USERNAME")


But environment variables can be changed by the user thus spoofing.


Not by my users they can't ;-)
Nov 13 '05 #10
Keith Wilby wrote:
Tony Toews <tt****@telusplanet.net> wrote:

strUserName = Environ("USERNAME")


But environment variables can be changed by the user thus spoofing.

Not by my users they can't ;-)


Because of your policies or because of your users? :-)

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 13 '05 #11
Trevor Best <nospam@localhost> wrote:
Not by my users they can't ;-)


Because of your policies or because of your users? :-)


The latter :o)
Nov 13 '05 #12
Trevor Best <nospam@localhost> wrote:
But environment variables can be changed by the user thus spoofing.

Not by my users they can't ;-)

Because of your policies or because of your users? :-)


<chuckle>

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Ghazan Haider | last post by:
I am posting this for the lack of a better newsgroup, and for the knowledge of people here, and because its only partially OT. We have a bunch of users with their computers at work. There are...
7
by: Sam | last post by:
Hi, I can use System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory() to obtain the path for ILASM.exe, but how can I obtain the path to ILDASM.exe? Examples of the path I'm...
5
by: Jeronimo Bertran | last post by:
Hello, We have developed a socket tcpip server in .net that accepts calls from clients. Using the connected socket we are able to use the Socket.RemoteEndPoint to obtain the IP address of the...
5
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can...
0
by: Grey | last post by:
I am using ASP.NET with AD to authenticate user. I have succeeded to authenticate the username and password, but fail to get the user group. I got error "Error obtaining group names". How come this...
0
by: godsmustbcrazy | last post by:
Here is my problem. Brand new SQL Server 2005 Installation 1. Create a database "Test" 2. Create a database user "Domain\user" and set user mapping to "Test" with datareader, datawriter...
1
by: VictorG | last post by:
Hello, The below C# code works fine in obtaining the windows user's account SID when the user is local to the machine. It throws a "Not Found" exception when trying top obtain the SID for a...
2
by: ME | last post by:
How would one obtain the parameter VALUES of a method that has already run? I can find the method using the StackTrace and StackFrame classes but once I find the method I would like to obtain the...
3
by: EnglishmaninNY | last post by:
Hi, I am setting up a self service portal that an internal user can visit in order to obtain their system and network information to then copy/paste to the Helpdesk. The information i hope to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.