Solved

Who Am I????

Posted on 1998-10-07
2
224 Views
Last Modified: 2008-02-20
Our system is part of a Novel LAN... Is there any way to get the Novel LogonID from the system(a function like Now())? I thought at one time that I found a list of Windows variables that included things like windows version, and the network logonid...
0
Comment
Question by:ronallard
2 Comments
 
LVL 1

Accepted Solution

by:
DennisH earned 50 total points
ID: 1964666
We use this function in an Access 2.0 app running on a novell
network to get the user id.

Declare Function wu_WNetGetUser% Lib "USER.EXE" Alias "WNetGetUser" (ByVal szUser$, lpnBufferSize%)

Function NetworkUserID () As String
   Dim szUser As String * 255
   Dim lpnBufferSize As Integer
   Dim status As Integer

   lpnBufferSize = 255
   status = wu_WNetGetUser(szUser, lpnBufferSize)
   If (status = 3) Then
      NetworkUserID = "WNetGetUser Failed"
   Else
      'Return up to first Null.
      NetworkUserID = Left$(szUser, InStr(szUser, Chr(0)) - 1)
   End If

End Function

0
 

Author Comment

by:ronallard
ID: 1964667
Works great! Thanks alot...
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question