473,325 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

practical idea that I can use to "shut-down" users

Can anyone suggest a practical idea that I can use to "shut-down" users that
might still be connected to a database or logged off improperly so I can
compact the back-end?

Thanks for your assistance
Omey
Nov 12 '05 #1
6 2150
The code at the following link has worked very well for me. I have it set to
2 hours of inactivity. If the user does not do anything, then they are
kicked out ms-access.

I also write out to a table what user was kicked out, and thus users who are
NOT logging out at the end of the day can be notified.

You can find the code at:

a97
http://support.microsoft.com/default...b;en-us;128814

a2000
http://support.microsoft.com/default...b;en-us;210297
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
No************@msn.com
http://www.attcanada.net/~kallal.msn
Nov 12 '05 #2
thanks you very much, Albert, this will surely help

"Albert D. Kallal" <pl********************@msn.com> wrote in message
news:_zyyb.533806$pl3.27009@pd7tw3no...
The code at the following link has worked very well for me. I have it set to 2 hours of inactivity. If the user does not do anything, then they are
kicked out ms-access.

I also write out to a table what user was kicked out, and thus users who are NOT logging out at the end of the day can be notified.

You can find the code at:

a97
http://support.microsoft.com/default...b;en-us;128814

a2000
http://support.microsoft.com/default...b;en-us;210297
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
No************@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #3
TC
Have you ever had problems with the following scenario?

User clicks a custom Find button, enters the criteria, then clicks again to
find the record. Record is displayed, focus goes to the first field in
default tab order. User processes the data, then finds another record in the
same way. At this point, the cursor is still on the same field of the same
form, even though the user >has done< something. The code in question may
think that he has been inactive.

I've thought of using that code myself, but been worrired by the scenario
described above.

TC

"Albert D. Kallal" <pl********************@msn.com> wrote in message
news:_zyyb.533806$pl3.27009@pd7tw3no...
The code at the following link has worked very well for me. I have it set to 2 hours of inactivity. If the user does not do anything, then they are
kicked out ms-access.

I also write out to a table what user was kicked out, and thus users who are NOT logging out at the end of the day can be notified.

You can find the code at:

a97
http://support.microsoft.com/default...b;en-us;128814

a2000
http://support.microsoft.com/default...b;en-us;210297
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
No************@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #4
Thanks very much, Albert.

"Albert D. Kallal" <pl********************@msn.com> wrote in message
news:_zyyb.533806$pl3.27009@pd7tw3no...
The code at the following link has worked very well for me. I have it set to 2 hours of inactivity. If the user does not do anything, then they are
kicked out ms-access.

I also write out to a table what user was kicked out, and thus users who are NOT logging out at the end of the day can be notified.

You can find the code at:

a97
http://support.microsoft.com/default...b;en-us;128814

a2000
http://support.microsoft.com/default...b;en-us;210297
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
No************@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #5
"TC" <a@b.c.d> wrote in message news:1070258755.362281@teuthos...
Have you ever had problems with the following scenario?

User clicks a custom Find button, enters the criteria, then clicks again to find the record. Record is displayed, focus goes to the first field in
default tab order. User processes the data, then finds another record in the same way. At this point, the cursor is still on the same field of the same
form, even though the user >has done< something. The code in question may
think that he has been inactive.

I've thought of using that code myself, but been worrired by the scenario
described above.

TC


I had very good luck using the code.

If the user processes some data, then no doubt the cursor and the form used
changes. At any rate, for the user to process some data, the cursor and form
used likely does have to change.

In fact, if I recall, I actually changed the timer event to every 5 seconds
when it checks (I did NOT want to waste any cpu). I have heard of any of my
users complain. Further, when the code does kick them out, I write an entry
to a table logging this fact. Thus, if users were getting kicked out a lot,
then I would know about it.

With a 2 hours setting, you see a few kick outs by people who take long
lunches, and the rest are usually 2 hours after closing time.

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
No************@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #6
Ok, thanks. Dropping the timer interval (while keeping the "kick-out"
interval) seems like a good way to go.

TC
"Albert D. Kallal" <pl********************@msn.com> wrote in message
news:mrWyb.544716$9l5.511347@pd7tw2no...
"TC" <a@b.c.d> wrote in message news:1070258755.362281@teuthos...
Have you ever had problems with the following scenario?

User clicks a custom Find button, enters the criteria, then clicks again to
find the record. Record is displayed, focus goes to the first field in
default tab order. User processes the data, then finds another record in

the
same way. At this point, the cursor is still on the same field of the same form, even though the user >has done< something. The code in question may think that he has been inactive.

I've thought of using that code myself, but been worrired by the scenario described above.

TC


I had very good luck using the code.

If the user processes some data, then no doubt the cursor and the form

used changes. At any rate, for the user to process some data, the cursor and form used likely does have to change.

In fact, if I recall, I actually changed the timer event to every 5 seconds when it checks (I did NOT want to waste any cpu). I have heard of any of my users complain. Further, when the code does kick them out, I write an entry to a table logging this fact. Thus, if users were getting kicked out a lot, then I would know about it.

With a 2 hours setting, you see a few kick outs by people who take long
lunches, and the rest are usually 2 hours after closing time.

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
No************@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
24
by: jrefactors | last post by:
I have an upload file operation in the web application. UploadForm.jsp is the form, and UploadAction.jsp is the form processing. The web server is Websphere. //UploadForm.jsp <FORM...
5
by: j | last post by:
Anyone here feel that "global variables" is misleading for variables whose scope is file scope? "global" seems to imply global visibility, while this isn't true for variables whose scope is file...
388
by: maniac | last post by:
Hey guys, I'm new here, just a simple question. I'm learning to Program in C, and I was recommended a book called, "Mastering C Pointers", just asking if any of you have read it, and if it's...
289
by: napi | last post by:
I think you would agree with me that a C compiler that directly produces Java Byte Code to be run on any JVM is something that is missing to software programmers so far. With such a tool one could...
5
by: Paul Sullivan | last post by:
We are a state agency that views protected medical information via our intranet. The screens even have privacy shields. Alarmingly, uses can "Print" and "Save As" which destroys the protection of...
14
by: Frederick Gotham | last post by:
The original purpose of "inline" was that code could be "expanded in place". Of course, it has other uses... For one thing, the following two translation units will compile together succesfully...
206
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a...
29
by: candy_init | last post by:
Hi all, I just came across the following program: #include <stdio.h> int main() { float a = 12.5; printf("%d\n", a); printf("%d\n", *(int *)&a); return 0;
233
by: Julian | last post by:
'evening. I'm not new to C and have been programming in it since I was 8 but here's a strange problem I've never seen before. When I compile a program from our C course with a windows compiler...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.