By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,105 Members | 1,048 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,105 IT Pros & Developers. It's quick & easy.

How to get user id of windows into access via vba?

P: n/a
hi.

I get user id of access into my field by using CurrentUser object. How
do I get user id of windows into my field? Is there any way to do it?

Hannu
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Fri, 28 Jan 2005 05:51:06 -0500, Hannu wrote
(in article <e6**************************@posting.google.com>) :
hi.

I get user id of access into my field by using CurrentUser object. How
do I get user id of windows into my field? Is there any way to do it?

Hannu


Hi Hannu -

You can use the Windows API function GetUserName in a VB function. The
documentation is here:
http://msdn.microsoft.com/library/de...l=/library/en-
us/sysinfo/base/getusername.asp

Additionally, there was a thread about this on comp.lang.basic.visual.m
isc a while ago, you can check it out here: http://tinyurl.com/4qp77
(Message-ID: <6p**********@nnrp1.dejanews.com>#1/1)

HTH.

--chris

Nov 13 '05 #2

P: n/a
Look at
http://www.mvps.org/access/api/api0008.htm

--
Terry Kreft
MVP Microsoft Access
"Hannu" <ha***************@niiralankulma.fi> wrote in message
news:e6**************************@posting.google.c om...
hi.

I get user id of access into my field by using CurrentUser object. How
do I get user id of windows into my field? Is there any way to do it?

Hannu

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.