Module Help

  • Follow


I want to take this module and edit it so the info is added to a table
when a user opens the database, and removes the user from the table
when they close the database. Any suggestions? I have a public
database that I have to maintain that it's used 24 hours a day, and
need to be able to find the users who are using it. The ldb file only
gives me their workstation IDs, not their user IDs. Thanks.

---------------------------------------------------
Function fGetUserName() As String
' Returns the network login name
Dim lngLen As Long, lngRet As Long
Dim strUserName As String
    strUserName = String$(254, 0)
    lngLen = 255
    lngRet = apiGetUserName(strUserName, lngLen)
    If lngRet Then
        fGetUserName = Left$(strUserName, lngLen - 1)
    End If
End Function

0
Reply CCheatham 5/22/2007 7:08:50 PM


0 Replies
102 Views

(page loaded in 0.036 seconds)

Similiar Articles:
















7/13/2012 12:57:56 PM


Reply: