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

Novell login ad Access

P: n/a
Hi all!
Anybody knows how is possible detect the Novell login in Access?
Thank you all
andRea
Nov 13 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Try this ...

Environ$("UserID")

--
Danny J. Lesandrini
dl*********@hotmail.com
www.amazecreations.com/datafast/

"andRea" <ad******@libero.it> wrote ...
Hi all!
Anybody knows how is possible detect the Novell login in Access?
Thank you all
andRea

Nov 13 '05 #2

P: n/a
In my environment, the variable name is NWUSERNAME. I'm on
XP, Novell client 4.90SP2.

Kevin
Danny J. Lesandrini<dl*********@hotmail.com> 5/2/2005
9:50:39 AM >>>Try this ...

Environ$("UserID")

--
Danny J. Lesandrini
dl*********@hotmail.com
www.amazecreations.com/datafast/

"andRea" <ad******@libero.it> wrote ...
Hi all!
Anybody knows how is possible detect the Novell login in

Access?
Thank you all
andRea

Nov 13 '05 #3

P: n/a
Kevin Nechodom wrote:
In my environment, the variable name is NWUSERNAME. I'm on
XP, Novell client 4.90SP2.


IIRC it was just USERNAME in MS-DOS. There's nothing like consistency
and that's nothing like consistency.
Nov 13 '05 #4

P: n/a
Believe it or not, the GetUserName API call works just fine on both
Windows and Novell networks:

Private Declare Function GetUserName _
Lib "advapi32.dll" _
Alias "GetUserNameA" _
(ByVal lpBuffer As String, _
nSize As Long) _
As Long

Public Function GetNetworkUserName() As String
' Returns the network login name
Dim lngLen As Long, lngX As Long
Dim strUserName As String
strUserName = String$(254, 0)
lngLen = 255
lngX = GetUserName(strUserName, lngLen)
lngX = InStr(strUserName, Chr$(0))
If lngX > 0 Then
GetNetworkUserName = Left$(strUserName, lngX - 1)
Else
GetNetworkUserName = ""
End If
End Function

Nov 13 '05 #5

P: n/a
On May 02 2005, 07:01 pm, c.*******@worldnet.att.net wrote in
news:11*********************@o13g2000cwo.googlegro ups.com:
Believe it or not, the GetUserName API call works just fine on both
Windows and Novell networks:


If my memory serves, that will actually give you the Windows username,
which tends to be the same as the Netware username, but does not have to.

The code in this post will retrieve the actual Netware username:

http://groups-
beta.google.com/group/microsoft.public.access.modulesdaovba/msg/f330d5bf8ca
a7bda?dmode=source

The disadvantage of this is that you have to know the name of a connected
network resource (such as the NDS tree, a server, etc.) in advance.

--
remove a 9 to reply by email
Nov 13 '05 #6

P: n/a
GREAT DIMITRI, THE CODE WORKS GREAT!!!
Thank you so much!!!!!!!!!!!!!!!!!

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.