473,397 Members | 1,969 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,397 software developers and data experts.

Novell login ad Access

Hi all!
Anybody knows how is possible detect the Novell login in Access?
Thank you all
andRea
Nov 13 '05 #1
6 2215
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
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
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
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
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
GREAT DIMITRI, THE CODE WORKS GREAT!!!
Thank you so much!!!!!!!!!!!!!!!!!

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

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

Similar topics

0
by: JT | last post by:
UnauthorizedAccessException when trying to access a Novell network drive. The code is very simple. This is the line that fails when trying to create a new StreamWriter where _filename is a string...
1
by: Rajeev | last post by:
Hi I have an application where we read the login name of the user from Windows Domain and see if the user is logged in or not. I would like to know if there is a way to read the login name of user...
3
by: Stanley Sinclair | last post by:
Client has Novell network which has worked without failure for years in file, print sharing, and a flat database. Also has a fax server on it and Novell Groupware for messaging. He does not want...
1
by: Molly J. Fagan | last post by:
Hello everyone-- I'm trying to develop a help desk system to replace Trak-It. We have a help desk e-mail address and want all messages sent to that e-mail address to go into an Access database...
0
by: andRea | last post by:
Buongiorno a tutti scrivo per chiedeer un aiuto: qualcuno sa aiutarmi per rilevare in Access cno quale login di Novell si sia acceduto alla rete? Se ha importanza riferisco a Access 97 o 2000 e a...
4
by: Miro | last post by:
Hello! I have an ASP.NET application which needs to read some data from an Access database on Novell. I've found an article on Microsoft and did the following: I've created an account on...
2
by: 1388-2/HB | last post by:
On a W2K3 box running IIS 6 I have a web app that implements Forms Authentication mixed with AD (the login page autheticates users against AD & impersonates them with each page request). This...
2
by: Nogema | last post by:
Hi everybody I use VB 2005 One of our project consisting in saving data on a network disk (NOVELL Sever) This project use windows authentification for each attempt to write on the disk,...
5
by: matthooper | last post by:
Hi I don’t know if anyone has had a similar problem with Novell and IIS, but when a Novell user accesses our website this is what happens: - User logs into our login.aspx file - The user...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.