Removing users from the ldb?

M

martinmike2

Is it possible to remove users directly from the ldb? I have a form
that will let me look at the users recorded in the ldb, but I would
like to be able to remove them from the ldb and force them out of the
system if I need to. Is it possible to interact with the .ldb in this
fashion?
 
R

Rick Brandt

martinmike2 said:
Is it possible to remove users directly from the ldb? I have a form
that will let me look at the users recorded in the ldb, but I would
like to be able to remove them from the ldb and force them out of the
system if I need to. Is it possible to interact with the .ldb in this
fashion?

No.
 
D

Daniel Pineault

The ldb file simply tells you who is in your db, but it does not control the
user/db in any way.

If i understand your question, you wish to have a mean to log off your users.

Take a look at

http://www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=328&KW=logoff

it illustrates how you can log your users out. It logs everyone out, but it
could be adapted to be more specific and only target one specific user. But
I would ask you why would you need to log out one user specifically?
Anyways, take a look at the link and see if it doesn't get you started down
the right path.
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
 
M

martinmike2

The ldb file simply tells you who is in your db, but it does not control the
user/db in any way.

If i understand your question, you wish to have a mean to log off your users.

Take a look at

http://www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=328&KW=l....

it illustrates how you can log your users out.  It logs everyone out, but it
could be adapted to be more specific and only target one specific user.  But
I would ask you why would you need to log out one user specifically?  
Anyways, take a look at the link and see if it doesn't get you started down
the right path.
--
Hope this helps,

Daniel Pineaulthttp://www.cardaconsultants.com/
For Access Tips and Examples:http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.





- Show quoted text -

Daniel,

I didn't say, but I already have a system like the one you provided.
The problem I am running into is that if the user has the computer
locked or in screen saver mode, the code will not run, hence, no
logging out.
 
T

Tony Toews [MVP]

martinmike2 said:
Is it possible to remove users directly from the ldb? I have a form
that will let me look at the users recorded in the ldb, but I would
like to be able to remove them from the ldb and force them out of the
system if I need to. Is it possible to interact with the .ldb in this
fashion?

No.

Furthermore opening the .ldb file using notepad will show you both
who's currently in the database and some of the workstations which
were in the database. When a person exits Access their workstation
name and Access login id, Admin unless you are using Access security,
are left in a "slot" or record in the ldb file. This slot or record
may get overwritten the next time someone enters the MDB depending on
what slot or record is available previous to it in the ldb file.

Determining the workstation which caused the Microsoft Access MDB
corruption
http://www.granite.ab.ca/access/corruption/workstation.htm

You should also implement an idle timer and you can use another means
on that same timer to kick folks out.

HOW TO: Detect User Idle Time or Inactivity in Access 2000 (Q210297)
http://support.microsoft.com/?kbid=210297
ACC: How to Detect User Idle Time or Inactivity (Q128814)
http://support.microsoft.com/?kbid=128814

However we found that the code which runs on the timer event must be
disabled for the programmers. Otherwise weird things start happening
when you're editing code.

Also print preview would sometimes not allow the users to run a menu
item to export the report to Excel or others. So you had to right
click on the Previewed report to get some type of internal focus back
on the report so they could then export it. This was also helped by
extending the timer to five minutes.

The downside to extending the timer to five minutes was if a person
stays in the same form and at the same control for considerable parts
of the day, ie someone doing the same inquiries, the routine didn't
realize that they had actually done something. I'll be putting in
some logic sometime to reset this timer whenever they do something in
the program.

For the rest of your solution setup a file, possibly an INI file, in
the backend directory in which you store a value. Upon entering your
FE app check that file before opening any bound forms or relinking
tables. In the above Idle Time routine also check that file every
time the timer event fires.

ACC2002: How to Shut Down a Custom Access Application Remotely Q304408
has the code necessary for this function.

You do not want to use a table in the backend MDB because you may have
renamed that MDB, are compacting it, are restoring it or otherwise
working on it.

Also if the backend is corrupted new users aren't allowed into it but
users already in it continue to work away. This means you can't get
in to set that flag

Also the Auto FE Updater utility will check a line in an INI file when
it starts up and not allow users in as well. See my website for this
utility.

Note that you do *NOT* want to use the server facility to disconnect
the client from the file as this approach may cause corruptions.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
C

Cheryl

I know I don't belong here but this is the only group Microsoft has here.
how do I find new groups? please help, you can email me but I just can't
find anything but Microsoft crap. !!!
 

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