database users

sven2

Registered User.
Local time
Today, 01:19
Joined
Apr 28, 2007
Messages
297
Hello,

I am working with an adp project with 10 users. Is it possible to get a list from all the users that are logged in at a certain time?

I tried it like this:

Private Sub ShowUsers()
Dim cn As New ADODB.connection
Dim rs As New ADODB.Recordset
Dim i, j As Long
Set cn = CurrentProject.connection

Set rs = cn.OpenSchema(adSchemaProviderSpecific, , "{947bb102-5d43-11d1-bdbf-00c04fb92675}")
Dim str1 As String
str1 = rs.Fields(0).Name & vbNewLine & vbNewLine
While Not rs.EOF
str1 = str1 & Nz(rs.Fields(0), "NULL") & vbNewLine
rs.MoveNext
Wend
Me.TxtBox1 = str1
rs.Close
Set rs = Nothing
cn.Close
Set cn = Nothing
End Sub

But I get an error on the line set rs = ... (error 3251).

Thanks in advance,
Sven
 

Users who are viewing this thread

Back
Top Bottom