Determine who is connected

G

Guest

I am using the following to populate a list box to display who is connected
to the database. The frontend is on the users machine and the data is linked
on a network drive. My questions are


Dim cn As New ADODB.Connection
Dim rcd As New ADODB.Recordset

cn.Provider = "Microsoft.Jet.OLEDB.4.0"
cn.Open "Data Source=Q:\Network\myData.mdb"

Set rcd = cn.OpenSchema(adSchemaProviderSpecific, ,
"{947bb102-5d43-11d1-bdbf-00c04fb92675}")

1. This will work if Access creates an ldb file on the network when the
user starts the front end database. On one database no ldb file is created
on the network and I can't figure out why.

2. Why does my name appear when I am not connected to the database?
 
K

Ken Snell [MVP]

ABM said:
I am using the following to populate a list box to display who is connected
to the database. The frontend is on the users machine and the data is
linked
on a network drive. My questions are


Dim cn As New ADODB.Connection
Dim rcd As New ADODB.Recordset

cn.Provider = "Microsoft.Jet.OLEDB.4.0"
cn.Open "Data Source=Q:\Network\myData.mdb"

Set rcd = cn.OpenSchema(adSchemaProviderSpecific, ,
"{947bb102-5d43-11d1-bdbf-00c04fb92675}")

1. This will work if Access creates an ldb file on the network when the
user starts the front end database. On one database no ldb file is
created
on the network and I can't figure out why.

2. Why does my name appear when I am not connected to the database?

Answer to #2: you are connected to the database.... this occurs during the
code that you run because the database must connect in order to deterrmine
who is connected, and thus you are connected.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top