Solved

Who Am I????

Posted on 1998-10-07
2
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

623 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