|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
I am writing an MSACCESS 2000 application.
Does anyone know how to get the current NT4 user logged in? Thanks. Last edited by mario.a.nunes : May 15th, 2002 at 05:48 PM. |
|
#2
|
|||
|
|||
|
The following code should help.
Option Compare Database Private S1 As String Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long Public Function FindUserName() As String ' Function that returns the name of the currently logged on user ' Example - MyString = FindUserName S1 = Space(512) GetUserName S1, Len(S1) FindUserName = Trim$(S1) End Function |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft Access Development > Msaccess + Nt4 + Current User |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|