Re: Current User List
- From: "Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx>
- Date: Fri, 25 May 2007 11:30:15 -0400
Instead of
Set cnn= CurrentProject.Connection
try
Set cnn= "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\mydatabase.mdb;Jet OLEDB:System Database=system.mdw;User
ID=myUsername;Password=myPassword;"
(You can find any connection string you might need at
http://www.carlprothman.net or at http://www.connectionstrings.com.
Unfortunately, Carl's site seems to have some technical problem at the
moment.)
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Sprinks" <Sprinks@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:68AB5262-221A-44D1-A459-763477778EA4@xxxxxxxxxxxxxxxx
Douglas,
Thank you for your response.
I added the sub to a global module, changing the name of the datasource
parameters in the Open method calls to the name of my back-end file.
On running the procedure from the Immediate Window, I first got a "You do
not have appropriate permissions to open...contact your SysAdmin..."
error.
After consulting VBA Help, I added the optional username and password
parameters to both calls. It now returns the following error:
Run-time error '-2147217843 (8004e4d)':
Cannot start your application. The workgroup information file is missing
or
opened exclusively by another user.
I don't see, however, how I can pass the workgroup file name to the
method.
Do you have a suggestion?
Thank you.
Sprinks
"Douglas J. Steele" wrote:
See whether http://support.microsoft.com/kb/198755 is what you're looking
for.
(Don't worry that it says "Access 2000": it applies to any ADO connection
to
the database)
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Sprinks" <Sprinks@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B8FDD630-6933-425E-BF1A-A2BABA8BC8D7@xxxxxxxxxxxxxxxx
Litwin, Getz, & Gunderloy, in Access 2002 Enterprise Developer's
Handbook
offer a BuildUserList() procedure that lists all current users in the
database, setting an ADODB.Connection variable to the current project:
Set cnn= CurrentProject.Connection
As I do not have the CD and will have to type this sub in manually, I
wondered if anyone knew whether this would find all users connected to
the
shared back-end through their local front-ends.
Thanks for any assistance.
Sprinks
.
- Follow-Ups:
- Re: Current User List
- From: Sprinks
- Re: Current User List
- References:
- Re: Current User List
- From: Douglas J. Steele
- Re: Current User List
- Prev by Date: RE: Update Query Question...
- Next by Date: RE: Calculate - Record to Record
- Previous by thread: Re: Current User List
- Next by thread: Re: Current User List
- Index(es):
Relevant Pages
|
Loading