Solved

Who Am I????

Posted on 1998-10-07
2
203 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now